Jump to content

HotkeySet syntax issue


Sardith
 Share

Recommended Posts

As silly as this may sound. I don't do a lot of Hotkeyset's. What would be the syntax to get DELETE, END and PGDN.

HotKeySet("{DELETE} + {END} + {PGDN}", "EndProgram");Win Kills Active Program

Just displays the test MsgBox when you press Delete.

[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Link to comment
Share on other sites

Clarification, what id like to do is when DELETE, END, and PGDN are pressed at the same time it will run the funcation. Not just one, or the other.

If thats possible.

[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Link to comment
Share on other sites

  • Moderators

Hmm, guess you can't use more than 1 specialty key together... I had no idea... guess you could always Mod something in the function itself (with _IsPressed() maybe) to work right unless there's a trick I'm not reading about.

#include <misc.au3>
HotKeySet("{PGDN}", "EndProgram");Win Kills Active Program
While 1
    Sleep(10000)
WEnd
Func EndProgram()
    If _IsPressed('2E') And _IsPressed('23') Then Exit
    Return ''
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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