Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
Pretty much the subject.
I would like to know if it is possible to move my mouse using a batch file. I would ideally like to move it randomly and at random or set intervals.
If anyone has a batch that does such a thing could they please e-mail it to me.
Or if you could point me in the right direction whree i might find the info i need to write one myself that would be really good.
Thanks to all who can help
God bless
thanks

your asking alot...
is this movement suppose to appear in an application? or on a dos screen? cos batch programs only run at the command line.
I dont know, maybe you could reprogram int 33 to flag random movement???

hi,
yeah it should appear in a dos screen or maybe run in quiet mode would be better.
or maybe you could tell me or point to towards the syntax i would use to move the mouse pointer around the screen that might make my life simpler to start out more basically.
thanks

See this thread:
http://x56.deja.com/[ST_rn=ps]/viewthread.xp?AN=543174587&search=thread&svcclass=dnyr&ST=PS&CONTEXT=966011938.382468098&HIT_CONTEXT=966011938.382468098&HIT_NUM=0&recnum=%3c381DE47B.B51@pressroom.com%3e%231/1&group=alt.msdos.batch&frpage=viewthread.xp&back=clarinetOr ask Tom Lavedas in news:alt.msdos.batch

Perhaps it works better like this:
http://x56.deja.com/viewthread.xp?AN=543174587&search=thread&svcclass=dnyr&ST=PS&CONTEXT=966011938.382468098&HIT_CONTEXT=966011938.382468098&HIT_NUM=0&recnum=%3c381DE47B.B51@pressroom.com%3e%231/1&group=alt.msdos.batch&frpage=viewthread.xp&back=clarinet

You can move the mouse cursor to a given postion.
MOV AX,0
INT 33H ;Reset mouse.
MOV AX,1
INT 33H ;Show the cursor.
MOV AX,4 ;Position mouse cursor function.
MOV CX,1 ;Column * 8 in mode 3.
MOV DX,1 ;Row * 8 in mode 3.
INT 33H ;Do it.

I have just tried that and it does not seem to work.
It comes up with bad command or filename on every line.
Any ideas?
thanks

thanks
this is working great i'll have a go at playing around with it and see what happens.
And thanks again for you help and time
regards james
thanks

If you spotted the deliberate mistake then you could find yourself the lucky winner of a lifetimes supply of air!
I forgot to convert to hex, change the 16's to 10's and the 24's to 18's then it's Ok.

I couldn't get the above to work, does anyone have anything similar that will run on windows (98) desktop?

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |