Jump to content

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

A multiple hotkeys dont work well!


  • Please log in to reply
2 replies to this topic
toylips
  • Members
  • 2 posts
  • Last active: Jan 25 2015 12:02 PM
  • Joined: 22 Jan 2015
z::
IfWinNotExist, YouTube - Google Chrome
{
	Run, "https://www.youtube.com/"
}
Sleep, 6000
IfWinExist, YouTube - Google Chrome
{
	WinActivate
	WinMaximize 
}
return

x::
ArrayCounts = 0
Loop, Read, C:\work\PR\BestStreamers500.txt 
{
    ArrayCounts += 1 
    Array%ArrayCounts% := A_LoopReadLine 
}
Random, MyIndex, 2, %ArrayCounts%

element := Array%MyIndex%
SendInput {raw}%element%
return	


c::
ArrayCount = 0
Loop, Read, C:\work\PR\TOP100funniest.txt 
{
    ArrayCount += 1 
    NewArray%ArrayCount% := A_LoopReadLine 
}
Random, MyIndex, 2, %ArrayCount%

newElement := NewArray%MyIndex%
SendInput {raw}%newElement%
return	

if I press multiple times one of this hotkey, this is lunch all of it! Help pls  :S



girlgamer
  • Moderators
  • 3263 posts
  • Last active: Feb 01 2015 09:49 AM
  • Joined: 04 Jun 2010

One way to help that is to use the Suspend command to block other hotkeys from running while a critical one is in operation. Another option

is to use the $ modifier on the hotkey  to prevent the key from triggering itself. In my games scripts i often use both methods.


The universe is a wondrous place! The faster you create unbreakable code, the faster the universe creates people that can break it. All scripting follows the rule Rule Of Twos -- 1) Good, 2) Fast 3) Cheap -- pick any Two.
I guarantee absolutely nothing about any code I provide except that it works in my machine. ‚óŹ
MMO Fighter   KeyLooperDemo   Key Spammer   TinyClickRecorder  GGs Password Generator.ahk
For the newest version of AutoHotkey and some killer scripts go here.
Rock-on%20kitten.gif


toylips
  • Members
  • 2 posts
  • Last active: Jan 25 2015 12:02 PM
  • Joined: 22 Jan 2015

I'm just type plus one hotkey "#" like #z:: and it is help. But I don't understand why previous script not working ). Thx a lot! :)