Jump to content

Recommended Posts

Posted

Fixed.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)
  On 8/12/2015 at 10:54 AM, JohnOne said:

Now that's fucking service!

 

Hmm..would have been quicker, though I don't have svn on this machine.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 1 month later...
  • 1 month later...
Posted

Help File Entry for GUIRegisterMsg

This page from the Help file needs some TLC.  I think the content is good, but the language is a bit clumsy. Please have a look

This is just a sample:

  Quote

By default after finishing the user function the AutoIt internal message handler will be proceed.
That won't be if your Return a value (See WM_COMMAND in example) or if you use the keyword 'Return' without any value.
By using 'Return' without any return value the AutoIt internal message handler (if there is one for this message) will NOT be proceed!
 

(The Servers says "No") :)

 

Skysnake

Why is the snake in the sky?

Posted

https://www.autoitscript.com/autoit3/docs/libfunctions/_DateAdd.htm

in parameters description there is:

  Quote

n - Add/subtract minutes to/from the specified en date

is this any kind of typo ?
I mean here:
 "specified en date"

 

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

SkySnake & mLipok,

I agree with both of those - looking into it.

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

 

  • Moderators
Posted

SkySnake,

How about this:

By default the AutoIt internal message handler (if there is one for that message) will be actioned after the user function exits. The AutoIt internal message handler will also be actioned if the keyword <strong>Return</strong> is used with the constant <strong>$GUI_RUNDEFMSG</strong> (found in GUIConstantsEx.au3).

However, if <strong>Return</strong> is used with any other value (including no value at all) the AutoIt internal message handler will <strong>NOT</strong> be actioned (See WM_COMMAND in example).

So an early return from the user function requires <strong>Return $GUI_RUNDEFMSG</strong> if the AutoIt internal handler for that message is to run (see other examples).

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
  On 10/7/2015 at 9:47 AM, Teks said:

https://www.autoitscript.com/autoit3/docs/intro/running.htm#CommandLine

Command Line Parameter Argument

constant variables  constants

 

No issue.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Melba23, In the example for GUIRegisterMsg in function MY_WM_DRAWITEM can you also make this update to make the script run under 64 bit:

;Local $stDrawItem = DllStructCreate("uint;uint;uint;uint;uint;uint;uint;int[4];dword", $lParam)
Local $stDrawItem = DllStructCreate("uint;uint;uint;uint;uint;hwnd;handle;long[4];ulong_ptr", $lParam)

 

  • Moderators
Posted (edited)

SkySnake & LarsJ,

Thanks - I will amend the example as well.

M23

Edit: And done.

Edited by Melba23

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 (edited)
  On 12/2/2015 at 5:25 PM, LarsJ said:

Melba23, In the example for GUIRegisterMsg in function MY_WM_DRAWITEM can you also make this update to make the script run under 64 bit:

;Local $stDrawItem = DllStructCreate("uint;uint;uint;uint;uint;uint;uint;int[4];dword", $lParam)
Local $stDrawItem = DllStructCreate("uint;uint;uint;uint;uint;hwnd;handle;long[4];ulong_ptr", $lParam)

 

Sure there is a constant out there for this already?

Edit: Seems https://msdn.microsoft.com/en-us/library/windows/desktop/bb775802(v=vs.85).aspx isn't!

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I am going to re-write GUIRegisterMsg.au3, as a lot of those functions are in the standard library and exhibit no error checking whatsoever. It's also stops the "copy 'n' paste" fiends from ruining their code.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 1 month later...
Posted
  On 1/7/2016 at 10:52 AM, Teks said:

No offense, but "constant variable" is an oxymoron. It's either constant or variable. Pick a good book on any mainstream language and see yourself

Here's one https://msdn.microsoft.com/en-us/library/e6w8fe1b.aspx

AutoIt is slightly different, in that our "constants" are variables. They are stored in the same namespace, and are treated almost identically, with the exception they cannot be written to. Mainstream languages, you generally are talking about compiled languages, can actually have constants, that are replaced at compile time.

Simple example:

Global Const $foo = Random()

That's a constant apparently. 

Posted

I like that autoit can assign a value to a const like that when declared, but it is still a constant value for the lifetime of the script.

The fact that the issue is being discussed still shows there is ambiguity, but if it were to just be disambiguated in the help file, what might the remark be? "a constant variable, is in fact not variable"?

In my view, it's a no brainer.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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