Jump to content

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

Duplicate hotkeys



  • Please log in to reply
1 reply to this topic
sjozwiuk
  • Members
  • 2 posts
  • Last active: Mar 25 2013 01:33 PM
  • Joined: 25 Mar 2013

This is my first script:

 

N=3
MIN=1
MAX=3

w::
While GetKeyState("w")
{
Random ResultList, %MIN%, %MAX%
Send %ResultList%
Loop % N - 1
{
        Random, time, 3, 8
        Sleep, %time%
	Loop
	{
		Random Result, %MIN%, %MAX%
		If Result not in %ResultList%
		Break
	}
ResultList = %ResultList%,%Result%
Send %Result%
}
;Send %ResultList%
Random, time, 28, 60
Sleep, %time%
}
KeyWait, w

e::
Send 4

F12::
Suspend

I don't have any idea why pressing "w" I get at least "4" and suspend AHK.

 

Please help



sjozwiuk
  • Members
  • 2 posts
  • Last active: Mar 25 2013 01:33 PM
  • Joined: 25 Mar 2013
✓  Best Answer

just realized that i missed "return" at the end of each script