a6point6 Posted March 29, 2020 Share Posted March 29, 2020 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. Link to comment Share on other sites More sharing options...
alienclone Posted March 29, 2020 Share Posted March 29, 2020 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() a6point6 1 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 More sharing options...
a6point6 Posted March 29, 2020 Author Share Posted March 29, 2020 Thanks, moving the sleep up one fixed it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now