Get Visible Text Script / Help / Hilfe

03/08/2015 14:31 45king45#1
Yoooo


well basically what I want to do is:

Copy the Visible text from a Window (in my Case, it is the MW3 Console window) and paste it in a txt File..


actually I have a solution which works barely but isn´t what I want... (It does make a right mouse click right into the window and select all and copy it + runs the .txt file and sends ctrl+a / ctrl + v / ctrl + s / alt+f4




I know there is a WinGetText or ControlGetText Function but im simply to stupid for it


Is there any way, to get the visible text directly from the window, without the mouseclicks? Because it´s buggy and doesnt works 100%.


Kann auch Deutsch
03/08/2015 14:36 alpines#2
Dein Threadtitel is fürn Arsch, hast wohl nicht den Sticky gelesen bevor du gepostet hast.

MW3 läuft über DirectX und das verwendet für Inputs keine Std-Controls, demnach kommst du mit solchen Funktionen nicht weit. Entweder liest du das aus dem Speicher oder anders.
03/08/2015 15:18 45king45#3
Hi und danke für die Antwort, Sorry für den Threadtitel, der ist jetzt geändert...

im AutoIT V3 Window Info tool unter dem Tab Visible Text steht genau das, was ich benötige... Gibt es keine Funktion die genau das herauskopiert?
03/08/2015 19:22 alpines#4
Du kannst es ja mal über
Code:
WinGetText()
probieren ob du das zurückbekommst was du möchtest. Musst du ggf. aber noch zurechtschneiden.
03/08/2015 19:29 YatoDev#5
fenster handle besorgen und dann mit den gui/window befehlen schauen was dir den text gibt
03/08/2015 19:32 45king45#6
Habs über ControlGetText / FileWrite / FileOpen etc hingekriegt... Vorher hatte ich es immer mit dem Title versucht ControlGetText("title"... was mir aber immer eine Leere ausgabe gegeben hat... Hier hab ich es dann mit dem Class Namen versucht und tada es klappte