Eru Posted March 24, 2007 Posted March 24, 2007 I have a script that uses hotkeys that I want to be customized by the end user. Basically right now, it opens using default keys and you can press a certain key to open up a GUI that lets you assign your own hotkeys with input boxes. Right now, the script works if you type in the autoit code for a hotkey. (e.g. "^{End}") What I'd like to do is have the person who's setting up the script to put their cursor in the GUI's input box and press a hotkey combination. (CTRL and or SHIFT and or ALT + Some Key) I'm not seeing a function that does anything like that in the functions library and I'm wondering if it is even possible, what with keyloggers being a problem now-a-days. Point me in a direction please. Thanks!
sandman Posted March 24, 2007 Posted March 24, 2007 _IsPressed will work. It isn't in the help file, but look in Misc.au3 for information. I haven't had much experience with this UDF.. one of the more experienced people could probably give more help than me. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]
Toady Posted March 24, 2007 Posted March 24, 2007 I have done this in one of my programs. It requires an array of scancodes corresponding to each key on the standard keyboard. Then use _IsPressed() and return the index from the array of scancodes. Send me a private message if you need more info, I wont post anything here. Btw for convience I added a text file in INI format with all the scancodes, check it out. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
BrettF Posted March 24, 2007 Posted March 24, 2007 _IsPressed will work. It isn't in the help file, but look in Misc.au3 for information. I haven't had much experience with this UDF.. one of the more experienced people could probably give more help than me. I was pretty sure it was in the helpfile? Shmeh! 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!
sandman Posted March 24, 2007 Posted March 24, 2007 Oops! It is.. hehe.. I feel really dumb now. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]
BrettF Posted March 24, 2007 Posted March 24, 2007 Oops! It is.. hehe.. I feel really dumb now. 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!
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