Removing/Hiding the mouse
Author |
Message |
supaphreek
|
Posted: 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
|
|
|
chopperdudes
|
Posted: 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
|
Posted: 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
TheGuardian001
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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 Thanks! |
|
|
|
|
|
|
|