AutoHotkey Community

It is currently May 27th, 2012, 10:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13
Author Message
 Post subject:
PostPosted: January 22nd, 2012, 7:10 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Anonymous wrote:
People want to remove , on a regular basis in Ask for Help, a small example wouldn't hurt anybody.
links?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2012, 8:46 pm 
nimda wrote:
links?
here is one http://www.autohotkey.com/forum/topic80428.html
(not going to look up more but I've answered it a few times)


Report this post
Top
  
Reply with quote  
PostPosted: January 30th, 2012, 1:27 am 
Offline

Joined: January 30th, 2012, 1:01 am
Posts: 1
Using AutoHotkey 1.1.05.06 I find that URLDownloadToFile works as it should, but UrlDownloadToFile does not. The difference is "Url" vs "URL" at the beginning of the command.

I note that the AutoHotkey_L Help file uses "UrlDownloadToFile" to describe the command.

Please confirm the validity of my assertion. And, if so, perhaps the differences between the old and new versions could be pointed out...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2012, 9:03 am 
Offline

Joined: December 2nd, 2010, 11:14 pm
Posts: 214
Location: Poland
It could be worth adding those two sentences to the EnvSub doc page (to the TimeUnits description):
Quote:
If present, this parameter directs the command to subtract Value from Var as though both of them are date-time stamps in the YYYYMMDDHH24MISS format. After the subtraction of two dates, the result is a time period. Time period in TimeUnits. TimeUnits can be either Seconds, Minutes [..]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 30th, 2012, 10:32 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
theoa wrote:
Using AutoHotkey 1.1.05.06 I find that URLDownloadToFile works as it should, but UrlDownloadToFile does not.
Command names are not case sensitive. If you can confirm that changing "Url" to "URL" makes it work and changing it back to "Url" breaks it, please post your code in a new topic in the Bug Reports forum.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 6:34 am 
Offline

Joined: December 2nd, 2010, 11:14 pm
Posts: 214
Location: Poland
Shouldn't there be `n`n and `n instead of `r`n`r`n and `r`n in the following example from the documentation?: (I remember I've read somewhere in the documentation that all `r`n are replaced with `n if text inside variable).
Code:
; Remove all blank lines from the text in a variable:
Loop
{
    StringReplace, MyString, MyString, `r`n`r`n, `r`n, UseErrorLevel
    if ErrorLevel = 0  ; No more replacements needed.
        break
}

Example:
Code:
; Remove all blank lines from the text in a variable:
MyString =
(
line1


line2
)
MsgBox, % MyString
Loop
{
    StringReplace, MyString, MyString, `n`n, `n, UseErrorLevel ; works
    ;StringReplace, MyString, MyString, `r`n`r`n, `r`n, UseErrorLevel ; fails
    if ErrorLevel = 0  ; No more replacements needed.
        break
}
MsgBox, % MyString

return


link: http://www.autohotkey.com/docs/commands ... eplace.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2012, 7:05 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
That applies to continuation sections with the default Join setting. Text retrieved with FileRead, ControlGetText or by other means may contain `r`n.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2012, 7:02 am 
Offline

Joined: December 2nd, 2010, 11:14 pm
Posts: 214
Location: Poland
Uh, ok, my bad :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2012, 11:37 pm 
Offline

Joined: December 2nd, 2010, 11:14 pm
Posts: 214
Location: Poland
Quote:
The commands #NoTrayIcon and "Menu, Tray, ShowMainWindow" affect the behavior of compiled scripts.

http://www.autohotkey.com/docs/Scripts.htm#ahk2exe
There is no 'ShowMainWindow' command, I guess there should be a '[no]MainWindow' instead.
//edit: this is also present in the ahkL documentation: http://l.autohotkey.net/file/users/Memb ... cripts.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 28th, 2012, 11:34 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
SysGet wrote:
86    SM_TABLETPC: Nonzero if the current operating system is the Windows XP Tablet PC edition, zero if not.

According to MSDN, this also returns true in specific cases when running Windows Vista. I assume the SysGet documentation was written before Windows Vista, so should the documentation be updated?

There is also a bad link from the commands page to URLDownloadToFile. URLDownloadToFile points to here, which is nothing but an error page. If one knows the structure of the docs website, URLDownloadToFile can still be accessed.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 23rd, 2012, 8:28 pm 
Offline

Joined: February 12th, 2012, 8:53 am
Posts: 21
The help page for "KeyWait" should point out that (on USB keyboards only?) for the Apps_ and Media you need to wait for the logical state of the key instead of the physical state (i.e. use the L option). See this thread: http://www.autohotkey.com/forum/topic83600.html.

Also, the page for "Suspend" should cover or point to how to suspend hotkeys from all / multiple scripts at once. See http://www.autohotkey.com/forum/topic83129.html.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 20th, 2012, 1:07 am 
Offline
User avatar

Joined: November 19th, 2010, 3:12 pm
Posts: 787
Location: At my computer
I notice that the Blocks section:
http://www.autohotkey.com/docs/commands/Block.htm
Mentions that braces are often used with functions, and that the Functions section shows examples which use braces:
http://www.autohotkey.com/docs/Functions.htm
But neither section explicitly states that a function REQUIRES the use of braces.

I see where this would not matter to most users but to a newbie it could be frustrating to create a function without braces and not be able to tell from the function help why it does not work.

_________________
"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

My personal site


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 ... 9, 10, 11, 12, 13

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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