Jump to content
Sign in to follow this  
IanN1990

Custom HotKeySet - Confusion

Recommended Posts

IanN1990

So what i would like to do is, set a hotkey for the two left buttons on my mouse.

On a webroswer, that make the page go "back or forward".

HotKeySet ( "key" , "function" )

key - The key combination to use as the hotkey. Same format as Send().

So, Does this mean if i know the Hex number of my key. I can HotKeySet it ?

Which brings me to my next confusion.

Send ( "keys" [, flag] )

To send UNICODE characters enter the character code (decimal or hex), for example this sends a Chinese character
Send("{ASC 2709}") or Send("{ASC 0xA95}")

Which sends ò

but when i check the appendix helpfile on Ascii characterss

ò = 210 Dec, D2  Hex, 322 Oct. Not the 2709 or 0xA95 listed above.

So in summary. I am lost ^^

**Extra. The Hex key for the forward / back on the mouse is 0x06 and 0x05. Though finding out how to implement that into the hotkeyset is what i am really after.

After i posted this. I had the idea of starting small, and working up.

Works Fine.

HotKeySet("{1}", "Test")

While sleep(1000)
WEnd

Func Test()
    ConsoleWrite("Sucess")
EndFunc

Doesn't work. Asc 49 is 1 though?

HotKeySet("{Asc 49}", "Test")

While sleep(1000)
WEnd

Func Test()
    ConsoleWrite("Sucess")
EndFunc
Edited by IanN1990

Share this post


Link to post
Share on other sites
somdcomputerguy

Use 049 instead of 49 [from helpfile: (When using 2 digit ASCII codes you must use a leading 0, otherwise an obsolete 437 code page is used)]. For mouse clicks, use MouseClick instead of Send.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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  

×