Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:13

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

Advertisement



AUtoIT Ini Problem

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

Reply
 
Old   #1
 
elite*gold: 57
Join Date: Jan 2009
Posts: 128
Received Thanks: 152
AUtoIT Ini Problem

Da ich nix weiter per google etc gefunden habe mach ich maln neues theard hier.
Also meine frage ist
wie bekomme ich einen text aus meiner ini ausgelesen und in eine textbox geschrieben wenn des denn so z.b aussieht:

Irgendein beispeil:
$Input1 = GUICtrlCreateInput("", 24, 48, 41, 21)
$text1 = GUICtrlRead($Input1)
iniwrite (@ScriptDir & "\config.ini","Koords-1","Galaxy",$text1)

so ca wie lese ich diesen wert aus und lass ihn dann in unput 1 wieder rein schrieben?
Knower is offline  
Old 11/02/2009, 20:04   #2
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
$bla=iniread(@ScriptDir & "\config.ini","Koords-1","Galaxy")
guictrlsetdata($Input1,$bla)

war jetzt mal rein ausm kopf, kann sein das beim iniread nen parameter fehlt oder so.
kknb is offline  
Old 11/02/2009, 20:09   #3
 
elite*gold: 57
Join Date: Jan 2009
Posts: 128
Received Thanks: 152
kommt immer error
>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper. exe" /run /prod /ErrorStdOut /in "C:\Users\Riko\Desktop\Auto IT projecte\NoNameGame Bot\NonameGame Attack bot V1.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams
+>20:09:15 Starting AutoIt3Wrapper v.2.0.0.1 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/Service Pack 1 CPU:X64 OS:X64)
>Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3
C:\Users\Riko\Desktop\Auto IT projecte\NoNameGame Bot\NonameGame Attack bot V1.au3(143,60) : ERROR: IniRead() [built-in] called with wrong number of args.
$bla=iniread(@ScriptDir & "\config.ini","Koords-1","Galaxy")
Knower is offline  
Old 11/03/2009, 15:43   #4
 
Alastоr's Avatar
 
elite*gold: 290
Join Date: Sep 2009
Posts: 782
Received Thanks: 3,791
Quote:
Originally Posted by Knower View Post
kommt immer error
>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper. exe" /run /prod /ErrorStdOut /in "C:\Users\Riko\Desktop\Auto IT projecte\NoNameGame Bot\NonameGame Attack bot V1.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams
+>20:09:15 Starting AutoIt3Wrapper v.2.0.0.1 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/Service Pack 1 CPU:X64 OS:X64)
>Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3
C:\Users\Riko\Desktop\Auto IT projecte\NoNameGame Bot\NonameGame Attack bot V1.au3(143,60) : ERROR: IniRead() [built-in] called with wrong number of args.
$bla=iniread(@ScriptDir & "\config.ini","Koords-1","Galaxy")
IniRead ( "filename", "section", "key", "default" )
you must specify a default value
Alastоr is offline  
Old 11/03/2009, 16:54   #5
 
elite*gold: 57
Join Date: Jan 2009
Posts: 128
Received Thanks: 152
Problem gelöst!
Knower is offline  
Reply




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


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.