Sign in to follow this  
Followers 0
bafh

wait until

4 posts in this topic

Hi,

sorry for this question since its a very basic thing.

but how do i make a script that waits until the hotkey is pressed and then

do a function?

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hey... my first post ^^

you should put a sleep method before your hot key function.

My hot key....blah blah

While 1
Sleep(1000); 1000ms = 1sec,
Wend

;Then add your hot key fuction
Edited by eko~

Share this post


Link to post
Share on other sites

cool thanks... just read it in the helfile sorry.

does the 1 mean anything or is it just to do a statement?

Share this post


Link to post
Share on other sites

Normally, you would have to put parameters of your while loop. The while 1 means it just goes on... no limit

To set up a while loop with parameters, read the help file ^^

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0