If you observe in below code.
Func _WinWaitActivate($title,$text,$timeout=$time_out)
Logging("Waiting for "&$title&":"&$text)
$dHandle = WinWait($title,$text,$timeout)
if not ($dHandle = 0) then
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
Else
Logging("Timeout occured while waiting for the window...")
Exit
EndIf
EndFunc
WinActivate("Untitled - Notepad")
$p = "Notallowed1!!"
Send("{ENTER}{ENTER}{ENTER}{ENTER}"& $p &"{ENTER}create{SPACE}database{SPACE}"& $p &";{ENTER}")
In the notepad if you observe, ! is missing in the text got.
Is there way to get that also printed.