Jump to content

Recommended Posts

Posted

Hey there. 

 

I've been having this problem for a day now while trying to automate a software .

Basically a window pops up with a lengthy name consists of [Document Type] , [Vehicle name] , [Start Date] , [End Date]

The only way I can ControlClick a button on this popup window if I write the full name into ControlClick which looks something like this :

ControlClick ("Foaie de parcurs a AR-01079 pt perioada: 01.12.2018 00:00-01.12.2018 23:59" , "" , "WindowsForms10.BUTTON.app.0.33c0d9d")

I've tried many ways but it didn't work .

 

I found a way tough to get the full name of the title with the Function WinGetTitle , which looks something like this.

 

Opt('WinTitleMatchMode', 2)
Global $Win = 'Foaie de parcurs', $GetTitle
While 1
    $GetTitle = WinGetTitle($Win)
    If WinExists($Win) Then MsgBox(64, 'Info', 'The full Title is: ' & @CR & $GetTitle)
    Sleep(10)
WEnd

 

My question is how can I insert the GetTitle full name into the Title Name of the following code.

ControlClick ("I want to it to automatically write itself here after GetTitle" , "" , "WindowsForms10.BUTTON.app.0.33c0d9d")

 

Thanks alot guys , this would hugely help me .

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...