Sign in to follow this  
Followers 0
Achilles

Hotkeyset Problem

7 posts in this topic

#1 ·  Posted (edited)

This is my code, ASC 099 is equilavent to c. The hotkey doesn't work.

HotkeySet("{ASC 099}", '_Testing')

WHile 1 
    Sleep(1000) 
WEnd 

Func _Testing() 
    Msgbox(0, 'Hotkey Pressed', 'WEIRD!!!') 
EndFunc
Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Right in the help file! <_<, add a 0 before 99.

To send the ASCII value A (same as pressing ALT+065 on the numeric keypad)

Send("{ASC 065}")

(When using 2 digit ASCII codes you must use a leading 0, otherwise an obsolete 437 code page is used).

Edited by JustinReno

Share this post


Link to post
Share on other sites

But... why not use the c? Maybe it's because {ASC 065} is not a key?

Share this post


Link to post
Share on other sites

But... why not use the c? Maybe it's because {ASC 065} is not a key?

Send('{ASC 065}')

sends c

And, for my Multiple Desktops program, I'm trying to make customizable hotkeys... And it's easier this way, I think..


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

Send('{ASC 065}')

sends c

<_< You know what I mean... c is a key on the keyboard, and asc 065 is a character... But I don't know... :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

This worked...

MsgBox (0, "", Chr (097))
HotKeySet (Chr (097), "RunThis")

While 1
    Sleep (10)
WEnd

Func RunThis ()
    MsgBox (0, "", "Key Pressed: " & @HotKeyPressed)
    Exit
EndFunc

EDIT: Also note this:

{ASC nnnn} Send the ALT+nnnn key combination

Edited by Bert

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