DirtDBaK Posted February 5, 2008 Share Posted February 5, 2008 i recommend not to hardcode everything in a program itself. yeah I agree Swift Why dont you make an ini file something like this [prgms] 1=pass secure 2=amp 3 3=... [links] 1=htpp://download.com/passsecure.exe 2=htpp://dbak.mine.nu/amp3/amp_3_install.exe That way changes are easy to make... [center][/center] Link to comment Share on other sites More sharing options...
Swift Posted February 5, 2008 Author Share Posted February 5, 2008 Alright, I'll Try That. Writing To An .ini For It. Might Take Me A While, I'm Gunna Read Back Over The IniWrite() and Iniread(). Great! Thanks For The Suggestions Guys! Link to comment Share on other sites More sharing options...
Swift Posted February 5, 2008 Author Share Posted February 5, 2008 Okay, Well I need a little help, if the inifile part is blank...then dont create it...also if it says #=(blank) dont create that button..? how would I go about doing that? Link to comment Share on other sites More sharing options...
Achilles Posted February 5, 2008 Share Posted February 5, 2008 $temp = IniRead('dictionary.ini', 'words', 'apple', '-1') If $temp <> '-1' then GuictrlCreateButton(...) EndIfThat will work if the definition for apple isn't next to the word apple. I'm not sure if that's what you mean by "the inifile part"... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Swift Posted February 5, 2008 Author Share Posted February 5, 2008 thats not what im looking for no....If there isnt one...like if it says: 5= then DO NOTHING!! also if theres not one...like say: iniread("", "", "1") iniread("", "", "2") and the ini looks like 1=nnaja (no 2) and it wil do nothing. Link to comment Share on other sites More sharing options...
nobbe Posted February 6, 2008 Share Posted February 6, 2008 hi i wouldnt create each individual "buttons " for the programs .. try a listview instead , fill it up with 1...x to be installed programs. user clicks on desired program in lstview and presses button "get this" -> read LV settings , then install this - done.. nobbe Link to comment Share on other sites More sharing options...
mikiutama Posted February 6, 2008 Share Posted February 6, 2008 tested the program... here's my comments: 1. my cpu usage just goes from 11% to 100% while downloading... put sleep(10) is adequate to reduce the cpu usage.. 2. should make cancel or abort button while downloading, in case we need to stop it. right now i have to use taskmanager to kill it. 3. download window is sticky. should make it moveable or minimizeable... blocking view to desktop.. 4. no infotip on Inno Installer..( just to let u know..) Link to comment Share on other sites More sharing options...
nf67 Posted February 6, 2008 Share Posted February 6, 2008 (edited) My personal favorites:Winrar :: archive handlerScribus :: Open desktop publishing programWinpatrol :: best anti-crap program ever, detects everything ( homepage change, connections, startups, removals, installs ) and asks for permissionSkype :: make callsAVG anti virus :: anti-virusDirectX 9.0c / 10 :: driverDraftIT :: Free CAD that seriously rocksCCCP comunity codec pack :"codecsVLC player :: good mediaplayerLaunchy :: programlauncher, bring an input forward with alt+space and typeAutoIt ( it has suggestions on Au- already ) press enter and there you goOpenoffice:: word, powerpoint etc......free and os Firefox :: browserThunderbird :: mailDamnNFOviewer:: .nfo extension files viewerBrava reader :: .pdf viewerCDRtools frontend :: cd burner etc..netFramework :: program requirement?You might want to use some of them P.S: Finally someone who uses unlocker, it owns Edited February 6, 2008 by nf67 Link to comment Share on other sites More sharing options...
DirtDBaK Posted February 7, 2008 Share Posted February 7, 2008 did you solve the ini read problem? its very simple [center][/center] Link to comment Share on other sites More sharing options...
Swift Posted February 7, 2008 Author Share Posted February 7, 2008 No...I really dont know how to do that...make buttons in an ini... so im gunna give up Link to comment Share on other sites More sharing options...
DirtDBaK Posted February 7, 2008 Share Posted February 7, 2008 Sorry swift it this helps an ini works like this [section] key=value If you perform a read and its on 'Blah' lets say in the file it the line says 'Blah=' so .... iniread(@scriptdir&"\file.ini", "section name", "blah", "err" ) ...and its doesn't have a value the function will return 'err' because that is what i set it to do as default return [center][/center] Link to comment Share on other sites More sharing options...
Swift Posted February 7, 2008 Author Share Posted February 7, 2008 I Know That....Its Just That Its Alot To Add...Alot Of IniWrite And IniRead...Over And Over...I Really Don't Want To Do It...It's Too Hard....So... Link to comment Share on other sites More sharing options...
DirtDBaK Posted February 7, 2008 Share Posted February 7, 2008 It's Too Hard....Then I'm glad you didn't try to help write amp 3Have you ever looked at where it loads the skin, or all the library functions??? [center][/center] Link to comment Share on other sites More sharing options...
Swift Posted February 7, 2008 Author Share Posted February 7, 2008 Nope! But Ive Seen Amp3 Source...Its Huge...I Don't Get Half Of It! Link to comment Share on other sites More sharing options...
BananaFredSoft Posted February 7, 2008 Share Posted February 7, 2008 Wait... how is this related to the Best Script of 2007 contest? Where's my MediaPlayer? -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
JustinReno Posted February 7, 2008 Share Posted February 7, 2008 He hasn't added most of the things yet. Swift, I'm making something to download programs also (Specifically in my signature), and I'm using an INI, I'll release the code when I'm done, and you could add off, or take parts from it. Link to comment Share on other sites More sharing options...
nobbe Posted February 7, 2008 Share Posted February 7, 2008 I Know That....Its Just That Its Alot To Add...Alot Of IniWrite And IniRead...Over And Over...I Really Don't Want To Do It...It's Too Hard....So...hi you could also read a plain text file which stores information separated by "|" for exampleprogram name|http://...|version|etc...maybe this is easier to program read line by line from file , then use "StringSplit" to get all values..nobbe Link to comment Share on other sites More sharing options...
DirtDBaK Posted February 7, 2008 Share Posted February 7, 2008 If he doesn't understand ini read he wont have the ablitiy to do that [center][/center] Link to comment Share on other sites More sharing options...
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