Computer Science Canada

Hiding the mouse

Author:  supaphreek [ Sun May 16, 2010 2:52 pm ]
Post subject:  Hiding the mouse

Hello!

Well, im pretty much just into turing, but i posted a topic there to figure out how to hide the mouse (cursor). Since turing does not support that, and a few have suggested that java can, im wondering if i can create a program in java that can hide the mouse. And can be called upon by using the sysexec command through turing.

What would i need to program in java?

P.S. i have ABSOLUTELY no knowledge of java or anything regarding it Razz

Thanks to anyone who helps!!

Author:  DemonWasp [ Sun May 16, 2010 3:21 pm ]
Post subject:  RE:Hiding the mouse

Ten seconds of google produced this link. Be warned that Java may not be the best / easiest way to do this because while it will work, it will require that all computers that your program runs on have a Java Runtime Environment (JRE) installed - while most do (and all should), there are many that won't, and the cursor won't hide on those machines. It seems like a lot of overhead / extra nonsense just to hide a cursor.

You might try a compiled language; although it won't work as reliably cross-platform, neither will Turing, so you're probably okay with that. It will also run a little faster and it won't require a JRE.

Author:  TheGuardian001 [ Sun May 16, 2010 4:45 pm ]
Post subject:  Re: Hiding the mouse

I'm not even sure Sys.Exec will allow you to supply a class/jar file as a parameter...

Author:  supaphreek [ Sun May 16, 2010 4:58 pm ]
Post subject:  RE:Hiding the mouse

Allright, then il try it with C++ the link you gave me for c++ doesnt really help me to be honest Razz

I need the exact code since i dont plan on programming anything related to C Razz

Author:  DemonWasp [ Sun May 16, 2010 8:40 pm ]
Post subject:  RE:Hiding the mouse

@Guardian: You get to run a command, as if at the command-line, I think. So you could run "java HideCursor 3 7" and that would invoke the HideCursor class with argument list [3, 7].


: