WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Mouse and Cursor Topics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

MouseInfo Function

Keywords:   mouseinfo(4) mouseinfo(8)										  

Question:

I'm running the sample code from the MouseInfo function, but it isn't working. When I click on the left or right mouse buttons from inside Winbatch Studio, it never breaks out of the while loop.

Answer:

We made some changes in the 99H versions of Winbatch that correspond with MouseInfo(4), such that MouseInfo(4) will ONLY look at the actions of the mouse if it is being clicked when in a Winbatch window, such as a Boxes function or Dialog box, etc.

we added new request # to MouseInfo (MouseInfo(8)) which returns asynchronous status of mouse buttons (meaning Winbatch will check the status of the mouse is windows OTHER THAN the Winbatch window), as a bitmask.

This is like request #4, except #8 checks the state of the buttons at the time the function was called, as well as the asynchronous state, whereas #4 only returns the state at the time the function was called.


Article ID:   W14468
Filename:   MouseInfo.txt
File Created: 2001:01:17:09:16:10
Last Updated: 2001:01:17:09:16:10