moving mouse?

D

dado

I'm implementing a "self-tutorial" into my app,
and wondering if there's a way of moving a mouse
cursor on command? probably using sys,os modules?
 
D

Dennis Lee Bieber

I'm implementing a "self-tutorial" into my app,
and wondering if there's a way of moving a mouse
cursor on command? probably using sys,os modules?

Such activities are specific to the graphical system of the
underlying OS... They wouldn't be in such basic modules -- On a Linux
system, you probably have to use low-level X-routines, and M$ Windows
has its own native API (On AmigaOS you'd patch into the input stream
handler at a high priority and write events -- you could also write
events for keypresses, disk changes, etc. as they all went through the
same input stream processor; a data structure identifying the type of
event, timestamp, coordinates/key-codes, etc.)
--
 
?

=?ISO-8859-1?Q?Daniel_Sch=FCle?=

dado said:
I'm implementing a "self-tutorial" into my app,
and wondering if there's a way of moving a mouse
cursor on command? probably using sys,os modules?

sys doesn't mean [operating] system
it's completely Python related,
the intepreter itself
you can use it to see how many referenced does a object
like 1 have .. or check the current recusrion depth .. or
see the encoding of stdin, stdout
only such things

os module is operating system related
it provides many lowlevel functions .. os.open etc

I dont know of a module which provides things you are looking for

Regards, Daniel
 
D

dado

dado said:
I'm implementing a "self-tutorial" into my app,
and wondering if there's a way of moving a mouse
cursor on command? probably using sys,os modules?

I also figured this would be useful for making
'remote desktop' kinda thing...
 
J

jmdeschamps

dado said:
I also figured this would be useful for making
'remote desktop' kinda thing...

Naturally, you can always implement a simulation of this yourself in
most GUI tools you would be using. I guess the complexity, thoroughness
of your tutorial may mean that its unfeasable, business wise, but
technologically it doesn't seem like rocket science...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,353
Members
48,038
Latest member
HunterDela

Latest Threads

Top