Jump to content
Mentis

Strip all includes from autoit source

Recommended Posts

Mentis

Hey guys,

some people asked me to update a pretty old script of mine, i was surprised that anyone still cared since quiet some time passed :).
Now I've sadly ran into problems trying to update the code..i obviously get molested by 10.000 "constant already defined" errors (include the metroUI for and some other functional changes) since through some misshappenings I've lost the source and have to work with a decompiled version.

Is there a way to automaticly detect and extract all the used?
I've started a new project with my old code, but restoring all the includes either through debugging the new project or matching thousends of line in the other code makes little ponys sad ..

I would really appreciate any input!

 

peace out

Share this post


Link to post
Share on other sites
Jos

@Mentis, We have some rules around discussing decompiled scripts, so make sure you read them first.

First observation is that a retrieved source would not contain include statements but the whole source in one file.
So you would need to totally strip it down when adding the Includes back in or simply leave it like that.

Jos
 


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Mentis
Spoiler

 

Hey Jos,

thanks for the reply!
I was apparently way overdue (18 hour work day:).. its a good thing) when I typed this down yesterday since my articulation is really really off and I hardly got my point across. I also just reread the rules (would be really cool if they were thumbnailed in all subcategories, took me a short while to find them), so let me rephrase my question :

After a good night out with some buddies I decided to work some more on my script in an unconcious(drunken) state of mind.
When I woke up I the next morning, my Pc was still running, and for some weird reason i replaced all the include statements with their matching sources.

Did somebody else run into similar happenings and managed to tidy up their sourcecode?

 

My current solution is exactly the opposite way : I exported my own functions into a new project and am currently trying to slowly add all includes by debugging.
After working on it for some time it really felt like there was a good chance somebody has written a parser for your proposed (manual) solution.

 

peace
Mentis
 

Share this post


Link to post
Share on other sites
Melba23

Mentis,

Quote

I also just reread the rules (would be really cool if they were thumbnailed in all subcategories, took me a short while to find them)

There is a link to the "Forum Rules" in the menu bar at the top of each and every page - so the expression "ice cold" would seem apt.....

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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

×