I want that clicking is not possible in this area.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
John1
Posts: 236
Joined: 11 May 2020, 11:54

I want that clicking is not possible in this area.

08 May 2021, 11:14

Hello,

I want that clicking is not possible in this area.

Code: Select all

#If blockPos([345,  1018], [1493, 1050])  ; Untere Leiste nicht anvisierbar
LButton::
RButton::
MButton::
XButton1::
XButton2::SoundBeep, 1500, 30
#If

blockPos(xy1, xy2) {
 MouseGetPos, xpos, ypos
 Return xpos >= xy1.1 && xpos <= xy2.1 && ypos >= xy1.2 && ypos <= xy2.2
}


Return
It works when i click manual.
But when i send this command it clicks in this area. I want that the command is also not able to click in this area.

Code: Select all


:T:ESSF::



    Click, left, down
    sleep, 15
click
sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15
MouseMove, 0, 24 , 0, R

    Click, left, down
    sleep, 15
click
sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15


MouseMove, 0, 24 , 0, R

sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15


MouseMove, 0, 24 , 0, R

sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15


MouseMove, 0, 24 , 0, R

sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15
    Click, left, down
    sleep, 15
click
sleep, 15


Thank you!
User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: I want that clicking is not possible in this area.

08 May 2021, 11:25

You can add to top of your hotstring routine:

Code: Select all

If blockPos([345,  1018], [1493, 1050])  
 Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hedehede81, OrangeCat and 301 guests