SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TypeKeys() Didnít work on short cut.

    Hi All,

    Please help,
    I'm trying use Silk to call Short Key in Java App.
    It work before, and after I rebooted computer it not working.
    Here how Iím doing that

    [ ] SM.SetActive()
    [ ] SM.TypeKeys("<Ctrl-f>")
    [ ] Find.Cancel.Click()

    Any workaround or other way to do it?


    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    What was between the quotes? What should work is something like "&lt;Alt-f&gt;".

    One thing you may want to look at is what you're using for a key. Some applications, although the shortcut on the menu says "Alt-F", they don't actually accept Alt-F but only accept Alt-f. Go figure.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    Check your base state. Use silk to check if your control reference is still valid(use that record util). Usually if it worked and then broke, it's either silk going crazy or the reference has changed. You should use the transcript to try a couple calls to access this item. It must be something simple.

    Ex: My silktest would not pickup the changes in my code once and while. I have to close SilkTest and re-open it.

    If Silk does weird things before reboot, try to close all browser and Silk, then run the test again.

    ------------------

  4. #4
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    Hi,

    I put between the quotes "<Ctrl-f>".
    As I said it works before, now I'm trying on an other mashine It don't work also.

    Any idias what could be a problem?

    Thanks for help,
    Arlida


    ------------------

  5. #5
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    Arlida,

    I've encountered the same problem here with both Silk 5.5 and 5.0.3.1. TypeKeys() fails to perform the desired action when it is used on a JavaMainWin even though similar actions work OK with JavaDialogBoxes. I've submitted a bug report to Segue. This problem is easy to reproduce with Segue's own Java application testapp.bat.

    John


    ------------------

  6. #6
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    Segue has a work-around for the JavaMainWin TypeKeys() problem with accelerators and underlined-letter menus and menu items.

    withoptions
    {
    BindAgentOption(OPT_PLAY_MODE, "Win32")
    // put your typeKeys command here...
    }


    John


    ------------------

  7. #7
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TypeKeys() Didnít work on short cut.

    Hi John,

    Thanks for your help.
    I have a question about where i need to write ?

    withoptions
    {
    BindAgentOption(OPT_PLAY_MODE, "Win32")
    // put your typeKeys command here...
    }

    Can you help?

    Thanks again,
    Arlida.






    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:02 PM.

Copyright BetaSoft Inc.