Sign in to follow this  
Followers 0
Shaggi

AutoIt with C preprocessor

   20 members have voted

  1. 1. Useful?

    • Yes
      20
    • No
      0
  2. 2. Needed?

    • Yes
      17
    • No
      3

Please sign in or register to vote in this poll.

4 posts in this topic

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):Posted Image

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 macroes
  • Most importantly, it allows for conditional inclusion through the use of #ifdef, #ifndef and #if
  • It 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? :graduated:

Au3 PP.zip

2 people like this

Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by E1M1
1 person likes this

edited

Share this post


Link to post
Share on other sites

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.


LA-based actor, part-time freelance security analyst and assembly/C/C++ kernel developer. (Extra cash is goooood.)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0