Jump to content

Ideas


Recommended Posts

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"

Link to comment
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.

 

Link to comment
Share on other sites

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.

 

Link to comment
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.

 

Link to comment
Share on other sites

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...