Question #223905 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223905

scott f posted a new comment:
Here is an example

First, open Excel and select the first ticket ID.
Then, make sure your Firefox (or other browser) window is ready to search.

Hopes this helps get you or someone else who comes across this onto the
right track!

## START SCRIPT ##

for i in range(225): # if you have 225 ticket numbers to search
    switchApp("Microsoft Excel") # switch to Excel
    type("c", KeyModifier.CTRL) # copy the ticket number from Excel
    type(Key.RIGHT) # move to the next column in Excel
    switchApp("Firefox") # switch to your Firefox browser
    click("mysearchbox.png") # click the search box
    type("v", KeyModifier.CTRL) # paste the ticket number
    type(Key.ENTER) # hit enter
    
    if exists("searchworked.png"): # check if the search worked
                                                             # (png image must 
be of something
                                                             # showing up when 
a search worked)
        dragDrop("startlocation.png", "endlocation.png") # if so, drag and drop 
your desired file
    # HERE, INSERT CODE TO RESET THE SEARCH BOX (e.g. refresh window)

## END SCRIPT ##

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to