Mat Posted May 12, 2010 Share Posted May 12, 2010 (edited) Current version 1.0.2.9 released 09/12/2010 [ view changelog ] [ ] Beta version 2.0.0.0 released 03/12/2010 [ No changelog ] [ ] I recently decided to try out ruby, and was very surprised when I saw how they they set out the many advantages of being an interpreted language. Along with the usual reasons, they mentioned how it was shipped with 'interactive ruby', an interpreter. When they gave all the benefits of having an interpreter like this I couldn't resist the oppertunity to make AutoIt one. The result? The AutoIt3 Interpreter, Au3Int for short.There are lots of things that were a bit of a pain to build in, and so the code is (although short) a bit more long and complex than I would've liked, but there are still a few useful tidbits in there... For example there is finally a good example of using _WinApi_OpenFile and CON, as well as setting the console window title which i've always wanted to do. The screenshot is a few versions out, I had to fix a few bugs, and build a few things in making it a nice and round 1.0.0.20 for the initial release (not least because it still takes a few tries before compiling )Project pageChangelogDownloadsBug trackerMat Edited December 9, 2010 by Mat robertocm 1 AutoIt Project Listing Link to comment Share on other sites More sharing options...
wraithdu Posted May 12, 2010 Share Posted May 12, 2010 This does what... like a shell for AutoIt (like cmd or PowerShell)? So would let you execute single lines of AutoIt code? Link to comment Share on other sites More sharing options...
MvGulik Posted May 12, 2010 Share Posted May 12, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
monoceres Posted May 12, 2010 Share Posted May 12, 2010 Nice! However, isn't autoit supposed to be a dynamic language? This works: Local $a=10 While does generates some warnign and then gives subscript error: $a=10 Too bad autoit doesn't support multiline statements in execute.. doesn't make any sense that it doesn't. I actually made something similar like this with the public autoit source, it wasn't well received Ps. Python have this too! Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Mat Posted May 12, 2010 Author Share Posted May 12, 2010 This does what... like a shell for AutoIt (like cmd or PowerShell)? So would let you execute single lines of AutoIt code? Yes. But it also does other stuff like allow you to have variables which are kept in memory. Technically you could build a GUI using this (I tried ). Any change you got a lingering Au3Int.chm file laying around over there? (just checking) Not quite yet... I'm working on it. Docs was never my strength. Nice! However, isn't autoit supposed to be a dynamic language? This works: Local $a=10 While does generates some warnign and then gives subscript error: $a=10 Too bad autoit doesn't support multiline statements in execute.. doesn't make any sense that it doesn't. I actually made something similar like this with the public autoit source, it wasn't well received The warning is me unsure you want to test if a=10 or if you want a=10... the default was for an bool to be returned so a built a bit more in as It was annoying, and I'd already told it to throw a warning if you tried to redeclare a variable (although it would reassign it). You can use the '_' to continue lines if you want... Loops and functions will probably never be there. The subscript error is the last thing I expected... I will look into it. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Mat Posted May 12, 2010 Author Share Posted May 12, 2010 Nice! However, isn't autoit supposed to be a dynamic language? This works: Local $a=10 While does generates some warnign and then gives subscript error: $a=10 Too bad autoit doesn't support multiline statements in execute.. doesn't make any sense that it doesn't. I actually made something similar like this with the public autoit source, it wasn't well received Ps. Python have this too! HAHAHAHAHAHA You just hit the jackpot. I was using $a in the script... There I was looking for a bug. AutoIt Project Listing Link to comment Share on other sites More sharing options...
monoceres Posted May 12, 2010 Share Posted May 12, 2010 HAHAHAHAHAHA You just hit the jackpot. I was using $a in the script... There I was looking for a bug.Heh Enforce a name mangling scheme, so this tragedy won't happen again! Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Mat Posted May 12, 2010 Author Share Posted May 12, 2010 Heh Enforce a name mangling scheme, so this tragedy won't happen again!I was going to but never got round to it. Maybe I will now Google code says:Uploads are temporarily disabled. Please try again Later.perfect timing. AutoIt Project Listing Link to comment Share on other sites More sharing options...
ValeryVal Posted May 13, 2010 Share Posted May 13, 2010 Fine.HAHAHAHAHAHA You just hit the jackpot.I'm too. Try this: msgbox(0,"",$sInput)BTW {Up} key allows to get previous command. {Alt-Space} menu is also working and you can insert command from outside very easy. The point of world view Link to comment Share on other sites More sharing options...
Mat Posted May 13, 2010 Author Share Posted May 13, 2010 (edited) Download updated. Helpfile is minimal, but has what you need.A few bugs fixed:'local $a = 10' will now show a return value of '10' as it should.Variables names are now long and complex so no-one will mess with them.Edit: That should fix yours too Valery. Edited May 13, 2010 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Fire Posted May 13, 2010 Share Posted May 13, 2010 Awesome!! Thank you very Much Mat [size="5"] [/size] Link to comment Share on other sites More sharing options...
Mat Posted May 13, 2010 Author Share Posted May 13, 2010 (edited) Awesome!! Thank you very Much Mat Fire, Thanks for the reply, but if you want to post a link to a user just use: [member='Mat'] and you get: Mat Which is much easier than finding out what my user ID is (and it shows the tooltip as 'Member profile' rather than 'External link'). Edited May 13, 2010 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Kip Posted May 13, 2010 Share Posted May 13, 2010 (edited) What are the advantages of this over normal .au3 scripts? Edited May 13, 2010 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
ValeryVal Posted May 13, 2010 Share Posted May 13, 2010 What are the advantages of this over normal .au3 scripts?You can use this Au3Automation on fly... The point of world view Link to comment Share on other sites More sharing options...
monoceres Posted May 13, 2010 Share Posted May 13, 2010 What are the advantages of this over normal .au3 scripts?Usually debugging. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
JRowe Posted May 13, 2010 Share Posted May 13, 2010 Also, it makes learning some things a more hands-on experience. Very cool, Mat! [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...
Mat Posted May 13, 2010 Author Share Posted May 13, 2010 What are the advantages of this over normal .au3 scripts?This you can see what's happening step by step, and hence test code without having to do too much.I hate having to make lots of au3's, as I am not very tidy, and so I have last years ideas that never worked hidden all over the place. With this, I can test a theory without having to have any ode first. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Mat Posted May 13, 2010 Author Share Posted May 13, 2010 Also, it makes learning some things a more hands-on experience. Very cool, Mat!hands-on is a good way of putting it. I wish i'd thought of that Thanks for all the comments... It's nice to have lots of comments but only a few bugs I was also thinking of a new tutorial based on this page as I find that is a great way to learn. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Mat Posted May 13, 2010 Author Share Posted May 13, 2010 Google has now officially screwed up big time. The bugs I said have been fixed (which have been) are not fixed in the download. Google code has taken the decision to ignore my new uploads, so the old zip is still there, and the only reason I found out is because I tried the download... files should be downloaded from here until I get that fixed. AutoIt Project Listing Link to comment Share on other sites More sharing options...
wraithdu Posted May 13, 2010 Share Posted May 13, 2010 I had an idea for executing multi-line code this morning while driving to work. It would be kind of a one shot deal, but... the idea is to have a line continuation character that your interpreter would process, then write out a temp script in @TempDir or something, then execute the script. I would think that ; (semicolon) would work, since a shell has no use for comments. Then you could do something like this: > Func _MyMsg();MsgBox(0, "Function", "Hi there.");EndFunc;_MyMsg() You'd have to watch out for ; in literal strings, but you get the idea. 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