Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:45

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

Advertisement



Autoit Counter ControlSend und Variable?

Discussion on Autoit Counter ControlSend und Variable? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 21
Received Thanks: 1
Autoit Counter ControlSend und Variable?

Hey Ho!

ich habe mir überlegt einne kleinen Counter, der in einer txt eine Zahl hochzählt bei Tastendruck. Mein Problem ist, dass immer wenn ich das ganze mit meiner Variable starte nichts passiert. Das Editor Fenster heisst Counter. Ohne Variable funktioniert auch alles. Hier der Code:

Code:
HotKeySet("{Esc}","ende")
HotKeySet("{0}","add")

While 1
	Sleep(10)
WEnd

Global $anzahl2 = 0
Global $anzahl3 = $anzahl2 + 1

Func add()
$Handle = WinGetHandle ("Counter - Editor")
ControlSend ($Handle, "", 15, "{backspace}")
ControlSend ($Handle, "", 15, $anzahl3)
EndFunc

Func ende()
 Exit
EndFunc
Die Fehlermeldung:
C:\Users\SHI\Desktop\test\Counter.au3 (15) : ==> Variable used without being declared.:
ControlSend ($Handle, "", 15, $anzahl3)
ControlSend ($Handle, "", 15, ^ ERROR
->17:24:47 AutoIT3.exe ended.rc:1
Spodes is offline  
Old 05/23/2013, 18:57   #2
 
WJNeeson's Avatar
 
elite*gold: 1445
Join Date: Sep 2011
Posts: 199
Received Thanks: 177
Variable used without being declared.

Die Variablen sind nicht definiert, da sie zwischen der While-Schleife und den Funktionen stehen.
WJNeeson is offline  
Thanks
1 User
Old 05/24/2013, 21:16   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 21
Received Thanks: 1
Quote:
Originally Posted by #System View Post
Variable used without being declared.

Die Variablen sind nicht definiert, da sie zwischen der While-Schleife und den Funktionen stehen.
MAN! Ich bin ja auch n Dussel :P Dankeschön
Spodes is offline  
Reply


Similar Threads Similar Threads
ControlSend Autoit
07/17/2017 - AutoIt - 6 Replies
Hallo! Ich habe eine Frage zu AutoIt ich möchte,dass ControlSend länger GEDRÜCKT gehalten wird.. #RequireAdmin sleep(1500) While 1 ControlSend("4Story","", "","w") ControlSend("4Story",""," ;","w")
Autoit Controlsend bei Metin2
01/19/2013 - AutoIt - 5 Replies
Tag, es ist bekannt, dass ControlSend bei Metin2 nicht geht. Jedoch gibt es Hackshield bypass, und ich wollte fragen, ob es mit einem Bypass funzt? :D (ControlSend wird ja vom hackshield geblockt)
AutoIt ControlSend
06/07/2011 - AutoIt - 7 Replies
Hey, ich habe eine Frage. Wie heißt dieses Fenster? Also mit welchem Code sendet AutoIt mit ControlSend nur zu diesem Fenster? http://img4.fotos-hochladen.net/uploads/untitled2 57zcao9nuk.png Wäre nett wenn ihr mir helfen könntet. :)
Bot autoit Controlsend
03/20/2009 - AutoIt - 0 Replies
ICh hab vor kurzem für ein kleineres onlinespiel namens StoneAge2 mit Autoit einen bot geschrieben, der im Prinzip nichts anderes tut als auf und ab zu laufen und mit einem Rechtsklick den letzten angriff zu wiederholen. Jetzt woltle ich das ganze im hintergrund Ablaufen lassen und habe es mit Controlsend versucht. Hiermit funktioniert das laufen aber nicht mehr, dhBefehle wie I: INventar funktionieren senden aber auf {UP} {DOWN} reagiert er einfach nicht. Das selbe ist mir früher schon einmal...
AutoIt-ControlSend
02/05/2009 - General Coding - 2 Replies
Hallo! ich möchte dass mein scrip z.B. "hallo" in ein miniemiertes fenster sendet. das muss ich dann doch mit controlsend machen oder? $client = "Unbenannt - Editor" ControlSend($client, "", "", "hallo") das funktioniert jetzt aber irgendwie nich:confused: mache ich da iwas falsch???



All times are GMT +1. The time now is 23:46.


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.