Jump to content

Recommended Posts

Posted (edited)

Const Replacer v1.2

Update :

Version 1.1
          Const Creator ameliorated
          Const Replacer works fine
          Added _SciTE_SetText ;Thanks to Jos
 
 Version 1.2
         Const Creator ameliorated
         Const Replacer ameliorated
         Added _SendMessage functions ;Thanks to Martin

Description :

Const Replacer replace constants by their values, Ex : $GUI_EVENT_CLOSE = -3

No more constants includes !

Example Scripts :

Before :

#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>

GUICreate('Const Replacer !', 200, 200, -1, -1, -1, BitOR($WS_EX_APPWINDOW, $WS_EX_TOOLWINDOW))
GUISetOnEvent($GUI_EVENT_CLOSE, '_Exit')
GUISetState()oÝ÷ Úàµêÿ¹«­¢+Øíø¥¹±Õ±ÐíÕ¥
½¹ÍѹÑÍà¹ÔÌÐì(íø¥¹±Õ±Ðí]¥¹½ÝÍ
½¹ÍѹÑ̹ÔÌÐì()U%
ÉÑ Ìäí
½¹ÍÐIÁ±ÈÌÌìÌäì°ÈÀÀ°ÈÀÀ°´Ä°´Ä°´Ä° ¥Ñ=H ÁàÀÀÀÐÀÀÀÀ°ÁàÀÀÀÀÀÀàÀ¤¤)U%MÑ=¹Ù¹Ð ´Ì°Ìäí}á¥ÐÌäì¤)U%MÑMÑÑ ¤

Note :

I know for FreeStyle, just got the information...you like this one ?, I will work on it.

-Run 'Const Creator' before 'Const Replacer' for create constants

Attachments :

Const Replacer : Const_Replacer.au3

Const Creator : Const_Creator.au3

Enjoy ! :)

Cheers, FireFox.

Edited by FireFox
Posted (edited)

Nice, but what for this is needed? Sorry, actualy sometimes it's really can be usefull, for example when using external modules (a.k.a a3x files) as seperate plugins for our apps (the #includes can not work there, because they should run on «AutoIt-Free» system :) ), you just use as standard script with includes and constants, and when needed just replace all constants by they values, so the includes can be removed without affecting on the script work.

Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

FireFox

I have edited my post :)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted (edited)

@MrCreator

:) Sorry, I dont understand your edited post :)

Edit : I think I've understood, but when you run the script, includes lines arent deleted but placed to edit mode '; ~'

Cheers, FireFox.

Edited by FireFox
Posted
  Quote

includes lines arent deleted

There is no problem to delete them manualy :)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

Why don't you make it like:

'Scuse the results of my Bit Or....

After:

GUICreate('Const Replacer !', 200, 200, -1, -1, -1, 0x00040080); $WS_EX_APPWINDOW, $WS_EX_TOOLWINDOW

Cheers,

Brett

Posted

@MrCreator

Sure...Many functions will be added with command line parameters, like show replaced constances, select includes constants to replace, ... and more stability for speed and consolewrite

Cheers, FireFox.

Posted

Version 1.1 now available (see first post for update)

More functions comming soon :)

Note : If you want Const Replacer to be faster, Create only main constants with Const Creator :)

Cheers, FireFox.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...