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 

SetKeyDelay+

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
David



Joined: 08 Aug 2004
Posts: 25
Location: Lubbock, Texas

PostPosted: Mon Sep 06, 2004 8:12 pm    Post subject: SetKeyDelay+ Reply with quote

This hotkey displays the age of the current Web page. Can anyone give me a clue as to why this code stops working if the SetKeyDelay command is uncommented?
Code:

   +^d:: ;SetKeyDelay, -1
         Send, !FOjavascript:alert('Page was last modified\n'{+}window.document.lastModified);{ENTER}
         Return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon Sep 06, 2004 10:05 pm    Post subject: Reply with quote

The first line of a multi-line hotkey should not occur on the same line as its label. This is because that mode is reserved for single-line hotkeys, which have an implicit return immediately after their first line.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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