i am new to autoit and i don't know any programming
i am trying to auto complete a app named irfanview, everything was fine but i can't control click one button others work fine.
the button i cant click is called "start Batch"
Autoit Window info
>>>> Window <<<<
Title: Batch conversion
Class: #32770
Position: 32, 98
Size: 886, 728
Style: 0x96CC00C4
ExStyle: 0x00010101
Handle: 0x0000000000030666
>>>> Control <<<<
Class: Button
Instance: 5
ClassnameNN: Button5
Name:
Advanced (Class): [CLASS:Button; INSTANCE:5]
ID: 1
Text: &Start Batch
Position: 18, 556
Size: 116, 28
ControlClick Coords: 75, 18
Style: 0x50010000
ExStyle: 0x00000004
Handle: 0x00000000000606D4
>>>> Mouse <<<<
Position: 133, 703
Cursor ID: 0
Color: 0xE1E1E1
And My code
; Terminate script if no command-line arguments
If $CmdLine[0] = 0 Then Exit (1)
Global $imageName
imageName = $cmdline[1]
;run iview
Run(@ScriptDir & '\iview\i_view64.exe')
AutoItSetOption('MouseCoordMode', 0)
WinWait('IrfanView')
WinActivate('IrfanView')
; open Batch conversion
Send('b')
WinWait('Batch conversion')
WinActivate('Batch conversion')
; input Image name
ControlClick('Batch conversion', '', 1001)
Sleep(300)
Send($imageName & '_##', 1)
Sleep(300)
; Add All
ControlClick('Batch conversion', 'A&dd all', 1906)
Sleep(300)
;this button-----------------------------------------<<<<<<<<<<
; start Batch
ControlClick('Button', '&Start Batch', 1)
; Wait for Batch
Sleep(3000)
WinWait('Batch conversion done')
WinActivate('Batch conversion done')
; close Batch
ControlClick('Batch conversion done', 'Exit batch', 2)
; close IrfanView
WinWait('IrfanView')
WinActivate('IrfanView')
Send('{ESC}')
Thanks.