Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:15

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

Advertisement



frage zur .ini

Discussion on frage zur .ini within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 13
Received Thanks: 0
Post frage zur .ini

Hallo erstmal.
Ich will mein script hier nicht posten weil es dann öffentlich ist.
bin ein neuer scripter der lernen will.

also ich habe mir einen bot gebaut der auf x y & farbe reagirt
danach macht er nur x y.
so soll das auch sein aber ich will das jetzt mit

Code:
$Input1 = IniRead(@tempdir & ".config.ini","section","key", "")
und ein specher knop machen damit ich die xy&farbe
nicht immer mit ein hotkay neu setzten muss.

könntet ihr mir ein kleinen tipp geben oder
mal hier schauen und sagen wie ich das speichern und laden kann.

danke

script z.B. :

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 264, 104, 192, 124)
$Input1 = GUICtrlCreateInput("X - Achse", 8, 8, 121, 21)
$Input2 = GUICtrlCreateInput("Y - Achse", 8, 40, 121, 21)
$Input3 = GUICtrlCreateInput("Farbe", 8, 72, 121, 21)
$X = GUICtrlCreateInput("X - Achse", 136, 8, 121, 21)
$Y = GUICtrlCreateInput("Y - Achse", 136, 40, 121, 21)
$Save = GUICtrlCreateButton("Save", 144, 72, 107, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd
yx & farbe (links) wird mit ein knopftruck bestimmt.
yx (rechts) mit ein anderen knopf.
der button soll wie der name schon sagt spechern (in einer ini)
BlackHead1337 is offline  
Old 07/26/2013, 21:03   #2
 
Croco™'s Avatar
 
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
Die Funktionen die du suchst findest du alle hier:
Croco™ is offline  
Thanks
1 User
Old 07/29/2013, 22:04   #3
 
Cpt.Cock's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 315
Received Thanks: 28
Eine ini Datei schreiben kannst du mit :

Code:
IniWrite("Beispiel.ini", "BeispielSektion", "BeispielKey", "BeispielInhalt")
Cpt.Cock is offline  
Thanks
1 User
Old 07/29/2013, 22:30   #4
 
elite*gold: 0
Join Date: Apr 2013
Posts: 980
Received Thanks: 734
Quote:
Originally Posted by Cpt.**** View Post
Eine ini Datei schreiben kannst du mit :

Code:
IniWrite("Beispiel.ini", "BeispielSektion", "BeispielKey", "BeispielInhalt")
Da er Inputboxen hat schlag ich das vor :
Code:
IniWrite(@Tempdir&".Config.ini","Settings","X/Y",GuiCtrlRead ($Input1))
Und am anfang nach Gui :
Code:
If Fileexistens(@Tempdir &".config.ini") then
$Read1 = IniRead (@Tempdir &".config.ini","Settings","X/Y","Error")
GuiCtrlSetData ($Input1,$Read1)
Endif
Ich hoffe ich hab keine Fehler ..bin in Tapatalk Online ;o
Virus.bat is offline  
Thanks
1 User
Reply

Tags
iniread(@tempdir &


Similar Threads Similar Threads
Frage zu Bot machen-Maus Frage-Button Frage
02/16/2012 - AutoIt - 10 Replies
Hallo, Elitepvpers hat echt für alles ein Ort :D Geil. Also...Bin AutoIt anfänger. Ich bin dabei ein Bot für das Online Game Runescape zu machen. Ich hette 2 Fragen(FÜR DEN MOMMENT :) ): Kann ich machen das AutoIt inaktiv die Maus benutzt,also werend der Bot läuft das ich bzw. man im Internet surft oder was anderes macht`?



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


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