SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2002
    Location
    amsterdam
    Posts
    83
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    ToolbarWindow32 press n presses at wrong location

    Is there an issue with WinToolbar Press function?
    How can I calculate the offset of a toolbarbutton?

    <font class="small">Code:</font><hr /><pre> Browser("Title:=.*","Index:=0").winedit("nativecla ss:=Edit","Index:=0").SetSelection 0,255
    wait 1
    Browser("Title:=.*","Index:=0").winedit("nativecla ss:=Edit","Index:=0").Type "www.google.nl"
    wait 1
    Browser("Title:=.*","Index:=0").WinToolbar("native class:=ToolbarWindow32","text:=P.*").Press 1
    wait 5
    msgbox "Missed button 1"
    </pre><hr />

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: ToolbarWindow32 press n presses at wrong locat

    Try with other indexes also 2,3,4 and see if they work

  3. #3
    Member
    Join Date
    Oct 2002
    Location
    amsterdam
    Posts
    83
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ToolbarWindow32 press n presses at wrong locat

    No, 2,3 makes a correct press and 4 an object not found error
    Using 2 clicks at the right location but still thats a weird inconsistency as its based on the location of button 2 (where also button 1 appears when button 2 dissapears).

    Can I refresh toolbar properties after typing something in Addressbar as then button 1 appears?
    Can I get x and y properties of buttons on a toolbar?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 07:57 AM.

Copyright BetaSoft Inc.