Register for your free account! | Forgot your password?

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

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

Advertisement



Input Wert als Variable speichern.

Discussion on Input Wert als Variable speichern. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 53
Received Thanks: 16
Input Wert als Variable speichern.

Hallo!

Ich kenne mich nicht mit Autoit aus, daher eine (ganz simple?) Frage:

Wie kann ich einen Wert, den ich in eine Input Box geschrieben habe als Variable speichern? Ich möchte das nicht mit einzelnen Inputboxen machen, da sich dann so viele Fenster öffnen. Hier mal ein Bespiel:

PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form2 GUICreate("Test"18687205142)
$Wert1 GUICtrlCreateInput("Wert1"8816921)
$Speichern GUICtrlCreateButton("Speichern"4056113250)
$Wert2 GUICtrlCreateInput("Wert2"83216921)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd 
Ich möchte in dem folgenden Script "Wert1" und "Wert2" als x und y Koordinaten nutzen. Dazu muss der eingegebene Wert als Variable gespeichert werden, richtig?

Gruß, Attention
Attention! is offline  
Old 11/14/2010, 20:42   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
"$Wert1" ist ja eine variable...

wenn du die aus einer gui auslesen willst, gehts zb so:

msgbox("","",guictrlread($wert1) & " - " & guictrlread($wert2))
omer36 is offline  
Old 11/14/2010, 20:46   #3
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
GuiCtrlRead($Variable)

du hast ja die eingabe in der variable wer1 und 2 gespeichert, also wie omner shcon sagt

msgbox(0,"deine werte",GuiCtrlRead($wer1)&" dein Zweiter Wert "&GuiCtrlRead($Wert2))
.BritainAndy is offline  
Reply


Similar Threads Similar Threads
Input eingabe als ini oder cfg speichern
08/09/2010 - AutoIt - 0 Replies
Hallo, ich wollte mir ein Login bot machen, die gui und so sind fertig und meine frage ist wie kann ich das so machen, das wen ich auf eine Checkbox klicke und nach dem anmelden Button die Daten die ich in den Input's eingegeben habe als ini oder cfg gespeichert wird und wen man mehrere acc's eingibt das man bei der acc-id dann zwischen mehreren eins aussuchen kann und jeweils das richtige Password benutzt wird Mein Script sieht so aus: Die Variable $Checkbox1 hat noch keine Funktion...
[Problem] Inputbox(GUI) auslesen und als Variable speichern
08/08/2010 - AutoIt - 8 Replies
Hallo, ich bin neu hier und habe ein Problem mit Autoit hier erstmal das Script : #include <ButtonConstants.au3> #include <EditConstants.au3>
GUI-Input als Variable.
06/20/2010 - AutoIt - 8 Replies
Hey, ich habe mit KODA eine Inputbox erstellt, möchte nun aber dass ich das was ich in die Inputbox eintrage dann per 'OK'-Knopfdruck im schon vorher geöffnetem Notepad geschrieben wird. #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form3 = GUICreate("Test", 116, 82, 303, 219) $Button1 = GUICtrlCreateButton("&OK", 8, 48, 99, 25) GUICtrlCreateInput("", 16, 16, 81, 21) GUISetState(@SW_SHOW)
[C++]Text aus variable speichern?
06/05/2010 - C/C++ - 11 Replies
Hallo erstmal. Ich habe jetzt angefangen c++ zu lernen :D. Nun wollte ich einen eingegebenen text in einer variable speichern und die variable später in eine textdatei eintragen lassen.Nur schaffe ich das nicht und ich glaube das mein Source code da auch nix bringt da er meiner meinung nach schon total falsch ist. Hoffe ihr könnt mir helfen



All times are GMT +2. The time now is 11:09.


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