Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: disable input mouse
Compile the following script. This script can be run from your main script to disable the mouse....
;DISABLEMOUSE.EXE - if necessary, Hold down the Ctrl key to re-enable the mouse WinTitle("","Mouse Disabler") While @True MouseMove(1000, 500, "", "") if IsKeyDown(@CTRL)==@TRUE then break Endwhile exit
Here is an example of the main script calling the compiled mouse disabler exe. Note the use of IntCOntrol 56 to re-enable the mouse...
;This script is designed to disable the mouse while another ;Winbatch operation is occuring in the background. ;Mainscript code BoxOpen("Mouse Disabler","initialized") BoxText("This script is designed to disable the mouse while another%@CRLF%Winbatch operation is occuring in the background.") Timedelay(2) BoxText("Disabling the mouse now...") ;disable the mouse Run("DISABLEMOUSE.EXE","") ;Insert processing here For x= 1 to 100 BoxText("the value of x is %x%") Next ;re-enable the mouse, by killing disable mouse process IntControl(56,"Mouse Disabler",0,0,0) exit
Here's as trick that only seems to work on Windows 95 / 98.
This is not supported on Windows NT /2000. It will have no affect on NT/2000.
NOTE: Once this command is called you will *have* to reboot you system to get the mouse back.
Run("rundll32.exe","mouse,disable")
Article ID: W14725
Filename: How to disable the Mouse.txt
File Created: 2003:02:20:13:51:20
Last Updated: 2003:02:20:13:51:20