Richard Robertson Posted July 22, 2006 Share Posted July 22, 2006 Now why did you resurect this? Someone should lock this thread before Chris comes back. Link to comment Share on other sites More sharing options...
OverloadUT Posted July 24, 2006 Share Posted July 24, 2006 How about adding Goto?This was a joke. Link to comment Share on other sites More sharing options...
Wus Posted July 24, 2006 Share Posted July 24, 2006 you'll probably be admin slayed for that... lol God rest your soul. Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 24, 2006 Share Posted July 24, 2006 Oh my goodness. Valik should be here any time now. Link to comment Share on other sites More sharing options...
Kickassjoe Posted August 3, 2006 Share Posted August 3, 2006 (edited) only read the first two pages... and i have to go right now (5 mins ago) but isnt the point of open source code for people to make it better and make it have less bugs than it does already? how many ppl know autoit compared to how many ppl know C/C++? so in the end how many ppl would u have to help make it better in autoit? in C/C++? That is one of the only reasons i would want an Autoit to C++ converter... cya now Edited August 3, 2006 by Kickassjoe What goes around comes around... Payback's a bitch. Link to comment Share on other sites More sharing options...
Azu Posted August 8, 2006 Share Posted August 8, 2006 How about adding Goto?That'd be sweet! Link to comment Share on other sites More sharing options...
Alpha_Hacka Posted November 4, 2006 Share Posted November 4, 2006 Sorry to bump the thread but, is there ever going to be a AutoIT to C++ converter. I'd really like to see one. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2006 Developers Share Posted November 4, 2006 Sorry to bump the thread but, is there ever going to be a AutoIT to C++ converter. I'd really like to see one.depends if/when somebody will build it.... i doubt that Jon will ever start with it himself 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...
SlimShady Posted November 4, 2006 Share Posted November 4, 2006 don't you think it's foolish to keep this topic open? Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2006 Developers Share Posted November 4, 2006 don't you think it's foolish to keep this topic open?I am sure when I close it somebody will open a new one ... 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...
Richard Robertson Posted November 4, 2006 Share Posted November 4, 2006 Why not make a sticky containing the reasons for and against this? Link to comment Share on other sites More sharing options...
Uten Posted November 4, 2006 Share Posted November 4, 2006 Has anybody mentioned BCX? It's not converting AutoIt directly but should be a great tool to use if you really badly want to do a conversion. JdeB should be able to comment, I think? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 4, 2006 Moderators Share Posted November 4, 2006 Why not make a sticky containing the reasons for and against this?A sticky? lol... I can't even see Valik being against it if he doesn't have to do the work himself. Now, the Pros and Cons of doing it maybe... but who would be against someone taking it upon themselves for such an in depth task? 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...
Valik Posted November 4, 2006 Share Posted November 4, 2006 I wouldn't say I'm against it but I think the idea is stupid. There's a big difference between writing something so that it works in a scripting language and writing something so that it works. A number of "simple" things in AutoIt requires lots of complex code to pull off. Lots of things do things in ways that cater to a scripting language but wouldn't necessarily be the best way to write something in C++ from scratch. Then there's also the fact that the two languages are only remotely similar. One thing that would be a major hurdle is types. The C++ code would have to use some sort of Variant class since AutoIt is typeless. Variants have special uses but are not a general purpose "type" in C++. For one thing, the notion of type safety is gone. If you want C++ code with AutoIt functionality, use AutoItX and C++. A converter from AutoIt to C++ will generate sometimes unnecessarily complex and slow code compared to what could be written from scratch in C++. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 4, 2006 Developers Share Posted November 4, 2006 (edited) Has anybody mentioned BCX? It's not converting AutoIt directly but should be a great tool to use if you really badly want to do a conversion. JdeB should be able to comment, I think?This exercise convinced me that it is quiet difficult to ever do something like BCX does and have everybody use it (read people without any true programming experience)BCX converts your code perfectly, but you still get an c00005 crash when you dim a string of 10 chars and try to store 11 characters in it ....In other words, you need to understand programming basics and C before you can work with BCX. Edited November 5, 2006 by JdeB 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...
Richard Robertson Posted November 5, 2006 Share Posted November 5, 2006 It makes sense to leave scripts as scripts. I don't see how converting AutoIt to C++ will be very readable afterwards. Link to comment Share on other sites More sharing options...
Snarg Posted November 5, 2006 Share Posted November 5, 2006 I know, old topic and probably a bad idea but, instead of going AutoIt -> C++, how about C/C++ -> AutoIt? I know I have run accross a few C functions I would like to use in AutoIt but I don't know how to convert them. A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
CodeMaster Rapture Posted November 5, 2006 Share Posted November 5, 2006 The problems with converting Au3->C++ are numerous, but think of the time saver if it was done right. I mean, I can whip up a little GUI in seconds with Au3 (hell I've even written a couple framework sets in Au3) and if I could convert it to C++ and then add in the finer code later... We all know the problems with Au3 (my biggest peeve is the lack of multi-threading) aswell as the strengths. It would be rather simple (logically speaking) to convert from Au3->C++ if a certain set of rules were kept. For example, I ALWAYS use prefixed variables which could be easily recognized. Dim $i_Iter, $b_Even, $sz_Number For $i_Iter = 0 to 100 If (mod($i_Iter,2) == 0) Then $b_Even = True EndIf Switch ($i_Iter) Case 1 $sz_String = "One" Case 2 $sz_String = "Two" ;On and on.... EndSwitch Next Rather simple code that does nothing important is easily converted to C++: #include <stdio.h> #include <string.h> int main() { int i_Iter; bool b_Even; char sz_String[25]; for (i_Iter = 0;i_Iter < 100;i_Iter++) { if (i_Iter % 2) == 0) b_Even = true; switch (i_Iter) { case 1: { strcpy(sz_String,"One");break; } case 2: { strcpy(sz_String,"Two");break; } /* On and on and on */ } } return 0; } Granted, this isn't very complex, but for the most-part, neither is Au3. Since it is written in C++, it makes sense that it could be converted to C++ by use of function copies. If I use PixelSearch, it copies the C++ Pixelsearch function (and all needed libs) to my converted code. Yes, I'm aware it isn't that easy, but the general idea is sound. F*** it, I'll give it a shot. Time to get started writing a huge switch to encompas the general functions in Au3 to C++. -CMR Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 5, 2006 Share Posted November 5, 2006 Good luck with that. Tell us when you give up. Link to comment Share on other sites More sharing options...
theguy0000 Posted November 5, 2006 Share Posted November 5, 2006 (edited) Good luck with that. Tell us when you give up.oh, that was encouraging Edited November 5, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN 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