AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Suggestions on documentation improvements
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sat Jun 02, 2007 8:31 pm    Post subject: Reply with quote

engunneer wrote:
minor typo - key list - special keys section
detectible -> detectable
Surprisingly, both spellings are considered valid.
Back to top
View user's profile Send private message Send e-mail
svi



Joined: 09 Oct 2006
Posts: 117
Location: Finland

PostPosted: Tue Jun 05, 2007 8:16 pm    Post subject: Reply with quote

Earlier in this thread mentioned: (regarding placement)
Quote:
The first comma of any command may be omitted.
is a bit false.

If the first parameter is omitted, a comma is naturally required:

Code:
WinGetPos X, Y, , , Untitled
works, but
Code:
WinGetPos , Y, , , Untitled
doesn't.

I once fell into this trap, but I'm not sure if it should be mentioned in the documentation ; a delight to learn should be preserved ...
_________________
Pekka Vartto
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jun 06, 2007 1:18 am    Post subject: Reply with quote

I see your point; but maybe the current wording is better because it avoids the complexity of describing the exception. Also, the exception seems somewhat self-evident. I'm not sure.
Back to top
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Wed Jun 06, 2007 9:47 am    Post subject: Reply with quote

Chris wrote:
Also, the exception seems somewhat self-evident.
Uh, no... But indeed, a good concise formulation isn't obvious. I came up with:
The comma between the command name and the first parameter, if non empty, can be omitted.
Or, to preserve original sentence:
The first comma of any command may be omitted. Except if the first parameter is empty.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on Wed Jun 06, 2007 1:09 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jun 06, 2007 1:08 pm    Post subject: Reply with quote

Thanks. I've amended the wording.
Back to top
View user's profile Send private message Send e-mail
Stefan



Joined: 30 Jul 2004
Posts: 72
Location: Deutschland (sorry for my english)

PostPosted: Sat Jun 09, 2007 10:15 pm    Post subject: Reply with quote

Help about "Send"

I have missed the info that the %-char must be quoted/escaped and how.

Maybe there should be an quick info
about such special chars in the SEND-help
and that the `-char is Alt+96
and maybe an link to "EscapeChars" in the "Related" section?

------------------------------------------------------------------------
Related
SendMode, SetKeyDelay, SetStoreCapslockMode, EscapeChars, ControlSend, BlockInput, Hotstrings, WinActivate
------------------------------------------------------------------------

--

Thanks to engunneer for pointing me to this thread.
_________________
Stefan

This post was created with the kindly help of http://dict.leo.org/ and remember: “Allways look on the bright side of Life”
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sun Jun 10, 2007 10:40 pm    Post subject: Reply with quote

Thanks; I've added "Escape sequences (e.g. `%)" to the "related" section.
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Mon Jun 11, 2007 1:59 am    Post subject: Reply with quote

Register Callback wrote:
An integer between 0 and 4294967296 that FunctionName will see in A_EventInfo whenever it is called via this Address. This is useful when FunctionName is called by more than one Address. If omitted, it defaults to Address. Note: Unlike global other settings, the current thread's A_EventInfo is not disturbed by the fast mode.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Jun 11, 2007 4:00 am    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message Send e-mail
Fuco



Joined: 21 Mar 2006
Posts: 49
Location: Slovakia, Europe :)

PostPosted: Tue Jun 26, 2007 11:44 pm    Post subject: Reply with quote

I had a realy hard problem with this.

Suspend command wrote:
Any hotkey subroutine whose first line is Suspend (except "Suspend On") will be exempt from suspension. In other words, the hotkey will remain enabled even while suspension is ON. This allows suspension to be turned off via such a hotkey.


It says that first line should be suspend, my code was something like this

Code:
labelofhotkey:
{            ; because of some reason, this is first line :O
suspend  ; this should be the first line of subroutine...but it isnt :(
...
...
}


There should be said, that { and } are taken as "lines" ( which thay aint imo ), because I and also lot of ppl like using of { } to make code nicer Smile and so can experience this problem.

Or there is second and harder option, and thats modifying "syntax" or whatever so it accept also this situation.
_________________
RegExReplace("C:\Program Files\AutoHotkey", "(^C)(?=\W).{4}((?i)[GOD])\w{1,4}\s(\D)(?:\w+)*\\(?3)(u|o).*?(k).*" , "$3$4$l1$5$2")
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jun 27, 2007 10:57 am    Post subject: Reply with quote

Braces were never intended to be used at the beginning and end of subroutines. However, I"ve clarified it slightly via "Any hotkey subroutine whose very first line is Suspend..."

Although more explicit wording could be added, I think it would be more distracting than it's worth because the wording is already a bit complicated.

Thanks.
Back to top
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Tue Jul 10, 2007 11:08 pm    Post subject: Reply with quote

Built-in Functions wrote:

<snip>
WinActive(WinTitle [, WinText, ExcludeTitle, ExcludeText])
<snip>
WinExist(WinTitle [, WinText, ExcludeTitle, ExcludeText])
<snip>


should be
Built-in Functions wrote:

<snip>
WinActive([WinTitle , WinText, ExcludeTitle, ExcludeText])
<snip>
WinExist([WinTitle , WinText, ExcludeTitle, ExcludeText])
<snip>

_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Tue Jul 10, 2007 11:27 pm    Post subject: Reply with quote

Just a minor typo I noticed

Progress wrote:
; Here is a working example that demonstrates how a Progress window can be
; overlayed on a SplashImage to make a professional looking Installer screen:
IfExist, C:\WINDOWS\system32\ntimage.gif, SplashImage, %A_WinDir%\system32\ntimage.gif, A,,, Installation
Loop, %A_WinDir%\system32\*.*
{
Progress, %a_index%, %a_loopfilename%, Installing..., Draft Installtion
Sleep, 50
if a_index = 100
break
}
; There is similar example at the bottom of the GUI page. Its advantage is that it uses only a single
; window and it gives you more control over window layout.

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jul 11, 2007 2:34 am    Post subject: Reply with quote

Thanks; the items in the two posts above have been corrected.
Back to top
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Wed Jul 11, 2007 3:43 am    Post subject: Reply with quote

thanks for having a good place to suggest these changes.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group