Aassdd Posted February 18, 2008 Share Posted February 18, 2008 (edited) Here is my source: $input = InputBox("", "website:") If $input = ("google") Then ShellExecute("http://www.google.com/") If $input = ("yahoo") Then ShellExecute("http://www.yahoo.com/") If $input = ("autoit") Then ShellExecute("http://www.autoitscript.com/") How can I have a text file like: google=www.google.com yahoo=www.yahoo.com autoit=www.autoitscript.com and search if a string exists in the text file and then ShellExecute the text/variable after "="? Edited February 18, 2008 by Aassdd Link to comment Share on other sites More sharing options...
Swift Posted February 18, 2008 Share Posted February 18, 2008 Why exactly do you need a txt file? I dont see a problem...? Elaborate More. Link to comment Share on other sites More sharing options...
Kerros Posted February 18, 2008 Share Posted February 18, 2008 an ini file is in that format Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
Aassdd Posted February 18, 2008 Author Share Posted February 18, 2008 (edited) Why exactly do you need a txt file? I dont see a problem...? Elaborate More.Because I want to sort websites/programs/files in different txt files (or ini, whatever) so they are not included in my source.EDIT: Plus, I can add shortcuts easy and without editing the script. Edited February 18, 2008 by Aassdd Link to comment Share on other sites More sharing options...
Aassdd Posted February 19, 2008 Author Share Posted February 19, 2008 Anyone? Link to comment Share on other sites More sharing options...
botanic Posted February 19, 2008 Share Posted February 19, 2008 read the ini help file commands I would say use the IniReadSectionNames command but thats just a personal preference Link to comment Share on other sites More sharing options...
LIMITER Posted February 19, 2008 Share Posted February 19, 2008 Take a look at (in the help-file): IniWriteSection IniReadSection or IniWrite IniRead 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