Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

DIY: Wait For a Mouse Event

- - - - -

  • Please log in to reply
No replies to this topic

#1
FlierMate

FlierMate

    End User

  • Member
  • Pip
  • 68 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Description: Wait For a Mouse Event (Useful for Your Batch Programming)Screenshot:

Please follow step-by-step as the screenshot shown below:

Note:DEBUG is an internal DOS command.

* There was a small mistake in the screenshot shown below. It should be 0Eh bytes instead of 0Ch bytes when specifying for CX register.
Attached File  CLICK.GIF   9.59KB   8 downloads
100 MOV AX,0003
103 INT 33 // Mouse Interrupt Call
105 CMP BX,01 // Left Mouse Click?
108 JNZ 0100 // Loop
10A MOV AH,4C  // Exit to DOS
10C INT 21

You will notice new CLICK.COM file in the directory.
After you run this tiny program, you have to click using your left mouse button on any part of the screen in order to continue (or return to command prompt)

Edited by FlierMate, 14 November 2011 - 06:16 PM.



How to remove advertisement from MSFN



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN