I've run into this so many times over the years where I find a script/UDF that looks like exactly what I want but it doesn't work on the latest version of AutoIT. So I spend ages working on it to bring it up-to-date only to find it doesn't live up to expectations.
http://www.autoitscript.com/autoit3/docs/script_breaking_changes.htm
So has anyone thought about/working on/Made a script updater for AutoIT?
(Just to be clear I'm talking about a program that will update a script to be compatible with the current version of Autoit.)
(IE fix the script breaking changes so the scripts are UNbroken.
I think it'd be a good project to work on that when working would help the community.
So if anyone has ventured down this road and has advice to offer I'd be happy to hear from them.
At the moment my (Preliminary) thinking is along the lines of multiple cycles of the following
1. Any simple search and replaces using regex
(@InetGetActive - Calling the new InetGetInfo() function with no parameters returns a count of active downloads)
_GUICtrlXXXYYY() have been renamed _GUICtrlXXX_YYY() without any functional changes see UDF renaming
2. More complex script spanning changes
(InetGet("abort") - Calling the new InetClose() function with a handle returned from InetGet() will abort a download)
The script will have to recognise the variable used to capture the handle returned from InetGet() and replace InetGet("abort") with InetClose(handle).
3. THE REST
I'm thinking that any line containing a line that can't be converted by 1 & 2 is Marked for editing in SciTe
eg ;***SBC*** : {Line with changes}
or a system using Listview controls like "Application Translate Tool" http://www.autoitscript.com/forum/topic/139528-att-application-translate-tool
Anyway just thought I'd throw that out there and see if anyone has anything written that will do this or at least partly do it. IF not I’ll see what I can cook-up. J
I must admit the more I looked into this the more it scares me
But I think it would be worth it if a converter could be made.
Thanks for any and al help!
John Morrison




