Hello guys, first i want to say i'm new in autoit scripting and sorry if my problem may be rude
I want to automaticaly click a button on a window when the window appears.
The window info is pasted below:
>>>> Window <<<<
Title: Total Commander
Class: TExtMsgForm
Position: 681, 428
Size: 444, 123
Style: 0x96C80000
ExStyle: 0x00000101
Handle: 0x001101AA
>>>> Control <<<<
Class: TButton
Instance: 3
ClassnameNN: TButton3
Name:
Advanced (Class): [CLASS:TButton; INSTANCE:3]
ID: 1114728
Text: &Skip
Position: 10, 67
Size: 136, 23
ControlClick Coords: 82, 13
Style: 0x54010000
ExStyle: 0x00000000
Handle: 0x00110268
>>>> Mouse <<<<
Position: 776, 533
Cursor ID: 0
Color: 0xDADADA
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
&Abort
R&etry
&Skip
>>>> Hidden Text <<<<
This is what i wrote in the .au3 file:
WinWaitActive("[CLASS:TExtMsgForm]")
ControlClick("[CLASS:TExtMsgForm]" , "" , "[CLASS:TButton ; INSTANCE:3]")
It seems that the window is detected because the script closes after window appears but no button is pressed
Also i want to run the script until i will press a key combination such alt+ctrl+x an not to close himself after detecting the window.
I must say that i run the script by double clicking the .au3 file and not by compiling the .au3 to exe and than running the exe , i don't know if this could be a problem.
Thanks in advance
I want to automaticaly click a button on a window when the window appears.
The window info is pasted below:
>>>> Window <<<<
Title: Total Commander
Class: TExtMsgForm
Position: 681, 428
Size: 444, 123
Style: 0x96C80000
ExStyle: 0x00000101
Handle: 0x001101AA
>>>> Control <<<<
Class: TButton
Instance: 3
ClassnameNN: TButton3
Name:
Advanced (Class): [CLASS:TButton; INSTANCE:3]
ID: 1114728
Text: &Skip
Position: 10, 67
Size: 136, 23
ControlClick Coords: 82, 13
Style: 0x54010000
ExStyle: 0x00000000
Handle: 0x00110268
>>>> Mouse <<<<
Position: 776, 533
Cursor ID: 0
Color: 0xDADADA
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
&Abort
R&etry
&Skip
>>>> Hidden Text <<<<
This is what i wrote in the .au3 file:
WinWaitActive("[CLASS:TExtMsgForm]")
ControlClick("[CLASS:TExtMsgForm]" , "" , "[CLASS:TButton ; INSTANCE:3]")
It seems that the window is detected because the script closes after window appears but no button is pressed
Also i want to run the script until i will press a key combination such alt+ctrl+x an not to close himself after detecting the window.
I must say that i run the script by double clicking the .au3 file and not by compiling the .au3 to exe and than running the exe , i don't know if this could be a problem.
Thanks in advance