Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:38

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

Advertisement



[AutoIt]Brauche Hilfe beim StringSplit

Discussion on [AutoIt]Brauche Hilfe beim StringSplit within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Mayesters's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 1,181
Received Thanks: 55
[AutoIt]Brauche Hilfe beim StringSplit

Hey,

ich habe folgende Zeile:
Code:
$accountcount = 1
Send(StringSplit(FileRead("accounts.txt"), ";"[$accountcount]))
$accountcount = $accountcount + 1
Aber er zeigt mir immer folgenden Fehler an:
Error parsing function call.

Beispielinhalt der accounts.txt:
troll1;troll2
Was habe ich falsch gemacht?
Sry, bin total AutoIT noob.
Mayesters is offline  
Old 05/23/2012, 19:32   #2
 
mydoom's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 322
Received Thanks: 98
Fehlte da eventuell nur eine Klammer?

//eher nicht

Code:
StringSplit( FileRead("accounts.txt"), ";"[$accountcount] )
Aber wird man so nicht aufrufen können.
mydoom is offline  
Old 05/23/2012, 19:33   #3
 
Mayesters's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 1,181
Received Thanks: 55
laut SciTE nicht. Also zu jeder ist eine andere vorhanden.

Edit:
Also laut SciTE sind 2 genau richtig. Aber wie verwende ich StringSplit sonst? Ich möchte die Datei accounts.txt einlesen die so aufgebaut ist:
troll1;troll2;troll3;etc...

Das soll zum Schluss als StringArray da sein.

Edit2:

Ahh, habs gelöst.

Code:
   $accountfile = FileRead("accounts.txt")
   Global $arr = StringSplit($accountfile, ";")
   Send($arr[$accountcount])
Mayesters is offline  
Old 05/25/2012, 01:49   #4


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,908
Received Thanks: 25,409
Arrow General Coding -> AutoIt

#moved
MrSm!th is offline  
Old 05/28/2012, 22:54   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 26
Received Thanks: 2
#hab nicht gesehen das schohn gelöst ist
bitta42 is offline  
Reply


Similar Threads Similar Threads
Brauche hilfe beim AutoIt Skript
02/12/2011 - AutoIt - 6 Replies
Hey, allso es ist so ich habe einen Auto It skript gemacht, dieser geht z.B. im Editor aber nicht in Metin2 (dafür ist er ja gedacht) :confused: . Muss ich da etwas besonderes machen oder wisst ihr why es nicht geht? Hier der/die Skript/s: HotKeySet ( "{F5}" , "Start" ) HotKeySet ( "{F6}" , "Ende" ) while 1 sleep(500) wend;
Brauche hilfe beim Autoit
12/02/2010 - AutoIt - 4 Replies
Hallo habe habe ein echt großes broblemm ich schaffe es einfach nicht einen bot für das neue jappy spiel Weihnachtswichtelspiel 2010 zuschreiben und das log in geht auch nicht leider
brauche hilfe beim bot scripten autoit.v3
01/13/2010 - AutoIt - 6 Replies
Hallo liebe epvpers ich wollte fragen ob mir vielleicht jemand erklären kann wie das mit autoit.v3 funktioniert da ich einen aimbot für das spiel "S4 League" machen möchte (Für waffen und nicht für sniper :D) thx im vorraus



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


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.