AutoHotkey Community

It is currently May 26th, 2012, 8:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 13  Next
Author Message
 Post subject:
PostPosted: June 2nd, 2009, 10:31 pm 
Offline

Joined: March 24th, 2004, 2:34 pm
Posts: 299
I have found some minor typos in the Help file. I try to wait a few weeks and find several typos before posting. I think it would be a nuisance to post every time I find one. Here are five of them:

In the following list, I use the abbreviations "s.b." to mean "should be". I hope you can find all the following OK and that you can follow my meaning as to what is the problem and what is the solution.

------------------------------------------------------------------------------------

Functions - Builtin Functions - Substr - "Length is the maximum number of characters to retrieve (fewer than the maximum are retrieved whenever the remaining part of the string too short)." ... s.b. "of the string is too short)."

Variables and Expressions - Variable Types (very near top of section) - However, a variable containing only digits (with an optional decimal point) is automatically interpreted a number when a math operation or comparison requires it. ... s.b. "interpreted as a number"

also - (with an optional decimal point) ... sb ... (with an optional decimal point and/or minus sign) ? (I'm not sure if this is correct or not)

RegExMatch - Parameters - NeedleRegEx - followed by an close-parenthesis - s.b. "followed by a close parenthesis"

alphabetic list of commands - #winactivate force - "of of" s.b. "of".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2009, 10:32 pm 
Offline

Joined: March 24th, 2004, 2:34 pm
Posts: 299
The command SetTimer is listed under "Flow of Control" as well as "Misc Commands" under the Contents tab of the Help file.

I don't know if this might be an error or not. But I don't see any other commands listed in more than one category.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2009, 10:38 pm 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
Missing i in classified, in the last sentence of the first paragraph of the entry for A-Cursor.

Quote:
The hand-shaped cursors (pointing and grabbing) are classified as Unknown.

________
DC MARIJUANA DISPENSARIES


Last edited by lilalurl.T32 on February 11th, 2011, 10:07 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2009, 2:15 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Exit

Is:
"Exits the current thread or (if the script is not persistent contains no hotkeys) the entire script."

Should be:
"Exits the current thread or (if the script is not persistent & contains no hotkeys) the entire script"



Also: Why not rid the trailing "." at end of lines/paragraphs? (at least for these description lines) --> It would look a bit better (i tend to avoid using "." whenever possible, leaving it to the realm of books/newspapers/etc !)
Anyway, you know that you have reached the end of the line/paragragh by way of the "EoL marker" (= <nothing>), so having the "." there as well is unecessary duplication of the EoL marker (like having CR/LF + TAB to mark end of file lines!) :)

Code:
By "lines/paragraphs" I meant omitting . at end of single sentences, & at end paragraphs (last sentence):
A single sentence
             (no .)
A single sentence. Another single sentence. Yet another single sentence
                (.)                      (.)                       (no .)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2009, 3:32 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Critical

Is:
Critical [, Off]
Critical 50 ; See bottom of remarks.

Should be:
Critical [, On|Off]
Critical MessageCheckInterval ; See bottom of remarks


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 22nd, 2009, 8:11 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Perhaps add a short note about different keyboard layouts on these two pages:

http://www.autohotkey.com/docs/Hotkeys.htm
http://www.autohotkey.com/docs/Tutorial.htm

As some users may expect a simple #z to work while it generates an "Error: invalid hotkey" which may confuse a new scripter

See http://www.autohotkey.com/forum/viewtopic.php?t=46711

Edit: updated link

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Last edited by SoLong&Thx4AllTheFish on August 18th, 2009, 6:39 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2009, 4:37 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
Quote:
If this is the letter A and the next 3 parameters are omitted, the active window will be used.

The above seems to apply to any command which accepts a window title, but the documention fails to mention it for several commands.

WinGet - Why?

WinActivate and WinActivateBottom - OK, there probably isn't any conceivable use for activating the active window.

WinShow, WinWait, IfWin and variations - If DetectHiddenWindows is Off, WinWaitClose or WinWaitNotActive can be used to wait for a hidden window to become active, while WinWait or WinWaitActive can be used to wait for a visible window to become active. Similarly, IfWin can be used to determine whether the active window is visible. One common example of a hidden active window: whenever a popup menu is shown, the window which owns it is activated. AutoHotkey's menus and all other tray icon menus I've tested are owned by hidden windows.

More importantly, WinActive() and WinExist() are often used to retrieve the ID of the active window. However, their sections in the documentation link to IfWinActive and IfWinExist, which do not mention "A". The following thread prompted my post: WinGetActiveID?.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 4th, 2009, 4:23 am 
Offline

Joined: August 2nd, 2009, 6:40 am
Posts: 215
Can Rajat's updated messages.txt be added to the AutoHotkey.CHM?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 11:35 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
variables, MAIN wrote:
Variable names may be up to 254 characters long
Is this really correct? MAX_VAR_NAME_LENGTH is defined as (UCHAR_MAX - 2), i.e. 253.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2009, 2:59 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
The default values for SetKeyDelay are listed near the bottom of it's documentation. I think most people would expect this information to be listed in the parameter descriptions, especially since this command's defaults affect other commands.

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2009, 3:03 pm 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
Lexikos: you are correct, running the following test script, one sees that it fails at 254 characters, so the max is actually 253 characters:
Code:
loop
{
   ToolTip, Trying length: %A_Index%
   nam .= "a"
   %nam% := "Testing " A_Index
}

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 22nd, 2009, 7:29 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
Quote:
When the Gui Submit command is used, the control's associated output variable (if any) receives the hotkey modifiers and name, which are be compatible with the Hotkey command.
Source: GUI Control Types


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 1st, 2009, 9:20 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
Sort should say wrote:
U: (snip) If the either Random or Foptions are in effect, duplicates are removed only if they appear adjacent to each other as a result of the sort. For example, when "A|B|A" is sorted randomly, the result could contain either one or two A's.



Topic

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2009, 11:56 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for all the corrections and suggestions. I have made almost all these changes, though a few I didn't apply because the current method seems slightly better.

Lexikos wrote:
WinActive() and WinExist() are often used to retrieve the ID of the active window. However, their sections in the documentation link to IfWinActive and IfWinExist, which do not mention "A". The following thread prompted my post: WinGetActiveID?.
I've added the missing text to IfWinExist, and also mentioned WinExist("A") in the WinActive() section. Thanks.

Lexikos wrote:
WinShow, WinWait, IfWin and variations - If DetectHiddenWindows is Off, WinWaitClose or WinWaitNotActive can be used to wait for a hidden window to become active, while WinWait or WinWaitActive can be used to wait for a visible window to become active. Similarly, IfWin can be used to determine whether the active window is visible. One common example of a hidden active window: whenever a popup menu is shown, the window which owns it is activated. AutoHotkey's menus and all other tray icon menus I've tested are owned by hidden windows.
I can see that mentioning WinTitle "A" in those sections would improve completeness and accuracy. However, since working with an active window that is hidden seems very rare, maybe mentioning "A" would be more distracting than it's worth. I'm not sure.

Crash&Burn wrote:
Can Rajat's updated messages.txt be added to the AutoHotkey.CHM?
Maybe it's best that the list omit really obscure messages that are unlikely to be used by any scripts, especially if there are dozens or hundreds of obscure messages currently missing. For the more common messages that are missing, if someone would like to update the current list, it is at www.autohotkey.com/docs/misc/SendMessageList.htm

Thanks again for all the corrections and improvements. More are welcome anytime.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2009, 3:37 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
The documentation for A_EndChar notes that it only applies to non-auto-replace hotstrings. For consistency, A_ThisHotkey should have the same note.

EDIT: ...unless it's an easy fix to make, but that's an item for the Wish List. :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group