and set the mouse coordinates based on the screen
But I need to click on the 300, 300 position
My code is
Code: Select all
MouseClick,L,300,300,,0
What is the problem?
Code: Select all
MouseClick,L,300,300,,0
Code: Select all
CoordMode, Mouse, Screen
MouseClick,L,300,300,,0
hi, I have added the following code to the top position of the scriptRohwedder wrote: ↑21 Nov 2022, 04:32Hallo,
setting mouse coordinates based on the screen did not work for some reason.
Try:Code: Select all
CoordMode, Mouse, Screen MouseClick,L,300,300,,0
Code: Select all
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, ToolTip, Screen
Code: Select all
ClickScreen(300,300)
ClickScreen(x, y)
{
Static SX := 0x10000/A_ScreenWidth, UI := "UInt"
, SY := 0x10000/A_ScreenHeight, ME := "mouse_event"
DllCall(ME, UI, 0x8001, UI, Ceil(x*SX), UI, Ceil(y*SY))
DllCall(ME, UI, 0x02), DllCall(ME, UI, 0x04)
}