botanic Posted December 12, 2006 Share Posted December 12, 2006 (edited) my script is If @hour = "00" Then $hourtime = "12" else $hourtime = @HOUR Endif If $inimode = "BOTH" then _sendMessage("What do you want to do?", "", "") sleep(100) _sendMessage("1=BUY 2=SELL", "", "") sleep(5000) MouseClick("left", 773, 683, 5, 0) send("^c") if ClipGet() = (($hourtime) & ":" & (@min) & " " & ($MYNAME) & ": " & "1=BUY 2=SELL") then Sleep(5000) if ClipGet() = (@hour & ":" & @min & " " & $VISITOR & ": " & "1") then Global $mode = "BUY" if ClipGet() = "2" then Global $mode = "SELL" Sleep(1000) instade it does... nothing... im just trying to put in a stop when it detects 12:43 botanic: 1=BUY 2=SELL on the screen then also have it determine the "buy" or "sell" based off the input of the $visitor Edited December 12, 2006 by botanic Link to comment Share on other sites More sharing options...
mikehunt114 Posted December 12, 2006 Share Posted December 12, 2006 Where in that code do you ever put the time variable anywhere? All I see is you defining it. Where do you select the text? All I see is you hitting Ctrl+C. Please post complete code, or comlpete it if you haven't done these things... IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
MHz Posted December 12, 2006 Share Posted December 12, 2006 When working with the clipboard sometimes some sleep is needed to compensate for some program background comsideration. 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