mircea Posted April 18, 2007 Share Posted April 18, 2007 well i want to say in all my life i never see a more simple programing language i like it very much is like C++ only 1 milion times simple then the C++ so i got some questions that i really need help i want to make a script/program that open a .txt file and take from there names for an example runwait(notepad.exe d:\mircea-poem.txt) and i want to take txt from there so some idea and advices ??? now i read the tutorials and things from the AUTOIT help file and some scripts from there are not working ( maybe because this is a new version and some commands have bin added or remove it ) so can you give me some idea here ??? with taking some text from the .txt file and use it at something else and the text is something like this (i will give an example hello my name is mircea hello my name is mihai hello my name is none so i want to take here only the first part ( hello my name is mircea) and after that to go to the other one thank you very much if you can help me Link to comment Share on other sites More sharing options...
Uten Posted April 18, 2007 Share Posted April 18, 2007 (edited) Check out FileReadLine or FileRead and StringInStr.You could also have a go at StringRegExp but it is probably a bit down the road for you..EDIT: Forgot to welcome you to the forum.. Edited April 18, 2007 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
jokke Posted April 18, 2007 Share Posted April 18, 2007 (edited) Hi there, i could write you an example on how to do it but im on a computer at work where i dont have scite. Look into these things within the help file 'Fileopen' then 'FileWrite / FileRead' or '_FileReadToArray / _FileWriteFromArray' And StringRegExp / stringsplit. Uten beat me to it, where on a somesota brak and forgot to post the answer ^^ Edited April 18, 2007 by jokke UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
mircea Posted April 18, 2007 Author Share Posted April 18, 2007 (edited) well if you add me some example i will be happy because then i can see how is putted and how is working and look at this what is wrong ?? why the command if and else dosent work too good or what $var = 5 $var2 = 10 if $var>$var2 Msgbox("first", "var > var 2") else MsgBox("second", " var2 > var1") what could be the problem ~X( ? Edited April 18, 2007 by mircea Link to comment Share on other sites More sharing options...
mircea Posted April 18, 2007 Author Share Posted April 18, 2007 and i almost forget i am allowed to type or to show me some source code of some brute force or can i show something of my tiny little things that i made ?? 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