Mouse Position Reset
Mouse Position Reset
How can I make a specific area a starting region? "93,210,1500,700" I want to do x0,y0,h1500,w700
Re: Mouse Position Reset
What do you mean by a starting region? What are you trying to accomplish?
Re: Mouse Position Reset
Hi,
"93,210,1500,700" This is my selected field. I want to show X:93, Y:210 positions as 0. When I command "MouseMove, 100, 100", it will operate within the given area. In a way, I want to use the area I have specified in window mode.
Re: Mouse Position Reset
You can use a custom function to move with the offset built in:
Code: Select all
CoordMode, Mouse, Screen
MouseMove(100, 100) ; moves to screen coordinates (193, 310)
return
MouseMove(x, y) {
MouseMove, x + 93, y + 210, 0
}
Re: Mouse Position Reset
boiler wrote: ↑24 Jun 2022, 16:12You can use a custom function to move with the offset built in:
Code: Select all
CoordMode, Mouse, Screen MouseMove(100, 100) ; moves to screen coordinates (193, 310) return MouseMove(x, y) { MouseMove, x + 93, y + 210, 0 }
Yes, this came to my mind, but I did not do it because there was a possibility of going out of the area. For example, when commanded as "MouseMove, 800, 1200", h1500,w700 will cross the Area limit.