JoeC3109 Posted May 28, 2014 Share Posted May 28, 2014 Hey everyone, I just started working a little bit with AutoHotKey, and I'm hoping some of the other users with expertise can help me with a few questions. I'm attempting to create scripts for PC games that have launchers. I've put one together that clicks in the correct area and launches the game. My question is, how am I able to incorporate the script into Hyperlaunch? Is there an area where I can add it to under module settings for the particular game? Is it also possible to have there be a pause before the script runs, so they the launcher window can open properly? Any help is greatly appreciated. And any tips for AHK are welcome, I've got a lot to learn about it. Thanks Link to comment Share on other sites More sharing options...
craiganderson Posted May 28, 2014 Share Posted May 28, 2014 Inside .ahk files you can use Sleep, 5000 causes the script to pause for 5 seconds http://www.autohotkey.com/docs/commands/Sleep.htm dont know if that helps 6000=6 seconds 8000=8 seconds etc Link to comment Share on other sites More sharing options...
craiganderson Posted May 28, 2014 Share Posted May 28, 2014 also the WinWait("ahk_class FCEUXWindowClass") WinWaitActive("ahk_class FCEUXWindowClass") type commands basically wait until window exists window active http://www.autohotkey.com/docs/commands/WinWait.htm http://www.autohotkey.com/docs/commands/WinWaitActive.htm Link to comment Share on other sites More sharing options...
JoeC3109 Posted May 28, 2014 Author Share Posted May 28, 2014 You are the man craig! The sleep function was exactly what I needed, I just got my first script working. I used it as a postlaunch in the PCLauncher module, and thanks to sleep, it worked beautifully. Thanks man Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.