Adding GUI child to another window breaks Ctrl modifiers (temporarily)

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
eugenesv
Posts: 175
Joined: 21 Dec 2015, 10:11

Adding GUI child to another window breaks Ctrl modifiers (temporarily)

26 Apr 2024, 13:15

When holding Ctrl (try in a WordPad)
  • first press C you get regular "Copy" action
  • second press C you get C printed instead
Releasing Ctrl and pressing it again seems to correct the situation
How to avoid breaking it in the first place?

(I'm using this trick to later hide a mouse pointer in the window owner)

Code: Select all

#Requires AutoHotKey 2.0
#Warn All, Off
~^c::{
  ctrl_hider() ;
}
ctrl_hider(OnOff := '', is🖰vis := '') { ;
  static guiBlankChild := Gui() ;
  guiBlankChild.Opt("+Owner" . WinGetID("A")) ;
}

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: jaccotjuhhh, jacek678, kunkel321, Rohwedder, songdg and 49 guests