Dime333 Posted March 25, 2016 Posted March 25, 2016 I posted this in the RocketLauncher forums the other day and I thought I might as well post it in here too since I know there are some AHK wizards lurking here Basically, what I want to do is make an AHK script sit tight and do nothing until the resolution has been changed and then continue. Is there any way to do this?
JSinn Posted March 25, 2016 Posted March 25, 2016 Try using: Sleep 3000 Where 1000 represents 1 second, so that would pause the script for 3 seconds. That's probably the easiest way to try first, there are more complicated ways. |Visit my [YouTube] channel || My projects - [Downloads] || GameCube HQ Disc Project || GameCube HQ Disc Progress || HyperSpin United Spreadsheet |
Dime333 Posted March 25, 2016 Author Posted March 25, 2016 This is just something i would like to do in a better way than l'm currently doing. I'm using postlaunch sleep 12000 to launch battleship in the popcap system. It works perfectly. The fade in stays up during the intro that is forced windowed. Then the resolution is changed and I the game goes to the maun Menu
Dime333 Posted March 26, 2016 Author Posted March 26, 2016 You could use the OnMessage() function to detect a res change. OnMessage(0x7E, "yourFunction") yourFunction() { ; code you want executed after res change } Thank you. I changed my mind about using this method though. Since it's already working. I'll just stick to it.
Dime333 Posted March 26, 2016 Author Posted March 26, 2016 Try using: Sleep 3000 Where 1000 represents 1 second, so that would pause the script for 3 seconds. That's probably the easiest way to try first, there are more complicated ways. Yeah. That's what I've been using. I just had an idea that I wanted to do it a little more clean. But I've changed my mind. Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.