n3wbie Posted September 26, 2023 Share Posted September 26, 2023 (edited) Hello , While i added Hotkeys for the autoit scripts. It captures the command even when it is not active window. For example if i set hot key for Ctrl + b(Common shortcut for bold in msoffice applications) while using if i press ctrl + b autoit funtion is run even when i have pressed it in another active window I Do understand the following from help Quote When you set a hotkey, AutoIt captures the key-press and does not pass it on to the active application, with one exception: the Lock keys (NumLock, CapsLock, and ScrollLock) still toggle their respective state! But i want to achieve this that when current window is active only then shortcut should be enabled else it should not be triggered. Edited September 26, 2023 by n3wbie Link to comment Share on other sites More sharing options...
Solution ioa747 Posted September 26, 2023 Solution Share Posted September 26, 2023 then you have to use GUISetAccelerators ( accelerators [, winhandle] ) n3wbie 1 I know that I know nothing 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