Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:02

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

Advertisement



Script problem

Discussion on Script problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
HaseHarry's Avatar
 
elite*gold: 58
Join Date: Oct 2008
Posts: 535
Received Thanks: 117
Script problem

hi..
ich wollte mir nen bot für nostale schreiben... doch i.wo haperts da bei mir bzw autoit will das ding nich so wirklich ausführen und gibt mir folgenden fehler:
Er sagt:Variable used without being declared ( zeile 49)
deutsch: Variable verwendet, ohne dass erklärt

hier mal mein script:

Quote:
AutoItSetOption("WinTitleMatchMode", 4)
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$zeitLeveln = InputBox("Frage?", "Wielange Leveln bis geschlafen wird? (zeit in Millisekunden)")
$zeitSchlafen = InputBox("Frage?", "Wielange soll geschlafen werden? (zeit in Millisekunden)")
$Sammelkey = InputBox("Frage?", "Welches ist deine taste zum Aufsammeln?")
$timer1 = TimerInit()
$windowname = "NosTale"
$handle = WinGetHandle($windowname, "")
If @error Then
MsgBox(4096, "Error", "Fenster konnte nicht gefunden werden")
Else
While 1
If(isSleepTime()) Then
Schlafen ()

EndIf
Attack()
Loot()
Sleep (100)
WEnd
EndIf
Func Attack()
ControlSend($windowname,'', '', "{Space}")
EndFunc
Func isSleepTime()
If(TimerDiff($timer1) > $zeitLeveln) Then
Return True
Else
Return False
EndIf
EndFunc
Func Schlafen()
ControlSend($windowname, '', '', "T")
Sleep($zeitSchlafen)
Controlsend($windowname, '', '', "T")
$timer1 = TimerInit
EndFunc
Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
WEnd
EndFunc
Func Terminate()
Exit 0
EndFunc
Func Loot()
ControlSend($windowname, '', '', $lootkey)
EndFunc
Hoffe mir kann jmd hfeln...
lg
HaseHarry =)
HaseHarry is offline  
Old 06/10/2010, 21:42   #2
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Code:
ControlSend($windowname, '', '', $lootkey)
Die Variable $lootkey ist nicht dekladiert.

Code:
Global $lootkey = "Dein Text"
Die zeile irgendwo vor zeile 49 packen
HardCore.1337 is offline  
Old 06/10/2010, 21:46   #3
 
HaseHarry's Avatar
 
elite*gold: 58
Join Date: Oct 2008
Posts: 535
Received Thanks: 117
-.- hab ihn sammel stat lootkey genannt -.-
ma ausprobieren^^
danke dir

ich hasse mcih xd
das wars wirklich omg-.- *mim kopf gegen die wand renn*
vielen dank .)
HaseHarry is offline  
Reply


Similar Threads Similar Threads
Problem VB 10 Patcher Script Problem
09/20/2010 - .NET Languages - 8 Replies
Hayho liebe Com. ich habe mal wieder einen ganz netten Patcher gescriptet, für einen metin2 P Server, da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
DB Bot Script Problem
07/21/2010 - SRO Private Server - 1 Replies
Hey Guys, I have a Problem with the Scripts+Loop. I load a Script e.g. for Bandits. THe Problem is, the Bot doesnt run to the Hunting place and he doesnt Port back to town. I read that i must start at Hotan? Is that true cause Im just lvl 20.. Thanks for ur help =) edit: Im playing on swsro2
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem!
06/21/2010 - Metin2 Private Server - 11 Replies
hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler : http://img541.imageshack.us/img541/8140/24955249. png und wenn ich dann die datei öffne und in die zeile gehe kommt: while($row = mysql_fetch_array($ergebnis)) kann mir jmd helfen?
l2w script problem
05/01/2009 - Lineage 2 - 1 Replies
Before Gracia Final I've used to run restock/rebuff/return script (the one which can be found here, with some not important modifications), but recently (when new oog/ig came out, I think with old ig everything was working) it stopped working, becouse when script comes to this place: NPCSEL(Valentina) NPCDLG(Valentina) DLGSEL(Teleport) DLGSEL(Outlaw Forest - 5200 Adena ) dialog with npc closes (and ofcourse it stops working). Any (helpful) ideas?
[L2W IG 2.05] Script Problem
02/11/2009 - Lineage 2 - 2 Replies
Hey all! Anyone have problem with scripts? I create a script but the char doesnt move. I create a simple "MOVETO" script but dont do anything:mad:. And auto follow dont work too.



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


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.