Jump to content

Recommended Posts

Posted

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

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~
Posted

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

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

Posted

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 ^^

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...