Subversion Repositories gelsvn

Rev

Rev 236 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
226 bj 1
; ----------------------------------------------------------------------------
2
;
3
; AutoIt Version: 3.1.0
4
; Author:         A.N.Other <myemail@nowhere.com>
5
;
6
; Script Function:
7
;	Template AutoIt script.
8
;
9
; ----------------------------------------------------------------------------
10
 
231 bj 11
 
228 bj 12
#include <GELfunc.au3>
13
#include <GUIConstants.au3
231 bj 14
 
15
 
16
 
228 bj 17
; == GUI generated with Koda ==);
233 bj 18
#include <GUIConstants.au3
19
; == GUI generated with Koda ==);
236 bj 20
$GELinstall_src = GUICreate("GEL Installer", 474, 281, 389, 119)
233 bj 21
$DoitButton = GUICtrlCreateButton("Do It!", 16, 192, 192, 41, 0)
236 bj 22
$Group3 = GUICtrlCreateGroup("Install Path (where GEL and 3rd party libs are copied to)", 16, 32, 432, 89)
233 bj 23
$pathInput = GUICtrlCreateInput("c:\GEL", 32, 64, 345, 24)
24
$browseButton = GUICtrlCreateButton("...", 400, 64, 27, 25, 0)
228 bj 25
GUICtrlCreateGroup("", -99, -99, 1, 1)
233 bj 26
GUICtrlCreateLabel("Environment variable scope", 16, 144, 187, 20, $SS_CENTERIMAGE)
27
$scopeCombo = GUICtrlCreateCombo("", 240, 144, 208, 24)
228 bj 28
GUICtrlSetData(-1, "Current User|System", "Current User")
233 bj 29
$cancelButton = GUICtrlCreateButton("Cancel", 240, 192, 208, 41, 0)
237 bj 30
 
31
useExisting($pathInput , GUICtrlRead( $scopeCombo ))
32
 
228 bj 33
GUISetState(@SW_SHOW)
233 bj 34
 
35
 
228 bj 36
While 1
37
	$msg = GuiGetMsg()
38
	Select
39
	Case $msg = $GUI_EVENT_CLOSE
40
		ExitLoop
233 bj 41
	Case $msg = $DoitButton 
236 bj 42
             installLibs(GUICtrlRead( $pathInput ), GUICtrlRead( $scopeCombo ))
231 bj 43
 
233 bj 44
	Case $msg = $browseButton 
45
             updatePath( $pathInput )
46
        Case $msg = $cancelButton 
231 bj 47
             ExitLoop
48
 
228 bj 49
	EndSelect
50
WEnd
226 bj 51
 
227 bj 52
 
53