Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:44

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

Advertisement



HIlfe bei GUI input

Discussion on HIlfe bei GUI input within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
VRF's Avatar
 
elite*gold: 185
Join Date: May 2009
Posts: 1,389
Received Thanks: 197
HIlfe bei GUI input

Hallo,
also ich habe aus übungszwecken ein kleines programm programmiert, das einen input in einer log abspeichert aber irgentwie geht das nich so... kann mir vll jemand helfen??
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 283, 528, 344, 150)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 28, 267, 12, 12)
GUICtrlSetCursor (-1, 0)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 28, 291, 12, 12)
GUICtrlSetCursor (-1, 0)
$Inputbox2 = GUICtrlCreateInput("", 28, 136, 228, 21)
GUICtrlSetCursor (-1, 5)
$Inputbox1 = GUICtrlCreateInput("", 28, 211, 227, 21)
GUICtrlSetCursor (-1, 5)
$Button1 = GUICtrlCreateButton("Log In", 110, 363, 65, 29, $WS_GROUP)
GUICtrlSetCursor (-1, 0)
$Button2 = GUICtrlCreateButton("Sign uo now", 29, 160, 151, 16, BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetBkColor(-1, 0xC0DCC0)
GUICtrlSetCursor (-1, 0)
$Button3 = GUICtrlCreateButton("Forgot your passwort?", 29, 237, 111, 13, $WS_GROUP)
GUICtrlSetBkColor(-1, 0xC0DCC0)
GUICtrlSetCursor (-1, 0)
$Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Dominik\Desktop\Unbenannt.bmp", 0, 0, 281, 526, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button1
FileWrite ("pass.txt", $Inputbox2)
FileWrite ("pass.txt", $Inputbox1)
Sleep (1000)

Exit
EndSwitch
WEnd

VRF is offline  
Old 04/15/2010, 16:14   #2
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by VRF View Post
Hallo,
also ich habe aus übungszwecken ein kleines programm programmiert, das einen input in einer log abspeichert aber irgentwie geht das nich so... kann mir vll jemand helfen??
Du musst den Wert der Box erst per GUICtrlRead auslesen :
PHP Code:
FileWrite("test.txt",Guictrlread($Input1)) 
Shadow992 is offline  
Thanks
1 User
Old 04/15/2010, 16:31   #3
 
VRF's Avatar
 
elite*gold: 185
Join Date: May 2009
Posts: 1,389
Received Thanks: 197
Also das führt bei mir auch nur zu nem error
VRF is offline  
Old 04/15/2010, 17:13   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
Quote:
Originally Posted by VRF View Post
Also das führt bei mir auch nur zu nem error
Code:
$write1 = GuiCtrlRead($Inputbox2)
FileWrite ("pass.txt", $write1)
Probier das mal...
mipez is offline  
Reply


Similar Threads Similar Threads
Programm hilfe-Input einlesen usw. pls help!
06/08/2010 - AutoIt - 5 Replies
Hallo E*PVP Community, ich habe mal wieder ein Problem in AutoIt. Und dazu noch einige Fragen. Ich möchte eine GUI erstellen in der was eingelesen werden soll und dann soll diese varibal in der For schleife genutzt werden . Die For schleife soll dann ganz viele GUI's mit der Random funktion an verschiedene Positionen auf dem desktop erstellen. Die Main GUI soll dann gelöscht werden nachdem man auf Ok gedrückt hat. Jedoch man soll sie nicht beenden können ausßer mit einem Hotkey. ...
Need some input please
07/10/2009 - Dekaron Private Server - 9 Replies
OKay guys i got my client packed but i only have 2 problems: The loading map screen for deathlands is white and blank. also the minimap is blank. At first my mobs were pink but i reinstalled the textures and it fixed it. I reinstallled the files from data/texture/minimap and the loading one in texture/ui/game/loading. Wondering if anyone else might have an idea EDIT:: Its all new maps but they worked fine in unpacked mode same textures and etc ...
Hilfe bei input
12/05/2008 - Guild Wars - 9 Replies
Hi, bin grad an etwas kleinem drann wo anfangs ein fenster mit inputbox erscheint(geht auch). Nun möchte ich, dass die zahl wo man in die inputbox eingibt die wiederholungszahl einer zugewiesenen Funktion angibt.. Input: $input = GUICtrlCreateInput("Die Zahl", 216, 56, 81, 21) Hier soll die zahl aus der inputbox hin: for $i = 1 to $input
GUI Run (input...)
05/12/2008 - Guild Wars - 30 Replies
Hallo, ich mal wieder mit ne Frage. Und zwar habe ich eine Func _path() erstellt welche die Aufgabe hat den user auf zu fordern den Pfad zum GuildWars verzeichniss an zu geben. Die func klappt auch ohne Probleme, aber ich möchte es halt so das wenn der User dann start drückt das GuildWars startet von dem Verzeichniss aus wo der User sein GuildWars Installiert hat. Die Func sieht so aus.... func _path() MsgBox ( 0, "GuildWars Path", "Befor the bot can do autologin you have to...
hi some input plz?
05/11/2007 - Conquer Online 2 - 0 Replies
i made billions of high lv troj and got used to it, now i played on a new serv and made a lv110 war in 2weeks. however, i am very not used to it cuz cant even ss/fb. i wasthinking of making a new char, or stick with this one rb at 120, or make it 130 130 rb to troj? btw lvling with a sword/blade and shield at lv120 + , would it affect my exp a lot compare to using club shield?



All times are GMT +1. The time now is 14:45.


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.