Jmjl 0 Posted April 3, 2004 (edited) I want to make a little AutoIT program... What it does is just sit in the system tray and waits for the user to press let's say F4 and when the user presses F4 it runs my script. The only part I don't know how to do is get it to wait until I've pressed F4. Edited April 3, 2004 by Jmjl Share this post Link to post Share on other sites
Jos 2,175 Posted April 3, 2004 HotKeySet("{F4}","YourScript") While 1 Sleep(100) Wend Func YourScript() ; stuff you awant to do when F$ is pressed EndFunc SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites