Jump to content

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

a gaming script plz help


  • Please log in to reply
10 replies to this topic
badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

hellow i have the following script posted below

 

 

$e::
SetKeyDelay,
SetTimer, PressKey, %    (x := !x) ? "On" : "Off"
return



PressKey:
Send {1 down}{1 up}
sleep 80
send {2 down}{2 up}
sleep 80
send {3 down}{3 up}
sleep 80
Return

ok I'm trying to block the 3 from being sent for about 2 seconds when the function starts.

 

or in other words, when i press e, the 3 wont start sending until 2 seconds have passed.

 

thank you in advance for ur time :)

 



DarkVamprism
  • Members
  • 125 posts
  • Last active: Apr 25 2017 10:28 AM
  • Joined: 03 Sep 2009

Its people like you that makes me ignore the support section of this forum..... Are you even trying?
you litterally just have to change the number 80 to something else and you are done....

 

How about you stop being so lazy, here I'll start you off http://ahkscript.org...mands/Sleep.htm



badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

u have a lack of understanding of what i asked, and in addition ur also being negative about it,

 

I asked for the 3 to start sending after 2 seconds while 1 and 2 are being sent which means

 

the moment I press e, 1 and 2 will start sending at 80 miliseconds, and after 2 seconds have passed 3 will also start to be sent alongside the 1 and 2

 

so its slightly more complicated, if ur willing to help it would be much appreciated, and if not, plz, there's no need to discriminate, have a nice day



SpankZor
  • Members
  • 46 posts
  • Last active: Oct 06 2015 08:35 PM
  • Joined: 08 Feb 2013

You are posting in the wrong section

"DO NOT ASK QUESTIONS IN HERE!"

HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008
$e::
tick:=A_TickCount
SetTimer, PressKey, %    (x := !x) ? "On" : "Off"
return

PressKey:
Send {1 down}{1 up}
sleep 80
send {2 down}{2 up}
sleep 80
If (A_TickCount-tick>2000){
	send {3 down}{3 up}
	sleep 80
}
Return

You shouldn't need Send {1 down}{1 up}, you can simply do Send 1



badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

thx alot it is working ty for ur time and the code



badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

hey its working but I just realized something but first I would like to say that I'm greatful, its doing what its supposed to do what I asked for, but just one thing tho plz, can it reset when it turns off ?

 

like can the ticktime start over when i press e again so the operation could start over again, plz sorry should have mentioned this before



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

So you mean pressing e should not turn it off?



badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

no no pressing e again would turn it off, as the code has been written, its correct, i just want to add a reset, i want to restart the If

 

(A_TickCount-tick>2000){

when I press e again,

 

for example I press e it starts sending the 1 and 2, and after 2 seconds it starts sending the 3, and then I press e it stops, this has been achieved, what I want is, after it turns off, later when I press e again and turn it back on, just like the first time I pressed e the same thing happens,

 

 

now the current code, when I press e again​, the 3 gets send without the 2 seconds delay,



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

Tick is set whenever you press e, see last example.



badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

ye ur right it is working, sorry might have copied wrong, thank you for the code.