How to send key on background window

09/25/2011 18:44 BadGamer78#1
Do you know how send key in a background window with autoit ?
I try WinActivate("4Story") but I can't do enything else...
09/25/2011 19:26 Kraizy​#2
I think it should be possible with ControlSend-Func, but I'm not sure, never worked with AutoIt...
09/25/2011 19:39 BadGamer78#3
[Only registered and activated users can see links. Click Here To Register...] ?
But I don't understand the differencce between:
title The title of the window to access.
text The text of the window to access.
09/26/2011 14:13 Kraizy​#4
PHP Code:
//Example from autoitscript.com:
ControlSend("[CLASS:Notepad]""""Edit1""This is a line of text in the notepad window"
Open Notepad and AutoIt Window Info. Move your mouse over the TextBox in the Notepad and u will see:
Window:
Title: Untitled - Notepad
Class: Notepad

Control:
Class: Edit
Instance: 1

Like I said before I don't use AutoIt, but I think you got more options to find the TextBox in the Notepad:
PHP Code:
//Method 1:
ControlSend("[CLASS:Notepad]""""Edit1""Test123")

//Method 2:
ControlSend("""Untitled - Notepad""Edit1""Test123")

//Maybe also:
ControlSend("[CLASS:Notepad]""Untitled - Notepad""Edit1""Test123"
So the first param is the class-name and the second one is the title-name, it should be enough to just enter one of these params..but I'm not sure, just try it out..