Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Send, {Sleep 100} or Send, {100ms}


  • Please log in to reply
50 replies to this topic
  • Guests
  • Last active:
  • Joined: --

::ty::{"Thank You"}

you can just as easily use a function like Clip() for that
::ty::
	Clip("Thank You") ; http://www.autohotkey.com/community/viewtopic.php?t=75550
Return


Philister
  • Members
  • 57 posts
  • Last active: Sep 27 2016 08:10 PM
  • Joined: 12 Feb 2012
If AHK were re-designed from scratch I'd be all for making '$' mode the standard for all hotkeys and requiring a special prefix in case someone really wants their hotkey to be triggered artificially, which should be rather rare (thus far never once for me personally - I prefix all my hotkeys with '$' by default). But I guess not wanting to break any existing scripts rules supreme again.

HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008
You can simply use hook so you don't need a $ in front of each hotkey.
#UseHook

Also can you try using AutoHotkey_H (exe), it looks like it has not got that problem but I am not sure why :shock:

  • Guests
  • Last active:
  • Joined: --
And in AutoHotkey_L there is <!-- m -->http://l.autohotkey....ndLevel.htm<!-- m -->

Philister
  • Members
  • 57 posts
  • Last active: Sep 27 2016 08:10 PM
  • Joined: 12 Feb 2012

Yes, these options do exist, but my point was that the case that someone wants one hotkey to trigger another via a Send command (when they could in most cases do this programmatically anyway - e.g. via GoSub) is probably so exceedingly rare that having this rare case as the default behaviour seems like a poor design decision. I'm sure the number of cases where hotkeys are triggered involuntarily ( i.e. newbies learning this the hard way) outweighs the number of intended cases by a vast amount.

 

Also, reversing the default behaviour would eliminate problems for people who want to use more than one software (think macro recorders etc.) to virtually send keys - see this thread: http://www.autohotke...other-software/

 

But coming back to the original point of this thread: Any chance a sleep token could be integrated into the Send command syntax?

 

Thanks.



HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

In AHK_H it is already implemented.

Send a{1000}b{900}c{800}d{700}e{600}f{500}g{400}h{300}i{200}j{100}k