mld has asked for the wisdom of the Perl Monks concerning the following question:

After entering some value in particuluar field of IE, I want to call "Enter" key or "Tab" key. Is there any module for reference?

Replies are listed 'Best First'.
Re: How to pass "Enter" key and "Tab" key
by davido (Cardinal) on Apr 09, 2009 at 07:17 UTC

    It sounds to me like you're asking for some client-side behavior after a particular value is entered into a text field in Internet Explorer (or presumably whatever browser the end user chooses). Perl isn't generally used for client-side trickery. For that, you may be looking for Javascript, or some other client-side solution. Perl, as applied to web programming, is generally run on the server side as a CGI program. From the server side, there is not really anything you can do to manipulate text fields in a browser in real-time.

    Web applications are usually broken down into two components: the server side programming, and the client side programming. A CGI application, possibly programmed in Perl, can output HTML or just about anything else, including Javascript, which is then executed on the client's browser (client side). But at that point, your question becomes a Javascript question, not Perl.


    Dave

Re: How to pass "Enter" key and "Tab" key
by marto (Cardinal) on Apr 09, 2009 at 08:40 UTC

      I downloaded and installed Win32::GuiTest module.Following error occured. Can't locate loadable object for module Win32::GuiTest in @INC

        Hi mld,

        A few things, firstly which version of Perl are you using Active State, Strawberry Perl? How did you install Win32::GuiTest, and did you experience any errors/warnings? Could you post some code which reproduces the problem (see Writeup Formatting Tips and How do I post a question effectively? please)?

        The error message you have posted here suggests that Win32::GuiTest has not been installed properly, could you post the results of running the following from the command line:

        perl -e 'print join("\n", @INC);'.

        For clarification, could you write a couple of sentences to describe what you are trying to achieve?

        Update: Fixed a couple of typos

        Thanks

        Martin

Re: How to pass "Enter" key and "Tab" key
by afoken (Chancellor) on Apr 09, 2009 at 06:55 UTC

    I really do not understand your question. What do you mean with "calling a key"? What is IE? Internet Explorer? If yes, this is propably the wrong forum.

    How do I post a question effectively?

    If this is just a problem with english, try asking in your native language.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: How to pass "Enter" key and "Tab" key
by zentara (Cardinal) on Apr 09, 2009 at 11:49 UTC