cyberdiamond Posted May 14, 2004 Share Posted May 14, 2004 I created a couple of AutoIT scripts to close some windows and add a serial number in another program (reg entries don't work for that program).The problem I am having is when calling the .exe to run the AutoIT compiled script it won't move onto the next item?Using RunOnceEx, even tried calling a batch.cmd to call the exe!Has anyone got around this?If so how? Link to comment Share on other sites More sharing options...
ZoSTeR Posted May 14, 2004 Share Posted May 14, 2004 Could you be a bit more specific and maybe post the code you're using? Link to comment Share on other sites More sharing options...
cyberdiamond Posted May 14, 2004 Author Share Posted May 14, 2004 The AutoIT script is attached (serial etc removed)Here is the command I use to install the programSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\025 /VE /D "Camedia" /fREG ADD %KEY%\025 /V 1 /D "%CD%\Install\Camedia\Camedia.cmd" /fREG ADD %KEY%\025 /V 2 /D "%CD%\Install\Camedia\Setup.exe -s -f1\"%CD%\Install\Camedia\setup.iss\" -f2\"%systemdrive%\Camedia.log\"" /fIn the Camedia.cmd is a 2 lines Camedia.exe (which is the compiled AutoIT script)ExitAs I am aware RunOnceEx will not move on until the command its currently on completes thats why I am calling the compiled script from a batch file)Camedia.Au3 Link to comment Share on other sites More sharing options...
cyberdiamond Posted May 16, 2004 Author Share Posted May 16, 2004 Surely someone must be using AutoIT scripts? Link to comment Share on other sites More sharing options...
Pyron Posted May 16, 2004 Share Posted May 16, 2004 I think you will need to run it via 'start':start /WAIT camedia.exeIn your example the batchfile simply waits for camedia.exe to terminate.-- Pyron Link to comment Share on other sites More sharing options...
cyberdiamond Posted May 16, 2004 Author Share Posted May 16, 2004 Tried that all it does is bring up a dos box with the title of Camedia.exe?Thanks anyway Link to comment Share on other sites More sharing options...
BeenThereB4 Posted May 16, 2004 Share Posted May 16, 2004 You might try having the autoit script start the install, that way the script does everything and then exits -- freeing up runonce to go on. Alternately, you could start the install from your batch file without a "wait", and then the script. In the second case, you might want to start /wait the script so that runonce knows to pause. Link to comment Share on other sites More sharing options...
Pyron Posted May 17, 2004 Share Posted May 17, 2004 Well, the new window with the Camedia.exe-title pops up because I screw up....You have to omit the "/WAIT" of course.Sorry, my mistake...-- Pyron Link to comment Share on other sites More sharing options...
evilvoice Posted May 17, 2004 Share Posted May 17, 2004 Im not sure if there is a way to bypass runonceex lines...you may have to include the "%CD%\Install\Camedia\Setup.exe -s -f1\"%CD%\Install\Camedia\setup.iss\" -f2\"%systemdrive%\Camedia.log\" in your autoit script, and just run it as one line instead of 2...there should be a way to do it, I havent used autoit in quite a while, I think the last thing was some stuff for pe, and i havent even touched pe in 6 months. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now