Starting 2 programs via IDE?

BlitzMax Forums/BlitzMax Beginners Area/Starting 2 programs via IDE?

Takuan(Posted 2005) [#1]
Is there a way to start 2 programs via IDE?
Actualy my workflow is:
change "host"-code->compile it->change "client"-code-> close "host"-app->compile "client"-code-> start "host"-app's .exe.
Doing that the fifth time while concentrating on writing something has brainwashing effects on me...glglglgll...live would be more fun if it would be:

change "host"-code->compile and run
change "client"-code->compile and run

or at least if there would be a "run" button which starts the opened code (if already compiled).


Perturbatio(Posted 2005) [#2]
start two copies of the IDE.


Takuan(Posted 2005) [#3]
Mhh..not very comfortable, but yes, i was too stupid to come to this by myself.


Perturbatio(Posted 2005) [#4]
the problem with having multiple programs compilable under the IDE is that when you click stop, which one does it stop? the first? the second? both?
It would require a lot more work to add a process list, certainly more work than it takes for you to ALT+TAB between IDE's. :)


Dreamora(Posted 2005) [#5]
Not really ... Protean BMs first beta was already capable of that.
Can't be that hard to list all running exes started by the app itself.


Perturbatio(Posted 2005) [#6]
Can't be that hard to list all running exes started by the app itself.

I never said it would be hard, just that it would require a lot more work than ALT+TAB.


Dreamora(Posted 2005) [#7]
?
Using a list instead of 1 string to take care of all running apps

and what is alt-tab for? Do you mean alt-x for stopping it?
Don't think so as the debugger is bound to the thread name it should work no mather how many instances you start.

the only difference would be a list of running apps instead of only a button.


Perturbatio(Posted 2005) [#8]
and what is alt-tab for? Do you mean alt-x for stopping it?


no, I mean ALT+TAB to switch between two programs.

and creating and managing a thread safe process list is far more complicated than pressing two keys.


Takuan(Posted 2005) [#9]
I am used to code in small portions then test results.
Think its okay to do Alt+Tab or move the mouse down to the task bar if you have two programms to compile.

Its starting to get messy if you have more (usualy 10 Windows in the bar).
If i have to write something, then want to test 8 .exe's, rewrite it, compile in different modes and do other stuff, after 2 hours i am starting to get confused.

"Is that the damn folder where my client codes .exe lays?"
"Should i start the debug mode .exe, or wasnt it compiled in debug last time?"
"Hupsa, that Window Tab called Blitzmax doesnt belong to Servers Code"
"Shit, again to fast, closed wrong window"
etc.

I dont expect wonders, Blitzmax isnt a 2000$ tool, but i wished something would be done to put this windows fight a little more in the background.

Simple example:
I would click on IDE's Tab of "Clientblabla" and then press the "run" button 8 times. Voila, last created .exe is started 8 times.
Not too hard to implement.

Would be cool to stop all belonging processes if another button is pressed while IDEs "Clientblala" code is visible.
But even a simple "run an already compiled codes .exe" would be a help.
Shouldnt be hard to implement?
log file->where to find the .exe which belongs to "Clientblabla" ->what code is aktiv/visible in the IDE
->compare->Button which starts that .exe.