Is there a way to use variables for the x/y values in send {click}?
I have tried a few different things and done some searching, but I have had no love.
I already have a work around ready, but I would like to see if someone knows how to do it before I commit to my work around.
In before someone says to use the mouseclick command, or click command, etc.
It has to be Send, {click, x, y} and it has to take variables for the x and y
Thanks.
Using variables with Send {Click} Topic is solved
Re: Using variables with Send {Click}
Try this:
I hope that helps.
Code: Select all
x := 0, y := 0
Loop
MouseMove, ++X, ++Y
Esc:: ExitApp
Re: Using variables with Send {Click}
I'm looking to use variables within [ send, {click} ]wolf_II wrote: ↑12 Dec 2018, 03:31Try this:I hope that helps.Code: Select all
x := 0, y := 0 Loop MouseMove, ++X, ++Y Esc:: ExitApp
Re: Using variables with Send {Click} Topic is solved
just use them?
Code: Select all
x := y := 0
Send {Click %x%, %y%, 0}
Re: Using variables with Send {Click}
swagfag wrote: ↑12 Dec 2018, 03:48just use them?Code: Select all
x := y := 0 Send {Click %x%, %y%, 0}
lol, I have no idea why, but this didn't work a few days ago when I had tried.
Thanks!
Re: Using variables with Send {Click}
Try this:
I hope that helps.
Edit too late
Code: Select all
x := 0, y := 0
Loop 10 {
Send, {click, %x%, %y%}
x++, y++
}
Esc:: ExitApp
Edit too late
Who is online
Users browsing this forum: garry, marypoppins_1, ShatterCoder and 127 guests