Sign in to follow this  
Followers 0
Sparrowlord

Ideas

10 posts in this topic

Hi, I need some ideas for scripts to make, to test my skills. :o

Thanks,

Lord

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Just an idea, nice. That would actually be really handy (for several people...) if you decided to make that.

Share this post


Link to post
Share on other sites

Gawd, all that stuff is still to hard. I dont any GUI 's and I have no clue about that debug.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 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.

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I did something really simple as well...

EDIT - but I deleted it, because it was too simplistic, and gafrost dominated my script.

Edited by greenmachine

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 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.

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0