Jump to content

Recommended Posts

Posted

Oh, and if people are wondering, the reason I use Enum and Const in Global is because it means I don't have to worry about index values of the array. Therefore these are just pre-processor variables than your standard Global variables i.e. just replace them with the corresponding value e.g. $QUEUE_FIRSTINDEX = 0

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)
  On 5/18/2014 at 3:57 PM, D4RKON3 said:

Or just leave it as it is, as the au3Stripper will do it for yea.

It doesn't though.

If you change the constants to this... then $STOPWATCH_TICKSPERMILLISECOND and $STOPWATCH_TICKSPERSECOND will be "expanded".

Global Const $STOPWATCH_GUID = 'C3975B00-DE99-11E3-B5BB-047274EB0A54'
Global Const $STOPWATCH_TICKSPERMILLISECOND = 10000
Global Const $STOPWATCH_TICKSPERSECOND = 100000000
Global Enum $STOPWATCH_TIMER, $STOPWATCH_RUNNING, $STOPWATCH_ELAPSED, $STOPWATCH_ISHIGHRESOLUTION, $STOPWATCH_FREQUENCY, $STOPWATCH_TICKFREQUENCY, $STOPWATCH_ID, $STOPWATCH_MAX
Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 5/18/2014 at 4:39 PM, D4RKON3 said:

doesn't au3Stripper support Enum?

No it doesn't. I don't believe Jos is going to add support either.

PS I will revisit PreExpand in the summer and support Au3Stripper.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted (edited)

guinness,

  Quote

I will revisit PreExpand in the summer and support Au3Stripper

Excellent news. :thumbsup:

M23

Edited by Melba23
Blasted speelchecker again - sorry

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Developers
Posted
  On 5/18/2014 at 7:20 PM, guinness said:

No it doesn't. I don't believe Jos is going to add support either.

PS I will revisit PreExpand in the summer and support Au3Stripper.

au3stripper is stripping Enum lines when none of the variables are used, but isn't doing any interpreting of ENUM statements for PreExpand functionality.

Jos

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.
  :)

  • 1 month later...
Posted

Made a couple of syntax tweaks to the example and UDF.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 2 weeks later...
Posted

Changed the structure of the internal __Queue() function and removed duplicate code for checking if a valid handle by moving to a separate function. Code is in the first post.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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...