Register for your free account! | Forgot your password?

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

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

Advertisement



Problem mit Inputbox und Variabelen

Discussion on Problem mit Inputbox und Variabelen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Problem mit Inputbox und Variabelen

Hallo ,
Ich habe mich jz längere zeit mit Autoit beschäftig aber ich bleibe bei einer sache hängen .
Undzwar habe ich ein Box gemacht zum reinschreiben also :

Code:
$bs = GUICtrlCreateInput("bs", 24, 88, 233, 21)
Ich möchte jetzt das der inhalt den ich in die Box reinschreibe dann dann zum Beispiel in einer MsgBox ausgegeben wird aber es wir nie der inhalt sondern die Zeile angezeit wenn ich da zum beispiel Max Mustermann reinschreibe , wird nicht in der Msg Box Max Mustermann sonden die Zeile z.B. 7 angezeigt.

Hier nochmal die MsgBox:

Code:
MsgBox (0, "Beispiel", "Beispiel" & $bs & "Beispiel")
nicobellic is offline  
Old 01/30/2010, 09:28   #2
 
~kau~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
... ich würde es so machen ...
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("BLUBBB", 241, 78, 192, 124)
$Input1 = GUICtrlCreateInput("", 16, 16, 185, 21)
$Button1 = GUICtrlCreateButton("Was stand da?", 64, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
MsgBox(0,"Info","Eingabe :" & GuictrlRead($Input1))
EndSwitch
WEnd
Du brauchst das GUICtrlRead ^^ nich dein ... code da oben
~kau~ is offline  
Thanks
1 User
Old 01/30/2010, 09:38   #3
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Danke hat mir geholfen .
nicobellic is offline  
Old 01/30/2010, 09:48   #4
 
~kau~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
Np Helfe immer gerne ^^
~kau~ is offline  
Reply


Similar Threads Similar Threads
[Problem]Inputbox + Label
08/21/2010 - AutoIt - 4 Replies
Hi ich will das mein Program eine inputbox öffnet und das in einem Label angiebt :) so habe ich es versucht $name = Inputbox("Name","Bitte gebe deinen namen ein") und dan öffnet sich ein fenster sozusamen ein minni spiel wo der name in einen Label stehen soll :) $Label1 = GUICtrlCreateLabel("Name: $name", 8, 8, 97, 20) //edit habe die löseung ;) aber ein anderes problem
[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>
Problem...Msg & Inputbox
05/27/2010 - AutoIt - 6 Replies
Hallo liebe E*PvP Community, ich habe hier ein kleines Problem... Ich möchte an der Inputbox die Größe ändern...bekomme es aber nicht hin, und dann möchte ich eine variable in der aus der inputbox etwas gespeichert wurde in einer MsgBox ausgeben. Wie soll ichd ass machen..pls Quellcode! So mein Quellcode:
InputBox
01/13/2009 - GW Bots - 2 Replies
Heyho, Ich wollte mal fragen wie ich eine InputBox erstelle in die man eine Zahl eingibt und dann eine Funktion so oft wiederholt wird bis die Zahl in der Box erreicht ist. Ich hoffe ich hab das ausreichend erklärt.



All times are GMT +2. The time now is 19:38.


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.