How to make a script that opens by clicking on the picture?
How to make a script that opens by clicking on the picture?
How to make a script that opens by clicking on the picture?
I have an image that needs to be clicked once,but first you need to press the UP button. picture of such a plan
I have an image that needs to be clicked once,but first you need to press the UP button. picture of such a plan
Re: How to make a script that opens by clicking on the picture?
Hallo,
perhaps?:Click on the red color not on the white writing in it.
perhaps?:
Code: Select all
$LButton::
MouseGetPos, X, Y
PixelGetColor, Color, X, Y
IF Color = 0xE3
SendInput, {Up} ;first press the UP button
SendInput, {LButton Down}
Return
~LButton Up::Return
Re: How to make a script that opens by clicking on the picture?
Rohwedder wrote: ↑18 May 2022, 06:46Hallo,
perhaps?:Click on the red color not on the white writing in it.Code: Select all
$LButton:: MouseGetPos, X, Y PixelGetColor, Color, X, Y IF Color = 0xE3 SendInput, {Up} ;first press the UP button SendInput, {LButton Down} Return ~LButton Up::Return
you don’t understand, you need me to press the up arrow, and then the mouse itself points to the red color and presses the left button
Re: How to make a script that opens by clicking on the picture?
So the Up-key should become your hotkey?
Re: How to make a script that opens by clicking on the picture?
I click on the up arrow, and then the mouse should itself click on the red banner
Re: How to make a script that opens by clicking on the picture?
You haven't said if the mouse is already hovering over that red button and you simply want to use the Up-key instead of the mouse button to trigger it, or if the red button's position should be detected in the first place, and then clicked afterward
Re: How to make a script that opens by clicking on the picture?
Look, I press the up arrow, and then the mouse should automatically hover over the red button