0
votes

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

1
Could you please describe what you are trying to do in more detail so that we can provide better answers?Spyre
Send {LWin down}{Ctrl down} ???Joe DF
i want to keep holding the windows and ctrl key and at the same time, while holding the keys i want to drag the left mouse click from one position to another positionFelipe Lullio
@JoeDF Send, {LWin down} {Ctrl down} CoordMode, mouse, screen MouseClickDrag, left, 3181, 326 , 3769, 642 it's holding the keys but when it gets to mouseclickdrag it release the holding keysFelipe Lullio

1 Answers

0
votes

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