Jump to content

Help with hotkeys...


Guest duckmancornfed
 Share

Recommended Posts

Guest duckmancornfed

Hello, I was wondering if someone could please help me with a little program that I am currently attempting to make. It is a simple program that when you press a hotkey such as "D" then it presses F9 then rightclicks, then press F7 then rightclicks. I would also like this program to stay open until I manually close it.

TY for the help, And I did attempt to read the help file but Im confused with the functions.

HotKeySet("{PAUSE}", "Send({"f9"}), Mouseclick("right"), Send({"f7"}), Mouseclick("right")")

Link to comment
Share on other sites

HotKeySet("{PAUSE}", "myFunc")

;Body of program--endless loop of waiting for keypress
While 1
    sleep(100)
WEnd

Func myFunc()
    Send("{F9}")
    MouseClick("right")
    Send("{F7}")
    MouseClick("right")
EndFunc

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...