I'd like to make a script that can run an executable, attach to the process, close the process, and repeat.
I didn't see anything in the micromacro documentation about running an executable, so I checked the lua docs. I came across the execute() method, but it appears it is not implemented in micromacro?
Is there any way to run an executable using micromacro?
Execute() not available in micromacro?
Forum rules
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
- Administrator
- Site Admin
- Posts: 5318
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Execute() not available in micromacro?
The function you are looking for is os.execute(), not just execute(). However, you might also consider using the system() function (from MicroMacro's library functions). There is only a slight difference between these. system() is better for command-line programs you will "return" a value you want.
Re: Execute() not available in micromacro?
Thanks, I was able to get both of those to run the application. However, both os.execute() and system() appear to wait for the application to finish before continuing on. I'd like to be able to send keystrokes and mouse events to the application after it starts up.
Is there a way to make it so that micromacro does not wait for the application to complete?
Is there a way to make it so that micromacro does not wait for the application to complete?
- Administrator
- Site Admin
- Posts: 5318
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Execute() not available in micromacro?
Code: Select all
os.execute("START theprogram.exe");
Re: Execute() not available in micromacro?
Awesome, that works great
Who is online
Users browsing this forum: No registered users and 0 guests