in reply to Simulating mouse clicks in Windows

Using Win32::GuiTest, you have some cool functions to work with. You could use MouseMoveAbsPix and SendMouse in conjunction, use PushButton, or bind a keystroke to the button and use SendKeys. :-)

Replies are listed 'Best First'.
Re^2: Simulating mouse clicks in Windows
by tall_man (Parson) on May 29, 2003 at 19:30 UTC
    Thanks for your suggestions, Mr. Muskrat. I considered solutions where I forced the mouse to move with MouseMoveAbsPix, but I would rather simulate the click events without moving the mouse if I can. The user would be distracted and annoyed if I take mouse control away.

    My status window is just a simple one with a Tk::ProgressBar and a text string in it, so PushButton won't work. SendKeys may be my best option. Keystroke events are a bit of a pain because sometimes another window takes the focus and gets them, but they may be the best I can do.