Jump to content

Recommended Posts

Posted
  On 12/16/2013 at 11:37 PM, JohnOne said:

I think the all UDF _Array* functions should note either in description or remarks if they are for 1 dimensional arrays.

Good point, most only mention the 1D part in the error message descriptions.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

Added another option calculation

Local $nCos1, $nCos2, $nCos3, $nDegToRad, $nRadToDeg, $pi
$pi = 3.14159265358979 ; PI this semicircle expressed in radians
$nDegToRad = $pi / 180 ; 1 degree expressed in radians
$nRadToDeg = 180 / $pi ; 1 radian expressed in degrees, 57.2957795130824°

$nCos1 = Cos($pi / 4) ; the cosine of the angle 45°
$nCos2 = Cos(90 * $nDegToRad) ; the cosine of the angle 90°
$nCos3 = Cos(30 / $nRadToDeg) ; the cosine of the angle 30°

MsgBox(4096, 'the cosine of the angle 45°, 90° and 30°', _
        'Cos(pi / 4) =' & $nCos1 & @LF & _
        'Cos(90 * pi / 180) =' & $nCos2 & @LF & _
        'Cos(30 / (180 / pi)) =' & $nCos3)

$iCos1 --> $nCos1
$iDegToRad--> $nDegToRad

Posted (edited)
  On 12/16/2013 at 11:37 PM, JohnOne said:

I think the all UDF _Array* functions should note either in description or remarks if they are for 1 dimensional arrays.

good idea

small review:

in ArraySort:

good example in syntax description:

  Quote

Sort a 1D or 2D array on a specific index using the dualpivotsort/quicksort/insertionsort algorithms.

 

in _ArrayToString

descripion only in Return Value

  Quote

3 - $avArray is not an 1 dimensional array

syntax description

now:

  Quote

Places the elements of an array into a single string, separated by the specified delimiter.

proposal:

  Quote

Places the elements of an 1D array into a single string, separated by the specified delimiter.

 

I wonder if it would be sufficient in the description of the syntax, indicate the dimension of the array by specifying the type:
    1D array
    1D or 2D array
    xD array
 
EDIT:
eventualy "mulitD array" instead "xD array"
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

None of the Array functions work on anything more than a 2D array, no point in using multiD array as a description, it would cause much more confusion than clarity.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

If issues have been reported here with no Trac number then they will not be in the next beta version of AutoIt. See first post for details.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Depends on the example.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

  On 12/18/2013 at 2:53 PM, guinness said:

Depends on the example.

 

_GDIPlus_GraphicsDrawClosedCurve2.au3

_GDIPlus_GraphicsDrawCurve2.au3

_GDIPlus_GraphicsFillClosedCurve2.au3

_GDIPlus_GraphicsSetPixelOffsetMode.au3

 

Random

Flag [optional] If this is set to 1 then an integer result will be returned. Default is a floating point number. 

By default the Random() function works with decimal/floating point numbers. If you want to return an integer/whole number result then set the Flag parameter to 1.

Information is duplicated twice

Edited by AZJIO
Posted

  On 12/25/2013 at 10:30 PM, AZJIO said:

GUICtrlCreateAvi - GUICtrlCreateDate

BitOR/a>

GUI Control Styles

$LVS_EX_INFOTIP 0x00000400 Displays a tooltip when the item is not fully visible. Sends a notification message to $ LVN_GETINFOTIP

Done. Changed to Displays a tooltip when the item is not fully visible. Sends a notification message to $LVN_GETINFOTIP. Unless I am wrong, so in that case be specific.

I am unlikely to check this thread after the holidays. You have been warned.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
Why the text formatting is used (by me unnecessarily) character the end of the line.
For example, the documentation for the function: _WinAPI_FindTextDlg
 
  Quote

 

Remarks The _WinAPI_FindText() does not perform a search operation. Instead, the dialog box sends FINDMSGSTRING registered{ENTER}
messages to the window procedure of the owner window of the dialog box.

Before calling _WinAPI_FindText(), you must call the _WinAPI_RegisterWindowMessage() function to get the identifier{ENTER}
for the FINDMSGSTRING message. The dialog box procedure uses this identifier to send messages when the user clicks the{ENTER}
"Find Next" button, or when the dialog box is closing. The "lParam" parameter of the FINDMSGSTRING message contains{ENTER}
a pointer to a $tagFINDREPLACE structure. The "Flags" member of this structure indicates the event that caused the{ENTER}
message. Other members of the structure indicate the user's input.

The _WinAPI_FindText() uses an internal buffer to hold the string that the user typed in the "Find What" edit controls.
You can increase the size of this buffer by using the _WinAPI_SetFRBuffer() function. In addition to free the memory{ENTER}
allocated for the internal buffer, you must call the _WinAPI_FlushFRBuffer() in response to the FINDMSGSTRING{ENTER}
message with $FR_DIALOGTERM flag set.

 

I propose:

  Quote

 

Remarks

The _WinAPI_FindText() does not perform a search operation. Instead, the dialog box sends FINDMSGSTRING registered messages to the window procedure of the owner window of the dialog box.
 
Before calling _WinAPI_FindText(), you must call the _WinAPI_RegisterWindowMessage() function to get the identifier for the FINDMSGSTRING message.
The dialog box procedure uses this identifier to send messages when the user clicks the "Find Next" button, or when the dialog box is closing.
The "lParam" parameter of the FINDMSGSTRING message contains a pointer to a $tagFINDREPLACE structure. The "Flags" member of this structure indicates the event that caused the message.
Other members of the structure indicate the user's input.
 
The _WinAPI_FindText() uses an internal buffer to hold the string that the user typed in the "Find What" edit controls.
You can increase the size of this buffer by using the _WinAPI_SetFRBuffer() function. In addition to free the memory allocated for the internal buffer, you must call the _WinAPI_FlushFRBuffer() in response to the FINDMSGSTRING message with $FR_DIALOGTERM flag set.
 

 

Summary:

 
Currently, the formatting is applied to multiple files in both the "Remarks" and "Parameters" section.
 
As a result of this formatting when you try to change the window size of HelpFile, the text may look quite "messy" making it difficult to read and understand.

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

Fixed: Quite simple really.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
I know it's easy to change it.
But I mean a global, not just this one file (_WinAPI_FindTextDlg.txt).
 
That's why I wanted to draw attention to this problem, and obtain approval for the implementation of appropriate changes.

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 (edited)

Can't be done. I mean how am I suppose to know what the end of a sentence is? A . (period) isn't a good indicator for this. These changes are best for human intervention mlipok.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
I am aware that not everything can be automated.
I know that here can not do without tedious work.
 
But I understand that there is acceptance of such changes.

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

The best that can be done is just to report it.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 12/16/2013 at 11:37 PM, JohnOne said:

I think the all UDF _Array* functions should note either in description or remarks if they are for 1 dimensional arrays.

I thought they were clear already?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

 

  On 12/30/2013 at 12:02 AM, guinness said:

I thought they were clear already?

 

as it turns out not completely

 

 

  On 12/17/2013 at 1:58 AM, BrewManNH said:

Good point, most only mention the 1D part in the error message descriptions.

 

  On 12/17/2013 at 10:11 AM, mlipok said:

 

in ArraySort:

good example in syntax description:

 

in _ArrayToString

descripion only in Return Value

 

the same situation (incomplete description) in 

_ArrayAdd

_ArrayCombinations

_ArrayConcatenate

_ArrayDelete

_ArrayInsert

_ArrayMaxIndex

_ArrayMinIndex

_ArrayPermute

_ArrayPop

_ArrayPush

_ArrayReverse

_ArrayToString

_ArrayTrim

 

absence of any description, in 

_ArrayMax

_ArrayMin

_ArraySwap

_ArrayToClip

 

another example >> good description:

_ArrayBinarySearch

_ArrayDisplay

_ArrayFindAll

_ArraySearch

_ArraySort

_ArrayTranspose

_ArrayUnique

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

So it's just a case of changing to the description to say "blah blah in a 1D and 2D array"?

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