sshrum Posted June 4, 2008 Share Posted June 4, 2008 (edited) I'm writing a registry of hotkeys and setting the value to the command that I want it to run like this:!^#a=c:\some\command\likethis.exeI'm doing it this way so the user will have the ability to "go nuts" and create as many hotkeys as they want, including the ability to define multiple hotkeys for the same function (if they want).I'm using RegEnum to go thru the registry key where I'm storing these values and using hotkeyset() to call a secondary function I'm trying to write called _hotkeytrapper().How do I get what hotkeys were/are being pressed so I can query that combo in the reg to do a run() on the assigned value?EDIT: This wouldn't be a issue if we could pass function calls with params with hotkeyset() Then I could do some thing like this:hotkeyset($skey, run($scommand))TIA Edited June 4, 2008 by sshrum Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
sshrum Posted June 4, 2008 Author Share Posted June 4, 2008 Just saw the @HotKeyPressed mentioned...apparently, it helps to read the help file. Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
martin Posted June 4, 2008 Share Posted June 4, 2008 I'm writing a registry of hotkeys and setting the value to the command that I want it to run like this: !^#a=c:\some\command\likethis.exe I'm doing it this way so the user will have the ability to "go nuts" and create as many hotkeys as they want, including the ability to define multiple hotkeys for the same function (if they want). I'm using RegEnum to go thru the registry key where I'm storing these values and using hotkeyset() to call a secondary function I'm trying to write called _hotkeytrapper(). How do I get what hotkeys were/are being pressed so I can query that combo in the reg to do a run() on the assigned value? EDIT: This wouldn't be a issue if we could pass function calls with params with hotkeyset() Then I could do some thing like this: hotkeyset($skey, run($scommand)) TIASee the link in my signature for having parameters with HotKeys and OnEvents Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Zedna Posted June 4, 2008 Share Posted June 4, 2008 Look at HotKey selector UDF Resources UDF ResourcesEx UDF AutoIt Forum Search 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