PramodR Posted July 24, 2018 Posted July 24, 2018 Hello, i am new to AUTO IT development , I would like one help to read value from a POP up. i am able to read below values using inspect tool , information given below, I tried to create a script to read value but that does not help. any help is appreciated. Available Controls POPUP window Controls Auto Id = "UpdateNow_Btn" Name = Update Now Invoke - Button Control Below Controls i get when i move inspector tool to the text which i need to read. i need to read the text Name . Currently with my code i get only blank text Auto Id = timeOutLb ClassName = TextBlock LegacyIAccess = GetNameName = Read Value for Name My code. Quote #include <ScreenCapture.au3> #include<_XMLDomWrapper.au3> #include <Array.au3> #include <Inet.au3> #include <GUIConstantsEx.au3> #include <GUIConstantsEx.au3> #include <GuiButton.au3> #include <WindowsConstants.au3> #include <GUISlider.au3> #include <GuiConstants.au3> #include <GuiTab.au3> $name=@ComputerName $result="Pass" $String="" $WinTitle=WinGetTitle("[Class:TextBlock]") winwait($WinTitle,"",5) WinWaitActive($WinTitle) Sleep(1000) $timezone=ControlGetText("timeOutLb","","Name") $clockname=ControlGetText("TextBlock","","ClassName") $val="timezone="&$timezone&"~"&"clockname="&$clockname&"~"&"checked=" Sleep(3000) writeResult("Default","Clock1",$name&"~"&$result&"~"&$val) ConsoleWrite($val)
Moderators JLogan3o13 Posted July 24, 2018 Moderators Posted July 24, 2018 Moved to the appropriate forum. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
PramodR Posted July 25, 2018 Author Posted July 25, 2018 any sample script to read value from windows will help...
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