MerkurAlex Posted August 6, 2008 Share Posted August 6, 2008 I need a quick way to pull all the function names from an autoit file i could make a autoit script to do this but at the moment im very busy so i was wondering does anyone else have a way to do this. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
LarryDalooza Posted August 6, 2008 Share Posted August 6, 2008 I smell a short script with FileRead and RegEx coming... AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Developers Jos Posted August 6, 2008 Developers Share Posted August 6, 2008 $Scriptname = "C:\Program Files\AutoIt3\Include\date.au3" $Array = StringRegExp(FileRead($Scriptname), "(?i)\n[\s]*Func[\s]*(.*?)\(", 3) for $i = 0 to UBound($array) - 1 ConsoleWrite('$array[$i] = ' & $array[$i] & @crlf) Next SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 6, 2008 Moderators Share Posted August 6, 2008 $Scriptname = "C:\Program Files\AutoIt3\Include\date.au3" $Array = StringRegExp(FileRead($Scriptname), "(?i)\n[\s]*Func[\s]*(.*?)\(", 3) for $i = 0 to UBound($array) - 1 ConsoleWrite('$array[$i] = ' & $array[$i] & @crlf) Next "(?i)(?:^|\n)\s*func\s+(\w+)\s*\(" Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MerkurAlex Posted August 6, 2008 Author Share Posted August 6, 2008 Thanks. I love this community! [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] 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