Heresiarch Guild: AHK Improvement - Heresiarch Guild

Jump to content

Page 1 of 1

AHK Improvement

#1 User is offline   Deceax 

  • Not as good as Sobe, possibly better than Gunther
  • PipPip
  • Group: Members
  • Posts: 1,161
  • Joined: 19-December 09
  • Gender:Male
  • Location:Atlanta, GA

Posted 01 June 2010 - 10:23 PM

I was getting tired of accidentally typing 1111111111111111111111 instead of 1 in chat so I modified my AHK script so it toggles the key repeat each time you press enter. So when you press "Enter" to type it will deactivate the hotkey and then reactivate it when you press "Enter" again. I tested it briefly tonight after I wrote it and it seemed to be working ok.
repeat = true

#ifWinActive World of Warcraft
{
	$Enter::
	{
		repeat := ~repeat
		Send {Enter}
		return
	}
	$1::
	{
		Send 1
		if repeat
		{
			Loop
			{
				if not GetKeyState("1","P")
					break
				Send 1
				sleep 0
			}
		}
		return
	}
	$2::
	{
		Send 2
		if repeat
		{
			Loop
			{
				if not GetKeyState("2","P")
					break
				Send 2
				sleep 0
			}
		}
		return
	}
}

"Hey yo I'm gonna be on ti dop that's all my eyes can see
Victory is mine yeah surprisingly
I've been laying waiting for your next mistake
I put in work and watch my status escalate" - Gang Starr
0

#2 User is offline   Voodie 

  • Guild Furry
  • PipPip
  • Group: Members
  • Posts: 456
  • Joined: 17-January 10
  • Gender:Female
  • Location:Whitewater, WI

Posted 02 June 2010 - 01:32 PM

I <3 you.
Posted Image
0

#3 User is offline   Charlagain 

  • Member
  • PipPip
  • Group: Members
  • Posts: 245
  • Joined: 18-August 09
  • Gender:Male
  • Location:Loudoun County, VA

Posted 02 June 2010 - 05:43 PM

She meant to say she <33333333333333333333333 you.
When all is said and done....
there's usually more said than done.
0

Share this topic:


Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users