Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse code help please

Status
Not open for further replies.

TSRman

Technical User
Oct 21, 2005
6
GB
many moons ago (20years) I wrote a lot of assembler professonally for DOS - but have not doen any since.

I am creating a Museum display based on a PC with Win 98 and display pages created with HTML. The system will be interactive in so far as I have hard wired 2 buttons into mouse and the whole lot is behind perspex so that the mouse canot be touched, just the buttons. Everything works except 1 pesky thing, which I cant do in Javascript. I want to turn off the mouse cursor and make the current mouse hot spot out of the way, default at power on is in the middle of the screen

If my memory serves me well something like
MOV AX,04h ;Set mouse to x=0,y=0
MOV CX,00h
MOV DX,CX
INT 33h
MOV AX,02h
INT 33h ;Turn mouse cursor off
MOV AL,0oh ;return code 0
MOV AH,4ch ;exit program
INT 21h

All well and good - but will it work with windows

if not can any of you good folks help me out
(I no longer have access to MASM,LINk and must rely on DEBUG)


 
Doesn't windoze have its own mouse drivers?

At what stage would you execute this code?
 
yes - use windows drivers.

The problem is that in an 'unattended' boot I want my presentation to start automatically, and as the mouse is locked away, and since the default mouse cursor position at boot is slap bang in the centre of the screen, I want a 'utility' to run before I run my presentation so that the mouse is not visible.
Also visitors to the museum can select from alist of presentations using the left and right buttons on the perspex window, but cannot move the mouse. there is a problem with the Javascript which means if the user presses a button with the default mouse position in the middle of a movie then a 'menu' opens instead of the action I want.
So I need to ensure the mouse 'hotspot' is out of the way.

There is a demo of this system at
(ALT/F4 to exit - and remember it is not really a website - it is for a museum screen)
 
Maybe the Windoze api forum or Win95/98 forum might be better?

They tend to know stuff about Windoze that's lost on us mere assembler type chappies.

Apart from the ones that insist on programming Windoze in assembler that is...
 
Are you getting anywhere with this TSRman?

(That URL is broken by the way...)
 
Thanks for asking - the answers yes and no.
I found a free download called 'Ghostmouse'. It allows me to record a series of mouse events and then play them back on boot. So I recorded moving the mouse of the screen and that seems to have done the job.

Sorry - link broken due to continuing development
Job is all but finished now - just waiting for the profesional sound files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top