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: W14468Filename: MouseInfo.txt