Mirage Source http://web.miragesource.net/forums/ |
|
how to updated the mousex and mousey http://web.miragesource.net/forums/viewtopic.php?f=201&t=315 |
Page 1 of 1 |
Author: | Gilgamesch [ Mon Jul 24, 2006 1:43 pm ] |
Post subject: | how to updated the mousex and mousey |
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! |
Author: | Gilgamesch [ Tue Jul 25, 2006 12:54 pm ] |
Post subject: | |
no answere? :/ |
Author: | Misunderstood [ Tue Jul 25, 2006 4:18 pm ] |
Post subject: | |
can you explain a little more? |
Author: | Gilgamesch [ Tue Jul 25, 2006 6:07 pm ] |
Post subject: | |
Misunderstood wrote: can you explain a little more?
alright, i need a lilttle piec eof code that tells a 2 variables where my current x and y is, all the time, even though i dont move my mouse thanks! |
Author: | Dark Echo [ Wed Jul 26, 2006 6:31 am ] |
Post subject: | |
Are you just talking about the whole form? |
Author: | Gilgamesch [ Wed Jul 26, 2006 10:38 am ] |
Post subject: | |
Dark Echo wrote: Are you just talking about the whole form?
yeah, in frmmirage, all the time i want my mousex and y to be updated in a variable,lets say mousecorx and mousecory, and both will have all the time the mousex and y, even if i dont move my mouse, they will get the positio. the normal way is: pic_screenmousemove(something) then the code for the mousex and y in a variable thanks |
Author: | Robin [ Wed Jul 26, 2006 11:02 am ] |
Post subject: | |
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. |
Author: | Gilgamesch [ Fri Jul 28, 2006 10:25 am ] |
Post subject: | |
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! |
Author: | Spodi [ Fri Jul 28, 2006 10:37 am ] |
Post subject: | |
So you want to always calculate the new position? Try the GetCursorPos API. |
Author: | Forgotten [ Fri Jul 28, 2006 11:36 am ] |
Post subject: | |
ya that API works wonders... and I would just like to point out that mesch said tit... haha. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |