amokoura Posted November 1, 2008 Share Posted November 1, 2008 A very fascinating idea! However, I'd rather use some true OO language with AutoItX. Then you get two things at their best combined. Link to comment Share on other sites More sharing options...
Kip Posted November 1, 2008 Author Share Posted November 1, 2008 New version. (downloadable from first post) fixed bugs: - Multiple object functions can be called on 1 line. - The orginal AutoIt3.exe should now be renamed to: 'AutoIt3 Original.exe' - Compiled to Unicode. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted November 1, 2008 Share Posted November 1, 2008 (edited) If you do replace it, you dont have to drag and drop anything. You'll just have to hit Run in SciTE Well this is a bad idea because this will introduce performance hits, even if you use the OO. I think you should just make this into a Scite4AutoIt addon. What I would do is make a menu item for Scite with the options Run as OO-AutoIt Compile as OO-AutoIt which will do following 1. Convert the AutotIt script to your implementation of OO. 2. Run AutoIt/Compile the modified script. Add this to au3.properties # 37 OO-AutoIt command.37.*.au3="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\OOAutoIt\OOAutoIt.au3" "$(FilePath)" command.name.37.*.au3=Run as OO-AutoIt command.save.before.37.*.au3=1 command.is.filter.37.*.au3=1 command.shortcut.37.*.au3=Shift+Alt+F5 # 38 OO-AutoIt command.38.*.au3="$(autoit3dir)\autoit3.exe" "$(SciteDefaultHome)\OOAutoIt\OOAutoIt.au3" "$(FilePath)" command.name.38.*.au3=Compile as OO-AutoIt command.save.before.38.*.au3=1 command.is.filter.38.*.au3=1 command.shortcut.38.*.au3=Shift+Alt+F7 Or perhaps you could use #AutoIt3Wrapper_Run_Before= Also you don't need to compile it to unicode/ansi, for example 'OrganizeIncludes' runs perfectly fine without having to be compiled. Edited November 1, 2008 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
trancexx Posted November 1, 2008 Share Posted November 1, 2008 Well this is a bad idea because this will introduce performance hits, even if you use the OO. I think you should just make this into a Scite4AutoIt addon. What I would do is make a menu item for Scite with the optionsRun as OO-AutoItCompile as OO-AutoItwhich will do following1. Convert the AutotIt script to your implementation of OO.2. Run AutoIt/Compile the modified script.I wouldn't do any of that.This is great example to show that there is nothing that couldn't be done. But, that's all that is. It has no future in this shape.If you look at VBS before they implemented Class and afterward you will see the benefits.Implemening ability to create your own objects is up to AutiIt developers and will happen some day I'm sure. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Kip Posted November 1, 2008 Author Share Posted November 1, 2008 Implemening ability to create your own objects is up to AutiIt developers and will happen some day I'm sure.I won't be so sure about that.Maybe in Autoit 4, but not in 3. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
James Posted November 1, 2008 Share Posted November 1, 2008 Doubtful. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
trancexx Posted November 1, 2008 Share Posted November 1, 2008 Doubtful.Why? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
amokoura Posted November 1, 2008 Share Posted November 1, 2008 (edited) Why?I guess Autoit's goal is to be a simple scripting and automation tool. No radical changes like OO is needed....Although I'd love that feature If autoit feels too simple, it might be time to move to another language. Edited November 1, 2008 by amokoura Link to comment Share on other sites More sharing options...
trancexx Posted November 1, 2008 Share Posted November 1, 2008 I guess Autoit's goal is to be a simple scripting and automation tool. No radical changes like OO is needed....Although I'd love that feature If autoit feels too simple, it might be time to move to another language.I guess we are going to offtopic now but...Introducing OO as you call it is a step forward in some scripting language. If you look at changes that had happened to AutoIt only for the past little over 6 months (that is my AutoIt time) you will see that developers intention is to make AutoIt as powerful as it can be, not just to exist.Simple to code but nothing else that simple.Authors showed that they have no fear about introducing new things when switched to v3 (so I was told)So, Class is inevitable... in future. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Kip Posted November 1, 2008 Author Share Posted November 1, 2008 But, that's all that is. It has no future in this shape.How do you mean: 'In this shape' ? MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
JRowe Posted November 1, 2008 Share Posted November 1, 2008 I agree that object orientation is useful. However, without core changes to the engine, the only benefit is making it easier to write readable code. You won't get the *real* OO benefits of having "object" constructs in the AutoIt engine. The accessor semantics and syntactic sugar are nice, but they necessitate a choice between efficiency in operation, and readability. At least, that's the significant difference I see after playing with this. I could be missing something, but that's how I see it so far. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
trancexx Posted November 1, 2008 Share Posted November 1, 2008 How do you mean: 'In this shape' ? I will edit when something extremely smart and short at the same time strikes me ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted November 2, 2008 Share Posted November 2, 2008 Ok. You guys do whatever you want with your scripts. I don't care. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
jvanegmond Posted November 2, 2008 Share Posted November 2, 2008 Hey Kip, beside all the OO discussion I just wanted to say you did a great and creative job on adding a neat new feature. github.com/jvanegmond Link to comment Share on other sites More sharing options...
James Posted November 2, 2008 Share Posted November 2, 2008 I haven't tested this yet so I am wondering towards how this works. Does your EXE just convert the "OO" code into AutoIt? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Kip Posted November 2, 2008 Author Share Posted November 2, 2008 (edited) I haven't tested this yet so I am wondering towards how this works. Does your EXE just convert the "OO" code into AutoIt?Yes Hey Kip, beside all the OO discussion I just wanted to say you did a great and creative job on adding a neat new feature.Thanks Edited November 2, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted November 2, 2008 Author Share Posted November 2, 2008 (edited) New version (download from first post) Fixed: - Variables will be saved when calling Return. + New example. Edited November 2, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted November 2, 2008 Author Share Posted November 2, 2008 New version again. Fixed: - Comment behind a declare variable doesnt crash anymore - Arrays can be declared with Declare - Multiple variables can be declared on 1 line with Declare. + new example ofcourse MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted November 2, 2008 Author Share Posted November 2, 2008 (edited) Yeah, thanks... Is it just me, or do people just keep on breaking into my stuff? Edited November 2, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted November 2, 2008 Author Share Posted November 2, 2008 And now in english. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. 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