| 1. |
Solve : Batch file "hangs" when loading an .exe file.? |
|
Answer» First off hi everyone, new here. compiled .ahk scriptTell more about this, please. Can it be run without being compiled? Does it? If so, why compile it for a batch program? I've noticed that compiled Autoit scripts (a relative of AutoHotKey) take a few seconds to start up from a batch. It could be they are getting scanned by your antivirus each time. But that does not explain why your compiled AHK script is slower from batch than the prompt. For the benefit of OTHERS reading this. AutoHJotKey has been mentioned time and time gain on this forum. Just go to the search box on the top right and enter autohotkey and press enter. Over a hundred posts. Quote from: Geek-9pm on July 18, 2012, 02:43:45 PM Tell more about this, please. Sorry should have elaborated there, it's a basic scripting language that can do basic tasks (run, read / write from ini files) with an easily "coded" GUI. (Not to undersell it, it can do more advanced stuff). It can be run without being compiled but you have to have Auto Hot Key installed in order for it to operate and I am trying to make this for a few people and it would be easier if it was a self executing file. I have tried using different .exe (just as a test) and I still get the 5-10 second "hang" with this. Quote from: Salmon Trout on July 18, 2012, 03:01:25 PM I've noticed that compiled Autoit scripts (a relative of AutoHotKey) take a few seconds to start up from a batch. It could be they are getting scanned by your antivirus each time. But that does not explain why your compiled AHK script is slower from batch than the prompt. I think I have figured a work around after reading this. I will make another AHK execution file to do the "if NOT EXIST System\settings.ini (goto firstrun) else (goto start)" then make it either run the set-server.exe or run the original batch file. I think that should do that trick. |
|