Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Random Sleep Times?


  • Please log in to reply
20 replies to this topic
Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
With the tilde means it just listens for the key and react. By (no tilde) default it also blocks the key from other windows. So LButton::return would stop the left button from working.

To have multiple hotkeys do one action stack them.
a::
b::
c::
Msgbox
return

aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

rokabud
  • Guests
  • Last active:
  • Joined: --
Thanks, the tilde will come in handy =D

One more thing. I want some keys to still do their function when a modifier is held. Is there a way to modify that specific key's script to do that or do I have to make a new one with the modifier included?

  • Guests
  • Last active:
  • Joined: --
Also, what if I wanted to have the tilde perform an action? How would I get around its function within AHK?

  • Guests
  • Last active:
  • Joined: --

Thanks, the tilde will come in handy =D

One more thing. I want some keys to still do their function when a modifier is held. Is there a way to modify that specific key's script to do that or do I have to make a new one with the modifier included?


Err let me clarify:

If I'm holding one I want it to spam one, like the scripts earlier ITT
But if I'm holding Alt and 1, I want it to spam Alt and 1

  • Guests
  • Last active:
  • Joined: --
Update:

I found out how to make the tilde a hotkey:

$`::
While GetKeyState("``", "P")
{
Send ``
RandomSleep(100,1250)
}
return

AND, I found out how to have separate hotkeys for keys alone and keys with modifiers:

$!1::
While GetKeyState("Alt", "P")
While GetKeyState("1", "P")
{
Send !1
RandomSleep(100,125)
}
return

Please tell me if either of these can be written better. TY!

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Read. The * modifier and {blind} will help you out