smcombs Posted April 17, 2009 Posted April 17, 2009 Is it possible for me to incorporate Controlsend into the _SendEx function that was created. I am currently using _SendEx() like this: CODEWhile 1 Sleep(100) unpress() ProcessWaitClose("PAUSE.exe") If PixelGetColor(998,228) = 0xDEF708 Then Else ControlSend("Untitled - Notepad", "", $note, "3" & "3") EndIf WEnd Func unpress() While _IsPressed("33") sleep(100) WEnd EndFunc And I know I am using incorrectly as it was created for but with the original code: CODEFunc _SendEx($ss,$warn = "") Local $iT = TimerInit() While _IsPressed("10") Or _IsPressed("11") Or _IsPressed("12") if $warn <> "" and TimerDiff($iT) > 1000 Then MsgBox(262144, "Warning", $warn) EndIf sleep(50) WEnd Send($ss) EndFunc;==>_SendEx Is it possible to do a controlsend? Thanks
smcombs Posted April 17, 2009 Author Posted April 17, 2009 Nevermind sorry just found it. Right below my eyes: ControlSend("", "", "", "text", 0) Which clears keys sent by controlsend thanks
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