Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Removing/Hiding the mouse
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
supaphreek




PostPosted: Sat May 15, 2010 10:18 pm   Post subject: Removing/Hiding the mouse

What is it you are trying to achieve?
Remove the mouse (cursor). Basically, im trying to create a game, and when the mouse is inside the window (like other games), it should load the crosshair...... And it looks pretty weird with a mouse on top of it, so im trying to get it to remove the mouse, but still load the crosshair based on the (x,y) location of the mouse on the screen


What is the problem you are having?
I dont know how to do it.


Describe what you have tried to solve this problem
ive tried to use nocursor, and thats about it


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
None


Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
chopperdudes




PostPosted: Sat May 15, 2010 10:23 pm   Post subject: RE:Removing/Hiding the mouse

i do not think that is possible with turing.

btw nocursor means no flashing black box when asking user for keyboard inputs.
Tony




PostPosted: Sat May 15, 2010 11:23 pm   Post subject: RE:Removing/Hiding the mouse

The mouse cursor is outside of your application; you would need to make system calls (Windows API) to control those features. Turing does not have the facilities for such calls build in, but if you make a utility executable to do just that part for you, it could be called with Sys.Exec
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
TheGuardian001




PostPosted: Sat May 15, 2010 11:42 pm   Post subject: Re: Removing/Hiding the mouse

I'm fairly sure this functionality would have been added in the next update, had work on the language not ceased. The Turing IDE recognizes both Mouse.Hide and Mouse.Show as commands, but they don't currently do anything.

So yeah, there's no way to do this in Turing, unfortunately. You'll have to make do with seeing the cursor on top of your crosshair.
BigBear




PostPosted: Sat May 15, 2010 11:47 pm   Post subject: RE:Removing/Hiding the mouse

What are these commands??

Also Tony is right the easiest thing to do is make/find a visual basic or java script to hide the mouse, call that script in your program then draw the image of the crosshair where the mouse is (even if you can't see it, it is still somewhere)
TheGuardian001




PostPosted: Sun May 16, 2010 12:12 am   Post subject: Re: Removing/Hiding the mouse

Mouse.Hide() (alt: mousehide)
Mouse.Show() (alt: mouseshow)

Turing recognizes them as commands (they turn to black text, instead of the normal blue), however they don't actually have any functionality, and do not show up in the documentation.

Edit:
From the Turing docs, under the "Mouse" main page:
Quote:

There are also routines to hide and show the mouse on systems where it makes sense. (On GUI based systems like the Macintosh, the mouse can't be hidden as it may be needed by other applications running at the same time.)

So either the functionality is there, but not enabled, or they never got around to actually adding it in.
supaphreek




PostPosted: Sun May 16, 2010 2:45 pm   Post subject: RE:Removing/Hiding the mouse

Okay, well thanks! il use vb6 or something to hide the mouse and call on it thru turing Very Happy Thanks!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: