4coder » Forums » Beginner questions
DanZaidan
Daniel Zaidan
12 posts
#12595 Beginner questions
3 weeks, 5 days ago

Hi everybody!

I just got 4coder and I'm super excited to start using it.
I have a couple of new-user questions:

Is there a way (command-line argument?) to launch it maximized (or fullscreen) and already set a path and load a project?

Is there a way to have my program (being executed via a batch file assigned to a function key in the project) output to the *run* buffer?

project:
1
fkey_command_win[2]  = {"..\\build\\run.bat", "*run*", true};

batch file:
1
start "" ..\build\first.exe


The run buffer says:
1
2
p:\my_project\scr>start "" ..\build\first.exe 
exited with code 0


And I expect it to include the print statements. (Does it require a different setup?)


Thanks!
Dan Zaidan
Mr4thDimention
Allen Webster
264 posts
2 projects

Heyo

#12598 Beginner questions
3 weeks, 5 days ago Edited by Allen Webster on July 22, 2017, 6:56 p.m.

Hi there!

1. You can pass the flag -F to get immediate fullscreen mode or the flag -W to get an immediately maximized window in windowed mode.

2. In config.4coder, which should be with your 4ed.exe, you can set automatically_load_project to true, and it will search the current directory for project.4coder and load it when you launch 4coder. There is currently no way to force it to use a different directory so your 4ed.exe will need to be in your path so you can run it from another directory easily.

3. The problem you are having with output in the *run* buffer is caused by using start. When you use start in a batch file, it runs the command as a separate process with a separate output stream. One way you could get output from it would be to change your batch file to just say:

1
2
@echo off
..\build\first.exe
DanZaidan
Daniel Zaidan
12 posts
#12600 Beginner questions
3 weeks, 5 days ago

Thanks so much for the answers, Allen!

I'm having a blast with 4coder.

Keep up the great work.