|
You last visited: Today at 19:23
Advertisement
Listbox/Input Feld andrer Programmes auslesen/controlsend
Discussion on Listbox/Input Feld andrer Programmes auslesen/controlsend within the AutoIt forum part of the Coders Den category.
05/19/2011, 15:20
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
Listbox/Input Feld andrer Programmes auslesen/controlsend
Hi,
gibt es eine möglichkeit mit AutoIT Listboxen/Inputboxen... anderer Programme auszulesen oder etwas per controlsend reinzuschreiben? Etwa bei TeamSpeak 3??
MfG Ludder231
|
|
|
05/19/2011, 21:54
|
#2
|
elite*gold: 0
Join Date: Jun 2008
Posts: 154
Received Thanks: 23
|
Per Controlsend, die nötigen Infos zum Control beziehst du über die Au3Info.exe im AutoIT-Verzeichnis.
|
|
|
05/20/2011, 01:04
|
#3
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Du brauchst nur das Handle des Inputs, dann kannst du den Text per SendMessage auslesen (  ).
Ich habe mal ein Beispiel mit Notepad erstellt:
PHP Code:
$hWnd = ControlGetHandle("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]")
$Buffer = DllStructCreate("char[255]")
$Lenght = DllCall("User32.dll", "int", "SendMessage", "HWND", $hWnd, "int", 0xD, "int", DllStructGetSize($Buffer), "ptr", DllStructGetPtr($Buffer))
$Text = ""
For $i = 1 To $Lenght[0]
$Text &= DllStructGetData($Buffer, 1, $i)
Next
MsgBox(0, "", $Text)
Oder einfach:
PHP Code:
MsgBox(0, "", ControlGetText("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]"))
|
|
|
05/20/2011, 15:42
|
#4
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
Quote:
Originally Posted by KillerDeluxe
Du brauchst nur das Handle des Inputs, dann kannst du den Text per SendMessage auslesen (  ).
Ich habe mal ein Beispiel mit Notepad erstellt:
PHP Code:
$hWnd = ControlGetHandle("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]")
$Buffer = DllStructCreate("char[255]")
$Lenght = DllCall("User32.dll", "int", "SendMessage", "HWND", $hWnd, "int", 0xD, "int", DllStructGetSize($Buffer), "ptr", DllStructGetPtr($Buffer))
$Text = ""
For $i = 1 To $Lenght[0]
$Text &= DllStructGetData($Buffer, 1, $i)
Next
MsgBox(0, "", $Text)
Oder einfach:
PHP Code:
MsgBox(0, "", ControlGetText("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]"))
|
Und was ist wenn man mit dem AutoitWindow info keine inputboxen/butten etc anpeilen kann? ist bei TeamSpeak 3 so -.-
|
|
|
 |
Similar Threads
|
[AutoIT] ListBox
01/15/2011 - General Coding - 0 Replies
Guten Abend!
Mein Problem ist folgendes: Ich habe 2 Comboboxen. Wenn ich in einer Combobox 2x auswähle, soll ein vorgegebener String 2x in der Listbox erscheinen. jedoch ersetzt mein Programm diesen String immer wieder, d.h. ich kann den String immer nur 1x in die Liste einfügen. Wie funktioniert es, dass es auch 2 Mal und öfter geht?
MfG Giovanni04
Hier der Quelltext:
|
andrer BIN/SH fehler :(
05/24/2010 - Metin2 Private Server - 4 Replies
Hey Com
Also ich oke was heißt hier ich mein kumpel hat ein fehler niemlich den normalen bin/sh drückt enter und statt # kommt
hier pic http://s3.directupload.net/file/d/2169/nrn56lit_pn g.htm
Kann mir/ihn jemand helfen?
THX Im Vorraus
|
hotkeyset als input auslesen?
05/13/2010 - AutoIt - 7 Replies
hallo,
wie ist es möglich, dass wenn man ein hotkeyset belegt, die taste via input ausgelesen wird?
mit guictrlread($input1) funz es i-wie nicht.
danke im vorraus!
achja, wenn ihr zeit habt, schaut doch mal hier:
|
[help] c# listbox databinding not updating
07/29/2009 - CO2 Programming - 3 Replies
Hi guys,
I'm new to c#... my first time, and hopefully not he last. :D
Just having trouble with listbox data-binding atm. For reasons I don't know, when changes are made to the data which the listbox is bounded to, the changes are not reflected inside the listbox.
The following is some of the code i'm using.
Firstly the intialisation and the bounding of the data to the listbox.
|
m'excusent puis monter des programmes of conquer e
04/26/2007 - Conquer Online 2 - 11 Replies
m'excusent puis monter des programmes of conquer en spanish
|
All times are GMT +1. The time now is 19:23.
|
|