← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232234]: Type what is in clipboard into a dropdown menu

 

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

    Status: Needs information => Open

Torben gave more information on the question:
yes it is on a mac. It does not write what has been copied into the
clipboard.  what I'm trying to do is to make the drop-down menu jump
down to what I am writing.

here's a bit more of the code:

    wait("dlllllill.png", 30*60) # This will spinlock for 30 minutes for the button to appear
    if exists("dlllllill.png"):
         keyDown(Key.SHIFT)
         type("7")
         keyUp(Key.SHIFT)
         wait(1)
         type("ava")
         type("\n") 
    wait("1373464816283.png", 30*60) # This will spinlock for 30 minutes for the button to appear
    if exists("1373464816283.png"):
        wait(3)
        switchApp("Microsoft Excel")
        type(Key.LEFT * 6)
        type("c", KEY_CMD)
        type(Key.RIGHT * 6)
        switchApp("Firefox")
        type(Key.TAB * 14)   
        test = ENV.getClipboard()         
        paste(text)   
        switchApp("Microsoft Excel")
        type("s", KEY_CMD)
        type("c", KEY_CMD)
        switchApp("Firefox")
        type(Key.TAB * 2)
    type("\n")
    type("g")

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