I've been browsing through the forums and tutorials the past week to get a simple program to install. I've looked at ControlClick, Send, ControlSend, and MouseClick to get the install to hit 'Next' on the install.
For example here is a script I tried.
Now...bare with me as I'm only getting into coding. I will continue researching this until I find something that works. So then I can get other programs that we have at our company to do the same.
Here is the information from AutoIT Window Info
Too me, from what I have read that code should 'click' the next button on my install, but I'm missing something and I just do not understand what it is.
For example here is a script I tried.
Run('\\installs1\Public\cView\cv11-rc.exe') WinWait("cView - InstallShield Wizard", "WARNING: This Program is protected by copyright law") ControlClick("cView - InstallShield Wizard", "WARNING: This Program is protected by copyright law", "[CLASS:Button; INSTANCE:1]", "left")
Now...bare with me as I'm only getting into coding. I will continue researching this until I find something that works. So then I can get other programs that we have at our company to do the same.
Here is the information from AutoIT Window Info
Quote
>>>> Window <<<<
Title: cView - InstallShield Wizard
Class: MsiDialogCloseClass
Position: 388, 301
Size: 504, 382
Style: 0x14C80000
ExStyle: 0x00040100
Handle: 0x00000000000108F8
>>>> Control <<<<
Class: Button
Instance: 1
ClassnameNN: Button1
Name:
Advanced (Class): [CLASS:Button; INSTANCE:1]
ID: 8543
Text: &Next >
Position: 306, 324
Size: 88, 22
ControlClick Coords: 40, 7
Style: 0x50032001
ExStyle: 0x00000000
Handle: 0x0000000000010904
>>>> Mouse <<<<
Position: 737, 657
Cursor ID: 2
Color: 0xE1F3FC
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
&Next >
Cancel
< &Back
WARNING: This program is protected by copyright law and international treaties.
The InstallShield® Wizard will install cView on your computer. To continue, click Next.
NewBinary5
Welcome to the InstallShield Wizard for cView
>>>> Hidden Text <<<<
Title: cView - InstallShield Wizard
Class: MsiDialogCloseClass
Position: 388, 301
Size: 504, 382
Style: 0x14C80000
ExStyle: 0x00040100
Handle: 0x00000000000108F8
>>>> Control <<<<
Class: Button
Instance: 1
ClassnameNN: Button1
Name:
Advanced (Class): [CLASS:Button; INSTANCE:1]
ID: 8543
Text: &Next >
Position: 306, 324
Size: 88, 22
ControlClick Coords: 40, 7
Style: 0x50032001
ExStyle: 0x00000000
Handle: 0x0000000000010904
>>>> Mouse <<<<
Position: 737, 657
Cursor ID: 2
Color: 0xE1F3FC
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
&Next >
Cancel
< &Back
WARNING: This program is protected by copyright law and international treaties.
The InstallShield® Wizard will install cView on your computer. To continue, click Next.
NewBinary5
Welcome to the InstallShield Wizard for cView
>>>> Hidden Text <<<<
Too me, from what I have read that code should 'click' the next button on my install, but I'm missing something and I just do not understand what it is.