Shaggi Posted October 11, 2011 Share Posted October 11, 2011 SO, i was playing around with adding a C preprocessor into the SciTE IDE and i thought it became kinda cool.A package is attached, which hold a small installer and some binary files, that integrates the preprocessor into SciTE along with some syntax stuff, so you can run it right away through F5. It can also uninstall what was installed. This uses the open source mcpp C preprocessor, which can be found here: http://mcpp.sourceforge.net/ Example of usage (this gets converted to perfect valid au3 code): In case anybody doesn't know what the C preprocessor is:It allows for inclusion of other source files (already supported in autoit through #include)It allows for symbolic constants and small function-like macroesMost importantly, it allows for conditional inclusion through the use of #ifdef, #ifndef and #ifIt has some other tricks too, some of them explained in above picture.Known incompatibilities: Empty escape characters ("\") causes the engine to crash, i will look into this... can be disabled in \Autoit\scite\autoitwrapper\pre.ini (remove argument -a, others can btw be added here). So does anybody feel this is useful? Au3 PP.zip perfaram and jvanegmond 2 Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG Link to comment Share on other sites More sharing options...
E1M1 Posted October 11, 2011 Share Posted October 11, 2011 (edited) Omfg that's super cool. I dont know what to say about it... well let's think what to say.. for i= 1 to MAX_IDEAS if IsGoodIdea($Idea[$i]) then Post() It looks quite useful to me Edited October 11, 2011 by E1M1 shanet 1 edited Link to comment Share on other sites More sharing options...
Unsigned Posted October 12, 2011 Share Posted October 12, 2011 Yes. Yes. Yes. I can't say enough how good of an idea this is, I've thought the same thing ever since I discovered AutoIt. . Link to comment Share on other sites More sharing options...
DeltaRocked Posted November 22, 2011 Share Posted November 22, 2011 Hi, I am unable to execute any of my scripts from within SCITe ... >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:Documents and SettingsTEMPDesktopPhishRunBinary.au3" /autoit3dir "C:Program FilesAutoIt3" /UserParams !(MCPP) Preprocessing: > mcpp.exe "C:Documents and SettingsTEMPDesktopPhishRunBinary.au3" "C:Documents and SettingsTEMPDesktopPhishRunBinary2.au3" -I "C:\Program Files\AutoIt3\Include\" -a -P -D AU3VERSION=33718 -I2 >Exit code: 0 Time: 0.419 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