YogeshDikshit Posted July 1, 2010 Posted July 1, 2010 Pls help me in using WinGetText() function. The desired window <<Control>> info using A3 Window info tool is as follows: <<Control>> Property Value Class classMyWinMdiChildFram Instance 1 ID 65281 Can we use any of these info... I use WinGetText("[active]") for the desired window being active. But actually it shows the text info for all opened windows in my application Thanks & BR, Yogesh
PsaltyDS Posted July 1, 2010 Posted July 1, 2010 "Window" in that context means top level windows (direct child of the desktop). Not sub-windows of your application's window. If your app is currently active then all visible text in that app window is the correct return value. Try this instead: $sText = ControlGetText("[ACTIVE]", "", "[CLASS:classMyWinMdiChildFram; INSTANCE:1]") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
YogeshDikshit Posted July 2, 2010 Author Posted July 2, 2010 On 7/1/2010 at 7:00 PM, 'PsaltyDS said: "Window" in that context means top level windows (direct child of the desktop). Not sub-windows of your application's window. If your app is currently active then all visible text in that app window is the correct return value. Try this instead: $sText = ControlGetText("[ACTIVE]", "", "[CLASS:classMyWinMdiChildFram; INSTANCE:1]") Thanks...It worked
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now