Jump to content

Recommended Posts

Posted
#AutoIt3Wrapper_If_Run
    #AutoIt3Wrapper_Run_Au3Check=Y
    #AutoIt3Wrapper_Run_Tidy=Y
#Autoit3Wrapper_If_Compile
    #AutoIt3Wrapper_Run_Au3Check=N
    #AutoIt3Wrapper_Run_Tidy=N
#AutoIt3Wrapper_EndIf

AutoIt3Wrapper has the above ( when not as GUI )

Can a similar be had for AutoIt ?

#Directive_If_Run
    #RequireAdmin
#Directive_If_Compile
    ; highestAvailable
#Directive_If_Something
    ; maybe if_au3, if_exe, etc. Just an idea
#Directive_EndIf

Because if "#RequireAdmin" is there, it will abide by that instead of:
#pragma compile(ExecLevel, highestavailable)
or
#AutoIt3Wrapper_Res_requestedExecutionLevel=highestAvailable

Let it be known that is not a "OMG!, what am I gonna do" kind of thing since we all live with it since always but, it'd be nice to have.

PS: I know that requests are by trac only. So this is a wish for when time permits it.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted
5 hours ago, argumentum said:

Can a similar be had for AutoIt ?

Not as-is, as AutoIt3 will simply read all directive lines one by one and ignore any KEYWORDS it doesn't recognise.

So the only way it could be possible is that AutoIt3Wrapper would remove the lines that are in an untrue section of the "#AutoIt3Wrapper_If_Run" statement.

 

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

Posted

I know that @Jos, I know. The implementation in the AutoIt3 product would not be script braking.
I don't know how hard/easy would it be to code it or what are the caveats of having that.
Maybe am thinking that is a great idea but didn't take into consideration ... something, I don't know.

Maybe @Jon or @jpm get to look at the post and like the "proposal". I say proposal in quotes because when someone ask me for something I run it in my head and in an instant and I know if it'd be possible or not, and what would it entail. Maybe looking for those conditionals are very taxing, maybe not. Maybe.., I don't know.

I do know that in AutoIt3Wrapper would be very taxing. So, convenience vs. bloat. Don't know if is worth it.
What is nanoseconds in C is milliseconds in script, that I know but again, ...maybe is a bad idea ?, no clue.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted
1 hour ago, argumentum said:

I do know that in AutoIt3Wrapper would be very taxing. So, convenience vs. bloat. Don't know if is worth it.
What is nanoseconds in C is milliseconds in script, that I know but again, ...maybe is a bad idea ?, no clue.

My bet is that this will be the only option, as implementing this in AutoIt3 will never happen (my educated guess). 

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

Posted

Opened a proper request in trac. I know that a trac is more visible to developers. We'll see. Maybe #HighestAvailable is added instead, or nothing. Who knows.

I tell the people that I code for, that they need to talk to me because I don't use what I put together for them, and if there is a need, how am I to know. So don't be shy and lets converse.
Trac is a better way to talk to the DEVs and now is an open conversation. We'll see.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted

Try the current beta v25.205.1420.11 of AutoIt3Wrapper. 
Added logic to strip the lines between #Autoit3Wrapper_If_* ---- #Autoit3Wrapper_(End)If(_*) that are not valid for the run and save the source to a temp file to process.

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

  • Developers
Posted

It is always possible, but that is not something I will be looking at, as that makes it way too complex and doesn't weight up to the effort I would have to put in. 
Have a go when you want and when done make a proposal for update of Autoit3Wrapper. 😉 

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

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