Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Help needed for using Win32::Setupsup module

by Albannach (Prior)
on Nov 21, 2003 at 17:09 UTC ( #308958=note: print w/replies, xml ) Need Help??

in reply to Help needed for using Win32::Setupsup module

Evidently your SETUP.EXE does not give focus to the edit box you want when it starts, so I think all you need to do is TAB your way to the desired edit box before sending your text.

I have had to do this for a Win32 GUI app which didn't include all the edit boxes in the TAB sequence, and in that case I was able to use Win32::GuiTest to move the mouse pointer into the edit box, sent a mouse left click and then send the text - horrible in concept but worked perfectly in practice. You need to watch for screen resolution differences and calculate the mouse coordinates on the fly, but it can be done if the window always appears at the same position.

I'd like to be able to assign to an luser

  • Comment on Re: Help needed for using Win32::Setupsup module

Replies are listed 'Best First'.
Re: Re: Help needed for using Win32::Setupsup module
by pijush (Scribe) on Nov 21, 2003 at 17:43 UTC
    I have checked the window which appeared after running "SETUP.EXE" and the cursor is focused on desired TEXTBOX. Actually it is a password field and when you type then it appears in "*****". But when I am sending keystorke using SendKey method it is not going in the TEXTFIELD. I have also examined when I manually type from keyboard at that point (i.e. when the window appears after running "SETUP.EXE") and it is going in the text field. Any pointers? TIA -Pijush
      Hi Monks, Thanks for reply. I have cracked the problem. Albannach, you were quite right. I have written code for sending "TAB" before sending text field value and positioning the cursor at desired test box and then send the text value and it is working fine. But I am not sure why it is not sending text value at the first chance although the cursor was in the appropriate text box. Thanks again. TIA -Pijush

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://308958]
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-06-20 06:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.