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.

DarkBASIC Discussion / cursor position x,y

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Mar 2004 16:55
is there a command to return the x,y coordinates of the cursor?
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 12th Mar 2004 17:03
why?

But to answer you're question.. if you set the cursor.. (set cursor x, y) then you could use # instead;

x#=100
y#=100
set cursor x#, y#

In that way you can call back the cursor with x# and y#. And if you use random to place the cursor random.. you could use;

x#=rnd(600)
y#=rnd(400)
set cursor x#, y#

and you could still call back the x and y coordinates. Hope you'll mean this

Hope i've helped,

The Dream Keeper!

Bring fun to life!!!!!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Mar 2004 17:42
Or if you mean the mouse cursor:

Mousex()
Mousey()


Van-B


The nature of Monkey was irrepressible!.

Login to post a reply

Server time is: 2025-05-23 12:12:00
Your offset time is: 2025-05-23 12:12:00