简体   繁体   中英

How can i MouseClickDrag position while holding Ctrl+Windows key ? Autohotkey

Please, how can i hold Windows+Ctrl key while MouseClickDraging?

Here is the code:

Send, {Win Ctrl Down} 
CoordMode, mouse, screen
MouseClickDrag, left, 3181, 326 , 3769, 642 

Thanks

You need to ensure that the hotkey you use to trigger the logic does not conflict with the keys you want to send, ie. don't use Win or Ctrl . With that being said, the following example uses F3 . For the Win key, you need to specify left or right. Since it doesn't seem to be of importance, the example just assumes LWin .

CoordMode, mouse, screen 

F3::
Send, {LWin down}{Ctrl down}
MouseClickDrag, left, 3181, 326 , 3769, 642
Send, {Ctrl up}{LWin up}
return

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