Jump to content
Sign in to follow this  
smcombs

ControlSend & _SendEx

Recommended Posts

smcombs

Is it possible for me to incorporate Controlsend into the _SendEx function that was created. I am currently using _SendEx() like this:

CODE
While 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:

CODE
Func _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

Share this post


Link to post
Share on other sites
smcombs

Nevermind sorry just found it. Right below my eyes:

ControlSend("", "", "", "text", 0) Which clears keys sent by controlsend

thanks

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.