Jump to content

ClipGet returning empty


Recommended Posts

Nomatter what i do Clipget() is returning empty string:


    FileDelete("price_in.set")
    MouseClick("left",498,416,5,1)
    AutoItSetOption("SendKeyDelay",10)
    _ClipBoard_Empty()
    send("^a^a^a")
    send("^c^c^c")
    Local $sData = ClipGet()
    sleep(1000)
    FileWrite("price_in.set",$sData)

 

It doesnt even return an error code.
When i do press ctrl+v i can see the price is there in clipboard.
 

See Image.

baffled.jpg

Link to comment
Share on other sites

i found an old thread that suggested there was not enough time between the ctrl+c and the ClipGet() for the content to get written to the clipboard, try a msgox of $sData after it is set to check if that is the case, if so then add a sleep between the ctrl+c and the ClipGet()

 

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...