Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:01

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

Advertisement



AutoIT Problem

Discussion on AutoIT Problem within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
Xereon's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
AutoIT Problem

Edit: Problem hat sich gelöst


Also folgendes:
Ich will ein Teeworlds Emote Bot scripten(ein bot der die ganze zeitEemotes spamt) und ihn später eventuell auch ausbauen(instant messages auf shortkey usw.).
Das Grundscript an sich ist fertig und läuft eigentlich auch fehlerfrei.
Doch wenn ich jetz 1mal den Bot gestartet habe und wieder beendet reagiert die Mainwhile für das GUI auf kein Ereigniss mehr(man kann also nicht nocheinmal starten, kein delay ändern oder sont etwas).

Hab schon alles probiert und hoffe jetz das ihr mir helfen könnt:

Code:
Func Mainscript()
$msg = GUIGetMsg()	
	Select
		Case $msg = $GUI_EVENT_CLOSE
				ExitLoop
		Case $msg = $delaysetgui 
				$delay = GUICtrlRead($delaygui)
				GUICtrlDelete ($delayinfo)
				$delayinfo = GUICtrlCreateLabel ("Delay: " & $delay & " ms",260,15)
		Case $msg = $startGUI
				If $delay > 0 Then
				GUICtrlSetState ($stopGUI,$GUI_ENABLE)
				GUICtrlSetState ($startGUI,$GUI_DISABLE)
						For $i = 3 To 10 Step 1							
							$msg2 = GUIGetMsg()
							If $msg2 = $stopGUI Then
								GUICtrlSetState ($startGUI,$GUI_ENABLE)
								GUICtrlSetState ($stopGUI,$GUI_DISABLE)	
								$i = 10
							EndIf
							If $i = 10 Then
								$i = 3
							EndIf
							Select
							Case $i = 3	
							Send ("{F3}")
							Sleep($delay)
							Case $i = 4	
							Send ("{F4}")
							Sleep($delay)
							Case $i = 5
							Send ("{F5}")
							Sleep($delay)
							Case $i = 6	
							Send ("{F6}")
							Sleep($delay)
							Case $i = 7	
							Send ("{F7}")
							Sleep($delay)
							Case $i = 8	
							Send ("{F8}")
							Sleep($delay)
							Case $i = 9	
							Send ("{F9}")
							Sleep($delay)
							EndSelect
						Next
				Else
					MsgBox (-1,"Delay Error","Please enter a delay")						
				EndIf
		EndSelect
EndFunc
Sorry wenn keine Comments drin sind, aber so bin ich nunmal xD
Xereon is offline  
Old 05/15/2009, 14:45   #2
 
elite*gold: 120
Join Date: Mar 2007
Posts: 392
Received Thanks: 406
post kompletten code ma
Pblx is offline  
Old 07/06/2009, 07:33   #3
 
jxsl13's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 21
Received Thanks: 38
Cool

würd ich auch ma sagen , weil man ja nicht sehen kann wohin welche variablen bzw. wohin welche funktionen hinführen .

erst danken dann tun...............

und meistens zeigt dir scite , wo der fehler liegt.......
jxsl13 is offline  
Old 04/05/2011, 18:18   #4
 
elite*gold: 0
Join Date: Sep 2010
Posts: 2
Received Thanks: 0
kannste den auch für mac coden?:O ich habe mac aber krieg kein spinbot...nix weils des für mac net gibt -.-
mfg
^^^_ is offline  
Old 04/09/2011, 21:44   #5

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Adroxxx is offline  
Closed Thread




All times are GMT +1. The time now is 16:02.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.