Jump to content

Recommended Posts

Posted
in the "AutoIt Syntax Checker (Au3Check)"
a description of these directives:
# forcedef
# forceref
# ignorefunc
 
According to me, this description is not very clear.
I mean it does not say what is the effect of the Directive is only mentioned about the fact that this can be used in a particular way.
 
Please read the description in this part of the documentation and look at it from the point of view of a novice.
 
I on my part I just had to guess what is the use of these directives. It did not take me much time can, but I have the impression that this description was created with the assumption that certain things are implicitly and remained vague.
 
Are my thoughts make sense?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

mlipok,

I will add something to help explain. :)

M23

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

 

Posted

Thanks

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

mlipok,

Added the following explanation:

 

These directives prevent Au3Check from reporting errors when the code is correct but too complex for the tool's parser. As shown in the examples below they are usually used when variables are implicitly declared - such as in a function definition or by a string parameter - and would otherwise not be recognised. In particular, #forceref can be used to prevent warnings where parameters are mandatory (such as in Windows message handlers) but are not used inside the function.

In my opinion, if the user is such a novice that they do not understand that, then they should not be using the directives anyway. ;)

M23

P.S. And yes, guinness, I used Notepad to change it. :P

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

 

Posted

very clearly explained ;)

 
I greet
mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 11/28/2013 at 10:55 AM, Melba23 said:

P.S. And yes, guinness, I used Notepad to change it. :P

Thanks.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)
Is the process of modifying HelpFile, is created with the assumption not to use MAGIC NUMBER?
 
Is the reported cases in which the appropriate changes have not yet been introduced.
 
for example:
"FileConstants.au3" does not contain variables for the parameter "flag" for function "FileSelectFolder".
 
 
EDIT:
some more such cases are in descripion for this function:
 
FileCreateNTFSLink
FileGetEncoding
FileGetShortName
FileGetTime
FileSetTime
Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I agree with Mat, it's taken years for AutoIt to get this far so resolving "issue" such as this isn't a couple of days & voila type of thing.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

If they are not present in v3.3.9.24 then post to Trac please.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

All done billo. Thanks for the requests and you should see this in the next version of AutoIt.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Always wanted to ask - is it possible to make load *default* browser if i click on link in chm help? I mean non-IE browser?

 

also - it seems for me there are non-correct links for msdn-related functions in help file:

_WinAPI_MultiByteToWideChar()

link in help, lead to "Unable to Service Request" page:

http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(MultiByteToWideChar);k(DevLang-C);k(TargetOS-WINDOWS)&rd=true

correct one:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd374130%28v=vs.85%29.aspx

Posted

The links aren't actually generated for the helpfile pages, instead what is generated is a search query.

However, both the links in your post #234 work for me, and the link works from the helpfile for me too.

Posted

Don't be afraid to keep those issues and improvements coming.

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
×
×
  • Create New...