narayan Posted May 22, 2017 Share Posted May 22, 2017 Hi Team, I am unable to retrieve the text information present in my control section Kindly help,I used #include <MsgBoxConstants.au3> Run("VIPUIManager.exe") Local $iPID=WinWait("VIP Access","",3) WinActivate($iPID,"") ControlClick($iPID,"","[CLASS:Static; INSTANCE:6]") ControlFocus($iPID,"","[CLASS:Static; INSTANCE:6]") ControlGetHandle($iPID,"","[CLASS:Static; INSTANCE:6]") ControlClick($iPID,"","[CLASS:Static; INSTANCE:6]") Local $textval=ControlGetText($iPID,"","[CLASS:Static; INSTANCE:6]") MsgBox($MB_OK,"title",$textval) WinClose($iPID) Its giving blank for msgbox Thanks Link to comment Share on other sites More sharing options...
232showtime Posted May 22, 2017 Share Posted May 22, 2017 what app/website are you trying to automate? narayan 1 ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Danyfirex Posted May 22, 2017 Share Posted May 22, 2017 ControlGetText is your friend. Saludos Skysnake 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
narayan Posted May 23, 2017 Author Share Posted May 23, 2017 Hi Its web application where after providing user details it asks for the security code and the security code can be retrieved from this symantec vip APP only. Kindly help Thanks Link to comment Share on other sites More sharing options...
Floops Posted May 23, 2017 Share Posted May 23, 2017 (edited) @Danyfirex Correct me if I'm wrong but didn't he already try ControlGetText in his first post? @narayan I don't see why ControlGetText wouldn't work, since the AutoIt Window Info Tool is able to get the text. If you can't get the text that way maybe an OCR solution would work? Not the best way to handle this of course but it might be worth a try. Edited May 23, 2017 by Floops Link to comment Share on other sites More sharing options...
232showtime Posted May 23, 2017 Share Posted May 23, 2017 (edited) Try this: Run("VIPUIManager.exe") if WinExists("VIP Access") then $sID = ControlGetText("VIP Access", "", "[CLASS:Static; INSTANCE:6]") endif ConsoleWrite($sID & @CRLF) or Run("VIPUIManager.exe") $WW = WinWait("VIP Access") $hWnd = WinGetHandle($WW) $sID = ControlGetText($hWnd, "", "[CLASS:Static; INSTANCE:6]") ConsoleWrite($sID & @CRLF) or #include <MsgBoxConstants.au3> Run("VIPUIManager.exe") $WW = WinWait("VIP Access") $hWnd = ControlGetHandle($WW, "", "[CLASS:Static; INSTANCE:6]") $focus = ControlGetFocus("VIP Access") $Text = ControlGetText($focus,"",$hWnd) MsgBox($MB_OK,"Text", $Text) Havent tried it.... Edited May 23, 2017 by 232showtime can you show the summary tab of autoit window info tool ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Danyfirex Posted May 23, 2017 Share Posted May 23, 2017 Hello. This should work. ControlGetText("VIP Access", "", "Static6") Saludos 232showtime 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
narayan Posted May 24, 2017 Author Share Posted May 24, 2017 @Floops can you please elaborate more on OCR solution pls. Link to comment Share on other sites More sharing options...
Danp2 Posted May 24, 2017 Share Posted May 24, 2017 Have you read the Forum Rules? Seems like this would run afoul of the 2nd bullet point under item 1. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
232showtime Posted May 24, 2017 Share Posted May 24, 2017 can you show the tab for visible text in autoit window info tool??? ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
narayan Posted May 24, 2017 Author Share Posted May 24, 2017 @232showtime hi i tried all your suggestions and dint work.BTW i already used controlGetText Link to comment Share on other sites More sharing options...
narayan Posted May 24, 2017 Author Share Posted May 24, 2017 @232showtime hi PFA the screehsot for more details Under Visible Text i see, VIP Access Settings Minimize Close Credential ID VSST94629495 Copy Credential ID Security Code 833670 Copy Security code Link to comment Share on other sites More sharing options...
Danyfirex Posted May 24, 2017 Share Posted May 24, 2017 22 hours ago, Danyfirex said: Hello. This should work. ControlGetText("VIP Access", "", "Static6") Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Danyfirex Posted May 25, 2017 Share Posted May 25, 2017 MsgBox(0,"",ControlGetText(" VIP Access","","Static6")) Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
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