Jump to content

ListView & .ini File


photo
 Share

Recommended Posts

Hi guys ^^

i'm working at some project:

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 332, 233, 265, 146)
$var0 = IniRead("C:\Temp\myfile.ini", "section1", "key", "NotFound")
$var1 = IniRead("C:\Temp\myfile.ini", "section2", "key", "NotFound")
$var2 = IniRead("C:\Temp\myfile.ini", "section3", "key", "NotFound")
$var3 = IniRead("C:\Temp\myfile.ini", "section4", "key", "NotFound")
$var4 = IniRead("C:\Temp\myfile.ini", "section5", "key", "NotFound")
$var5 = IniRead("C:\Temp\myfile.ini", "section6", "key", "NotFound")
$ListView1 = GUICtrlCreateListView("Name|Date|Download", 40, 40, 250, 150)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 60)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 60)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 110)
_GUICtrlListView_JustifyColumn(GUICtrlGetHandle($ListView1), 1, 2)
_GUICtrlListView_JustifyColumn(GUICtrlGetHandle($ListView1), 2, 2)
$ListView1_0 = GUICtrlCreateListViewItem($var0, $ListView1)
$ListView1_1 = GUICtrlCreateListViewItem($var1, $ListView1)
$ListView1_2 = GUICtrlCreateListViewItem($var2, $ListView1)
$ListView1_3 = GUICtrlCreateListViewItem($var3, $ListView1)
$ListView1_4 = GUICtrlCreateListViewItem($var4, $ListView1)
$ListView1_5 = GUICtrlCreateListViewItem($var5, $ListView1)
$ListView1_6 = GUICtrlCreateListViewItem($var5, $ListView1)
$ListView1_6 = GUICtrlCreateListViewItem($var5, $ListView1)
$Button1 = GUICtrlCreateButton("Get Updates", 40, 200, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

look at the code ..

and this image by koda:

Posted Image

All red selected by .ini file ^^

when the user click [Get Updates].. i want my script connect the listView with .ini File .. << .ini file hin some website

and this .ini file in my website: http://loai.w-enter.com/myfile.ini

if you look at my script ... you will see [link.rar] .. can i put some link in this ?? if user clicked it ,the link start download ^^ all this in .ini file

: ( help me

[center][/center]

Link to comment
Share on other sites

 If your question about creating link?

Read here  http://www.autoitscript.com/forum/index.php?showtopic=92616

It will open a browser then depends on the browser if it will download or view the file.

But if you want to download the file in background, I suggest use 

InetGet("http://www.mozilla.org", "C:\foo.html")

Hope this give you idea.

Edited by nfaustin
[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]
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...