Jump to content

Recommended Posts

Posted (edited)

Hello everyone

Just need some help with proper terminology etc.. Sorry in advance i would search the help file but not sure what i am looking for, have looked at GUICtrlSetData, GUICtrlCreateList . have also typed in g@@gle "autoit dynamic+listbox+content+update" etc..

I would like to know if you can dynamically update the List box in a gui via a external file which is on a server.

Also with some nice formating

So in the list box it would display multiple content items 10+ :

Name: File1

Description: tutorial#1

Duration: mins:sec

Label icon: "$OLK03_ico

location of file:

Name: File1

Description: tutorial#2

Duration: mins:sec

Label icon: "$Wo3_ico

location of file

If unable to, then maybe have a area of the gui display a HTML/php file so it looks like a small website in which i can update the content from a file?

Not sure who knows what Steam is? but I'm looking at developing something similar to that content system but not as hardcore >_<

my basic gui script:

#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


;icons packs & Gui bkground for faster draw
FileInstall("guibkgrnd.bmp", @TempDir & "\guibkgrnd.bmp", 1)

;Location of proposed file which will control what is displayed in the gui (permission set to domain admin);icons which are displayed next to the listed files:
$maincontentfile = "\server\public_access\file.*.*" 

;tut icons
$OLK03 = @TempDir


$textbasedtuts = ShellExecute("http://local-intranet.domain/tuts.html")

;Main GUI
$Gui = GUICreate("Tutorial assistant", 604, 480, 192, 124)
$Filemu = GUICtrlCreateMenu("File")
$Exitmu = GUICtrlCreateMenuItem("Exit", $Filemu)
$Helpmu = GUICtrlCreateMenu("Help")
$Helpdeskmu = GUICtrlCreateMenuItem("Email HelpDesk", $Helpmu)
$Helpmu = GUICtrlCreateMenuItem("Help", $Helpmu)
$Aboutmu = GUICtrlCreateMenu("About")
$otherappsmu = GUICtrlCreateMenu("Other Software")
$List1 = GUICtrlCreateList("", 24, 40, 449, 383)
$Label1 = GUICtrlCreateLabel("Available Tutorials", 40, 16, 172, 20)
GUICtrlSetFont(-1, 14, 800, 0, "Franklin Gothic Medium")
GUICtrlSetBkColor(-1, 0x0066CC)
GUISetState(@SW_SHOW)




While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            MsgBox(0, 'Thankyou', 'Thankyou for using ' & @LF & '' & @LF & 'Our tutorial assistant' & @LF & '' & @LF & 'We hope you have learned something to assist you')
            Exit


            Case $Helpdeskmu
    ShellExecute('Mailto:helpdesk@')

Case $Exitmu
    MsgBox(0, 'Thankyou', 'Thankyou for using ' & @LF & '' & @LF & 'Our tutorial assistant' & @LF & '' & @LF & 'We hope you have learned something to assist you')
            Exit

    EndSwitch
WEnd

Thankyou

Edited by failedtocompile
Posted (edited)

You will have to reprint the whole thing.

What does that mean? lol

I am still a novice in Autoit so if "reprint" is some terminology to explain a function then could you possibly explain the function in length.

Or either you did not understand my request, which from your reply statement i would assume >_<

Just a re cap :(

I would like to make a small content delivery system using Autoit. creating a small desktop application and displayed in the gui a list of files which are media files. but that list needs to be managed from a master file on a server as the files will also be hosted on a server share for staff to access via the application.

Is it possible to have a listview to be updated via a file remotely so when i update the file it updates the content listed in the GUI.

I would also like to be able to control the font of the listed content.

Edited by failedtocompile

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...