Sparrowlord Posted February 25, 2006 Share Posted February 25, 2006 Hi, I need some ideas for scripts to make, to test my skills. Thanks, Lord Link to comment Share on other sites More sharing options...
cppman Posted February 25, 2006 Share Posted February 25, 2006 Make a small mario bros game.. just 1 level. lol, jk. that wouldbe to hard. How hard do u want it? 1) - You could make a Notepad Clone 2) - You can make an Internet Explorer clone 3) - Make scanner to scan for junk files, ".tmp, 0 byte files, Temporary internet files, internet history, run history, and so on" Miva OS Project Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 A script that reads in another script and creates a new script with debug/log lines in it example script to read #include <Constants.au3> _Main() Func _Main() Local $var $var = 1 MsgBox(0,"test",$var) EndFunc with debug/log #include <Constants.au3> #include <file.au3> Global Const $DebugIt = 1 _Main() Func _Main() Local $var If $DebugIt Then _FileWriteLog(@ScriptDir & "\debug.log","Local $var") $var = 1 If $DebugIt Then _FileWriteLog(@ScriptDir & "\debug.log","$var = 1") MsgBox(0,"test",$var) If $DebugIt Then _FileWriteLog(@ScriptDir & "\debug.log","MsgBox(0,"test",$var)") EndFunc it would have parse the file and ignore adding debug lines for #includes and Func EndFunc, etc... just an idea. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 Just an idea, nice. That would actually be really handy (for several people...) if you decided to make that. Link to comment Share on other sites More sharing options...
Sparrowlord Posted February 25, 2006 Author Share Posted February 25, 2006 Gawd, all that stuff is still to hard. I dont any GUI 's and I have no clue about that debug. Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 (edited) This was quick and dirty, probably need some checking added in for single quotes and maybe a few other things. Gary Edit: forgot to put the and in the if statement that if #include is in the string don't add debug line just changed it to If Not StringInStr($a_file[$x],"#include") And StringLen(StringStripWS($a_file[$x],8)) Then and fixed Region and added #include statement logging Edited February 25, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 (edited) I did something really simple as well... EDIT - but I deleted it, because it was too simplistic, and gafrost dominated my script. Edited February 25, 2006 by greenmachine Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 not only that you would have to parse the select and switch statements, the quick test i did had select in it and of course it errors if i try to run the script with the debug lines in it. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 Yeah.. I made it in about 2 minutes while I really had to go to the bathroom.. I didn't think about it much.. I'll just go ahead and remove it since yours is most definitely better. Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 (edited) This one works a little better, will still need some work tho. Gary Added if $CMDLINE[0] > 0 then run remove debug lines Get a chance one day maybe make a gui for it, and figure out some more parsing. Have fun. Edited February 25, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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