SPONSORS:






User Tag List

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

    Swing application - no MoveMouse(), no Click()

    I'm currently evaluating Silk 5.x for use in automating a JAVA Swing application (JDK 1.2.2) under NT. While it can correctly recognize Swing components such as a JavaJFCImage, I cannot move the mouse nor can I Click() on anything.

    Other commands such as GetRect() and GetContents() work just fine.

    Without support for mouse-based navigation this eval' is DOA.

    Any ideas? Solutions?

    Thanks.

    John


  2. #2
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Swing application - no MoveMouse(), no Click()

    You should be able to click and move the mouse. That capability is independent of Java. Have you tried using Object.MoveMouse and Object.Click? Even though these statements may not be recorded in the script, you should be able to hand script these to verify if they indeed work.

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

    Re: Swing application - no MoveMouse(), no Click()

    Sure I can physically move the mouse; it's just impossible to do it with the 4Test commands you indicate.

    I use record only very rarely.

    main()
    {
    EFCM.SetActive() ;
    EFCM.Click() ;
    EFCM.Sw2.Click() ;
    Print(EFCM.Sw2.GetRect()) ;
    EFCM.Sw2.MoveMouse() ;
    EFCM.Sw2.Click() ;
    ListPrint(EFCM.GetContents()) ;
    }

    Only the GetContents() command does anything.
    Even in debug mode, the cursor never moves.

  4. #4
    Junior Member
    Join Date
    Sep 2000
    Location
    Burlington, MA USA
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Swing application - no MoveMouse(), no Click()

    What does a recording of the move & click show? I had a similar problem with our applet. Drags & clicks were doing nothing...until I realized I was using the wrong window. Our applet has several layered panes and the layer which we use for our invokeMethods calls is not the same one for the mouse controls. All worked fine when I found the right layer by recording a move & click.

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Swing application - no MoveMouse(), no Click()

    You need to change some of the Agent
    Options from their Default Values for
    JDK 1.2.2.
    Under "Other", change "Events used to invoke
    popup menus" so that "<Button 1>" is used
    instead of "<Button 2>".
    Under "Compatibility" I usually check
    "Don't group radio button in a list".
    Hope this helps.
    -Rob
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

 

 

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 04:05 PM.

Copyright BetaSoft Inc.