bobbyab9987 Posted November 27, 2012 Share Posted November 27, 2012 Hi guys, My job requires me to use several programming IDEs like Visual Studio, Texas Instruments CCS, Keil, IAR,... One problem is that each IDE has its own keyboard shortcut. For example, to debug in Visual Studio, I have to press F5, but to debug in IAR, I have to press 'Ctrl + D'. I think one solution to this problem is to write a program to remap a keyboard combination to a different one, depending on which IDE is currently used. For example, I would like to use F5 for the debug action of all IDEs. Therefore if Visual Studio is currently active, then F5 will not be remapped. But if IAR is active, then F5 will be remapped to 'Ctrl + D'. Can I do this using AutoIt? Thanks. Link to comment Share on other sites More sharing options...
jmon Posted November 27, 2012 Share Posted November 27, 2012 There are several functions to assign Hotkeys, like "HotKeySet" or other functions to check which key has been pressed "_IsPressed". The good thing with HotkeySet, is that it overrides keys outside of Autoit. Then you will need to send keystrokes to your application using "ControlSend". [center]www.jmontserrat.comFile Sequence UDF - _StringExtractPaths - _StringTrimPattern - GuiCtrlSetOnTop - CalendarUDF[/center] Link to comment Share on other sites More sharing options...
Morthawt Posted November 27, 2012 Share Posted November 27, 2012 (edited) You could create hotkeys or use _ispressed as the previous poster said and then you could use Window functions to only fire it off when a particular window is active on the screen perhaps. Then fire off the right hotkey for the right programs. Worth checking into for sure. Edited November 27, 2012 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
IanN1990 Posted November 27, 2012 Share Posted November 27, 2012 (edited) In my view, this is the best way to "Hotkey" any keybaord function. More reliable then "Hotkey" as in some windows it doesn't detect correctly, allows more control over characters. As you can block it or allow it once or allow it many "ie being held down" and tones better then IsPressed as it doesn't require a pollin function checking very 10 ms to see if button xyz has been pressed Edited November 27, 2012 by IanN1990 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