Jump to content

Recommended Posts

Posted

ok, i am trying to write a simple script to automate a few tasks that normally i use a batch file for. anyway, here is what i have so far:

#include <ButtonConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
#Include <Array.au3>
#Region ### START Koda GUI section ### Form=c:\users\zero\documents\img.kxf
Local $convertarray[1][4]
;~  $convertarray[1][1]=("hi","hi")
$Form1_1 = GUICreate("Form1", 658, 536, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Delete after success", 520, 16, 121, 17)
$add = GUICtrlCreateButton("Add", 520, 40, 75, 25, $WS_GROUP)
$remove = GUICtrlCreateButton("Remove", 520, 72, 75, 25, $WS_GROUP)
$clear = GUICtrlCreateButton("Clear All", 520, 104, 75, 25, $WS_GROUP)
$run = GUICtrlCreateButton("Run", 528, 392, 75, 25, $WS_GROUP)
$load = GUICtrlCreateButton("Load", 528, 454, 75, 25, $WS_GROUP)
$save = GUICtrlCreateButton("Save", 528, 486, 75, 25, $WS_GROUP)
$List1 = GUICtrlCreateList($convertarray, 8, 8, 505, 409)
$Radio1 = GUICtrlCreateRadio("DVD", 528, 144, 113, 17)
$Radio2 = GUICtrlCreateRadio("Blu Ray", 528, 184, 113, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateLabel("Label:",8,420)
$Label = GUICtrlCreateInput("", 8,440,409)
GUICtrlCreateLabel("Destination:",8,470)
$dest = GUICtrlCreateInput(FileSaveDialog("","","iso"),8,490,409)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $add
            GUICtrlSetData($List1, FileSelectFolder("Select ROOT folder.", "", 4))
        case $remove

        case $clear
            GUICtrlSetData($List1, "")
    EndSwitch
WEnd

right now its mostly just the gui. but i am able to add directories to the listview. but i have not been able to get it to identify which item is selected. any help is appreciated.

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
×
×
  • Create New...