Jump to content

Auto IT Read Value from windows Pop UP - (Moved)


Recommended Posts

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 = GetName
Name  = 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)


 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...