in reply to Need to determine state of mousepointer

Two questions:

What operating system are you using?

Why would you want to do this? On my system (linux, but I guess this is valid for most operating systems) the mouse pointer status changes depending on which window is selected, so it doesn't really give you much information without knowing the active window too.

I'm guessing you want to wait for some process or other to finish, and depending on the program, there might be a better way of determining that than watching the mouse pointer.

Joost

  • Comment on Re: Need to determine state of mousepointer

Replies are listed 'Best First'.
Re^2: Need to determine state of mousepointer
by kevin_ketchum (Novice) on Jun 24, 2004 at 21:31 UTC
    I suppose I should have pointed that out right away.

    I am running the Win32:GUITest module against a series of Delphi 1 apps.

    These apps have some textboxes that are wired to 'on exit' events.

    If the textbox is blank when the cursor leaves it (via a hot key, tab, mouse click or whatever), the application (which is connected to a server via tcp/ip) asks a program on the server for a value to place in the field.

    During the communication phase, the mouse pointer is set to busy.

    My problem is that I need to suspend interaction with the application until the program receives the number and populates the field.

    I believe the easiest way is to watch the state of the mouse pointer and only resume once it returns to normal.