Jump to content

Recommended Posts

Posted

Run("downloader.exe")
sleep(1000)
#Include <WinAPIEx.au3>
$sProg = "downloader.exe"
$sTitle = _WinGetForProc ($sProg)
Func _WinGetForProc ($sProcName)
$alist = ProcessList($sProcName)
For $i = 1 to $alist[0][0]
  $iProcPid = $alist[$i][1]
Next
$aData = _WinAPI_EnumProcessWindows($iProcPid, 1)
$iWin = $aData [1][0]
$sTitle = WinGetTitle( $iWin )
Return $sTitle
EndFunc
For $j = 1 to 10
    sleep(500)
    $fVisible = ControlCommand ( $sTitle, "Accept", controlID, "IsVisible" )
    if $fVisible="IsVisible" Then
        ControlClick($hWin, '', '[CLASS:Button; INSTANCE:1]')
    EndIf
Next
Exit

Error: Subscript used in non-accessible variable

Pls help me:)

Posted

The error message also reports the line number. Just click on the error message to take you to it as well.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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...