Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Picking and retaining a variable from input

Author
Message
Rixarn
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 22nd Jun 2004 18:21
How can i pick a value that is constantly changing(such as a determined mousex position) to a fixed value in a variable?
ex. moving the mouse, and when i hit returnkey() i want to store that value into a variable or something, so that variable is independant now from the mousex position and doesnt change anymore even if i move the mouse.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 22nd Jun 2004 18:33
Something like this perhaps:



Just ask if you want an explanation of any of the commands used.


Boo!
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 22nd Jun 2004 18:34
I'm not entirly sure what you mean but could it be something like this:



And you then use MouseX and MouseY in your program.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
Rixarn
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 22nd Jun 2004 20:05
Thanks! that was what i was looking for, actually i expected to see some dim or data or memblock manipulation to do this(i tought it was harder), but i see its very simple! thanks to both !

Login to post a reply

Server time is: 2024-11-26 22:16:48
Your offset time is: 2024-11-26 22:16:48