Jump to content
Sign in to follow this  
nusaki

Hold till key is pressed

Recommended Posts

nusaki

Hey

I have HotKeySet("F1","start")

How to make code to do nothing but keep script running until I press F1?

Sorry for stupid question but I’m new.

Thank you

Edited by nusaki

keywen.com

Share this post


Link to post
Share on other sites
billthecreator

#Include <Misc.au3>
Do
    Sleep(500)
Until _IsPressed(70)

or have

While 1
    Sleep(500)
Wend

Func start()
    ;your stuff
EndFunc
Edited by billthecreator

[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

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  

×