Jump to content
(Open Beta) HyperSpin 2 is now available for everyone ×

Make AHK script wait for a resolution switch


Dime333

Recommended Posts

Posted

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?

Posted

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

Posted

 

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...