hi,
i need to find a way to updat ethe mousex and mousey for something else with a timer, how do you do that :/
(not just by picscreen_mousemove)
thanks!
Misunderstood
Unregistered
can you explain a little more?
Are you just talking about the whole form?
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
frmMirage_mousemove(button as integer, shift as integer, x as single, y as single)
miragex = x
miragey = y
end sub
Public miragex as single
Public miragey as single
miragex and miragey will keep your mouse coordantes even if you do not move your mouse, but will change if you change your cursor coordantes.
You don't need a timer because globals do not change unless you ask them to.
hmm, this doesnt work...i tried the same, but i mean tit like this:
a timer will always calculate on what tile your mouse is right now, so its like the this:
Private Sub picBackSelect_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
where it gets the x and y automatically when you move, but i want it all the time to calculate the new time
i hope that clears this a lil bit up
thanks!
So you want to always calculate the new position? Try the GetCursorPos API.
ya that API works wonders... and I would just like to point out that mesch said tit... haha.