Jump to content

I Need Help!


Recommended Posts

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 by Jmjl
Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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