Jump to content

Gui + checkbox + script


Recommended Posts

Hi All

I've made some scripts for the installing of app's at work but would like to put all of it in one Gui

sample of my installer

CODE

Run("\\10.168.3.4\software\SofTalk\SoftTalk_New\4.2.0.183c_new\setup.exe")

WinWaitActive("SofTalk for Xpresso Contact Center v3.04 SP1","&Welcome to SofTalk setup process:",5)

Send("{ENTER}")

WinWaitActive("SofTalk for Xpresso Contact Center v3.04 SP1","&Choose Destination Location",5)

Send("{ENTER}")

WinWaitActive("SofTalk for Xpresso Contact Center v3.04 SP1","&SofTalk GUI Applocation for Xpresso Contack Center",5)

Send("{SPACE}")

WinWaitActive("SofTalk for Xpresso Contact Center v3.04 SP1","&SofTalk GUI Applocation for Xpresso Contack Center",5)

Send("{DOWN}")

Send("{SPACE}")

Send("{ENTER}")

WinWaitActive("Setup","&Dialog Template",5)

Send("0000")

Send("{TAB}")

Send("0000")

Send("{TAB}")

; Setup for Server 11 ;

Send("10.168.3.11")

Send("{ENTER}")

WinWaitActive("SofTalk for Xpresso Contact Center v3.04 SP1","&InstallShield Wizard Complete",5)

Send("{ENTER}")

I also need to make the pc(no Administrator) a temp Administrator to access some of the files on a server..as Administrator how do i do this?

this is my Gui

CODE

#include <ButtonConstants.au3>

#include <GUIConstantsEx.au3>

#include <ProgressConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 639, 463, 311, 253)

$Label1 = GUICtrlCreateLabel("AUTO INSTALLER", 128, 8, 382, 56)

GUICtrlSetFont(-1, 28, 800, 0, "Arial Black")

$Label2 = GUICtrlCreateLabel("Select all aplications for the pc", 240, 64, 148, 17)

$Checkbox1 = GUICtrlCreateCheckbox("SoftTalk 11", 88, 144, 121, 25)

$Checkbox2 = GUICtrlCreateCheckbox("SoftTalk 45", 88, 168, 121, 25)

$Checkbox3 = GUICtrlCreateCheckbox("Open Office", 88, 192, 121, 25)

$Checkbox4 = GUICtrlCreateCheckbox("Ms Office 2003", 88, 216, 121, 25)

$Checkbox5 = GUICtrlCreateCheckbox("C3 SABC", 420, 136, 129, 25)

$Checkbox6 = GUICtrlCreateCheckbox("C3 EDCON", 420, 160, 129, 25)

$Checkbox7 = GUICtrlCreateCheckbox("C3 VVM", 420, 184, 129, 25)

$Button1 = GUICtrlCreateButton("INSTALL", 384, 352, 121, 57, $WS_GROUP)

$Progress1 = GUICtrlCreateProgress(40, 432, 569, 25)

$Button2 = GUICtrlCreateButton("EXIT", 77, 357, 121, 57, $WS_GROUP)

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

how do i tell the Checkbox1 if ticked to run my 1st script?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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