简体   繁体   中英

AutoHotkey's ControlClick and Google Chrome

I'm trying to send a click to a google chrome window but it keeps making the window active thus preventing me to do anything else on the computer.

This is what I'm using:

SetTitleMatchMode, 2
ControlClick, x136 y400, My Window,,,, NA

The NA doesn't seem to work on chrome. Any suggestions how to get this to work?

Low tech solution is to just save and restore the active window. It will flicker but should work.

Me := WinExist("A")
ControlSend...
WinActivate %Me%

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM