Sign in to follow this  
Followers 0
Zohar

How Can I Set a HotKeySet for NumPad5, When NumLock is Not On?

2 posts in this topic

I hope anyone knows..

Thank you

Zohar

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Maybe you can do a workaround?

#include <Misc.au3>

While 1
    Sleep(20)
    If _IsPressed("0C") Then MsgBox(64, "Info", "Numpad5 without NumLock on (Clear key) pressed")
WEnd

Edit:

You can also use the HotKey-UDF:

#include <Hotkey.au3>

Global Const $VK_CLEAR = 0x0C

_HotKey_Assign($VK_CLEAR, '_Test')
HotKeySet("{ESC}", "_Exit")

While 1
    Sleep(20)
WEnd

Func _Test()
    MsgBox(64, "Info", "Numpad5 without NumLock on (Clear key) pressed")
EndFunc

Func _Exit()
    Exit
EndFunc
Edited by funkey

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

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  
Followers 0