Achilles Posted November 3, 2007 Share Posted November 3, 2007 (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 November 3, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
JustinReno Posted November 3, 2007 Share Posted November 3, 2007 (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 November 3, 2007 by JustinReno Link to comment Share on other sites More sharing options...
Achilles Posted November 3, 2007 Author Share Posted November 3, 2007 Right in the help file! , add a 0 before 99.Should of mentioned, I already tried it with the 0 and it sill didn't work. I'll change in my example code though... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Nahuel Posted November 3, 2007 Share Posted November 3, 2007 But... why not use the c? Maybe it's because {ASC 065} is not a key? Link to comment Share on other sites More sharing options...
Achilles Posted November 3, 2007 Author Share Posted November 3, 2007 But... why not use the c? Maybe it's because {ASC 065} is not a key?Send('{ASC 065}') sends cAnd, 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] Link to comment Share on other sites More sharing options...
Nahuel Posted November 3, 2007 Share Posted November 3, 2007 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... Link to comment Share on other sites More sharing options...
BrettF Posted November 3, 2007 Share Posted November 3, 2007 (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 November 3, 2007 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now