Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Opt command (delay)

Discussion on Opt command (delay) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 427
Received Thanks: 19
Opt command (delay)

Can someone check why $key3 isn't working properly...
Quote:
While 1
$msg = GUIGetMsg()

Select

Case $msg = $startbutton

$send1 = GUICtrlRead($key1)
$send2 = Guictrlread($key2)

$sleep1 = GUICtrlRead($time1)
AdlibRegister("_Send", $sleep1)

Case $msg = $Startbuff
$send1 = GUICtrlRead($key3)
Opt(GUICtrlRead($key3),5000)


Case $msg = $stopbutton
Exit
Case $msg = $GUI_EVENT_CLOSE
GUIDelete()
ExitLoop


EndSelect
WEnd
shad0wboss is offline  
Old 07/29/2011, 21:54   #2
 
elite*gold: 35
Join Date: Apr 2011
Posts: 800
Received Thanks: 214
Hmmm i'm pretty sure that you can't use Opt with "GuiCtrlRead(...)"
can you please tell me wath you tried there

Sry for my Engl i'm from Swizerland
.AppleTree. is offline  
Old 07/29/2011, 22:41   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 427
Received Thanks: 19
Quote:
Originally Posted by Creeper-Man View Post
Hmmm i'm pretty sure that you can't use Opt with "GuiCtrlRead(...)"
can you please tell me wath you tried there

Sry for my Engl i'm from Swizerland
haha i'm also from switzerland :P

anyways i tried to send $key3 after a delay of 5 seconds in a loop. But i want $key1 and $key2 to go every 0.5 seconds in a loop (unlimited)

Incase you speak French, J'ai essayé d'envoyer $key3 après un ****** de 5 secondes dans une boucle. Mais je veux $key1 et $key2 d'aller toutes les 0,5 secondes dans une boucle (illimité)
shad0wboss is offline  
Old 07/30/2011, 15:14   #4
 
elite*gold: 35
Join Date: Apr 2011
Posts: 800
Received Thanks: 214
huh and wath's inside of "_Send" i think i need the full script i cant help you with this part if you dont want to upload it for everyone you can send me a private message
.AppleTree. is offline  
Old 07/30/2011, 15:46   #5
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
you should try something like this:
Code:
Dim $key[3][2] = [['a', 0.5],['b',0.5],['c',5]]
Dim $timer[UBound($key)]

While 1
	For $i=0 To UBound($key)-1
		If TimerDiff($timer[$i])>=$key[$i][1]*1000 Then
			Send($key[$i][0])
			$timer[$i] = TimerInit()
		EndIf
	Next
WEnd
lolkop is offline  
Old 07/30/2011, 20:17   #6
 
elite*gold: 0
Join Date: Jun 2008
Posts: 427
Received Thanks: 19
Thanks a lot, i replaced "a" and "b" by the values i needed and it's working like a charm, thx a lot !
shad0wboss is offline  
Reply


Similar Threads Similar Threads
Command line interface working command
08/05/2012 - DarkOrbit - 27 Replies
I found only one working command: Enter "J" when you are in teleport Anyone know other commands?
SmartWHZ no delay is working i repeat No DELAY is Working!!!
09/17/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 61 Replies
dude i found out about the no delay that its working if u simply just turn it on ull get disconncted :( but theres a trick after turning it on turn it of right away there u are its working all ready but once u already turned it on and off u cant turn it off unless you log out :( its very usefull in horror mod pls press thnks
0 delay
02/16/2010 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies
Hey Leute habt ihr einen funktionirenden o delay hack? wäre nett wen ihr mir helfen könntet ..



All times are GMT +1. The time now is 17:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.