Jump to content

ControlSend & _SendEx


Recommended Posts

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

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...