photo Posted September 5, 2009 Posted September 5, 2009 Hi guys ^^i'm working at some project:expandcollapse popup#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 WEndlook at the code ..and this image by koda: 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 websiteand this .ini file in my website: http://loai.w-enter.com/myfile.iniif 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]
nfaustin Posted September 5, 2009 Posted September 5, 2009 Try to read this about hyperlink:http://www.autoitscript.com/forum/index.php?showtopic=23111&hl=GuiHyperLink&st=0 [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]
photo Posted September 5, 2009 Author Posted September 5, 2009 ok how can i connect the .ini file ? [center][/center]
nfaustin Posted September 5, 2009 Posted September 5, 2009 (edited) If your question about creating link?Read here http://www.autoitscript.com/forum/index.php?showtopic=92616It 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 September 5, 2009 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]
photo Posted September 5, 2009 Author Posted September 5, 2009 nfaustin woow thank you so much [center][/center]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now