|
You last visited: Today at 04:03
Advertisement
[Frage] Input Box
Discussion on [Frage] Input Box within the AutoIt forum part of the Coders Den category.
10/07/2010, 21:03
|
#16
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
zeig mal wie du es gemacht hast, um zu schauen wo dein fehler liegt.. ^^
|
|
|
10/07/2010, 21:09
|
#17
|
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
|
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 624, 389, 191, 123)
$Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0)
$Input1 = GUICtrlCreateInput("Input1", 456, 88, 145, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$iSleep = InputBox("Sleep", "Test")
Send("!{F4}")
EndSwitch
WEnd
Hatte auch einmal unter dem $iSleep = InputBox("Sleep", "Test") noch
Sleep($iSleep) aber da tut sich nichts. Beides das gleiche Resultat.
#edit. Sry grad gemerkt dass sich da klar was tut. Unter dem $iSleep = InputBox("Sleep", "Test") steht eig. noch Sleep($iSleep) da sich das Fenster sonst sofort schließt egal was ich eingebe.
Das Problem ist eig nur, dass sich immer ein 2tes Fenster öffnet und nicht direkt der Wert aus der Input Box genommen wird.
|
|
|
10/07/2010, 21:16
|
#18
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
also...
$Input1 = GUICtrlCreateInput("Input1", 456, 88, 145, 21)
da hast du ja schon eine inputbox erstellt (variable " $Input1 "), darum ist das so überflüssig:
$iSleep = InputBox("Sleep", "Test")
wenn du nun dieser inputbox auslesen willst, musst du es hiermit machen:
GUICtrlRead() (wenn es in einer GUI ist, muss mann es so auslesen.)
und dann würde das zb so aussehen:
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 624, 389, 191, 123) $Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0) $Input1 = GUICtrlCreateInput("zeit in millisec eingeben", 456, 88, 145, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Sleep(GUICtrlRead($Input1)) Send("!{F4}") EndSwitch WEnd
oder so:
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 624, 389, 191, 123) $Button1 = GUICtrlCreateButton("Button1", 112, 88, 321, 89, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $iSleep = InputBox("Sleep", "Test") Sleep($iSleep) Send("!{F4}") EndSwitch WEnd
jenach wie du es willst ^^
|
|
|
10/07/2010, 21:22
|
#19
|
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
|
Ohh. Tut mir Leid. Hab nicht erwähnt, dass ich mit Koda schon eine Oberfläche erstellt hatte.
Wird : $Input1 = GUICtrlCreateInput immer zu -> (GUICtrlRead($Input1)) ?
Also mit dem Read? Ich danke dir schonmal für deine Hilfe Omer
Werd gleich weg sein und morgen wider reinschauen. Hoffe du hast dann vllt nochmal genug Nerven für meine Fragen
Hau rein.
Niklas
|
|
|
10/07/2010, 21:27
|
#20
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
wenn du es aus einer GUI auslesen willst, ja.
wenn du zb den inhalt senden willst, musst du es so machen:
Send(GUICtrlRead($Input1))
|
|
|
10/07/2010, 22:31
|
#21
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
Zum Verständnis:
Du musst GUICtrlRead nehmen, da sich hinter der Variable $Input1 das Handle des Inputs befindet (CreateWindowExW).
Du benötigst das Handle, um mit dem Control arbeiten zu können, d.h. States abfragen, Values auslesen etc.
Generell also um Controls auszulesen GuiCtrlRead!
|
|
|
10/08/2010, 14:40
|
#22
|
elite*gold: 1
Join Date: Dec 2009
Posts: 36
Received Thanks: 44
|
Quote:
Originally Posted by Belur
Muss mich da noch bisschen reinarbeiten
Ich mach sowas wohl gerne als Abwechslung zu Java was wir in der Schule machen -> Java find ich langweilig xD
Ich bemühe mich aber in AutoIt bin ich wohl der größte Noob auf Erden.
|
das ist falsch ich bin noch schlechter
|
|
|
10/08/2010, 19:07
|
#23
|
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
|
Quote:
Originally Posted by MrPotter1234
das ist falsch ich bin noch schlechter
|
Kann ich dir nicht glauben xD
|
|
|
 |
|
Similar Threads
|
[HELP]Coder Input
01/05/2010 - 12Sky2 - 13 Replies
Well guys if you remember my Full map vac (search button) that got patched right before release i found out how to buypass that so we can do things like the range hack my team found and etc, but the problem is i can explain how its blocked but not how to code it, so to say well here is my analysis
Analysis:
they finally made monster X,Y,Z server sided in a way to were when you attack it sends your X,Y,Z and mob id in the attack packet and compares it to the monster your trying to hit, if...
|
Need some advice/help/input/know-how
11/28/2009 - Aion - 3 Replies
Seeing my acc banned after using Aion SZ im looking for an alternative. Highest priorety is ofc not getting banned again, though i dont want to lose alot of functionality.
From what I have read on ElitePvPers over the past months I think it all comes down to:
MacroGoblin
MMOGuider
AionNinja
Seeing how each of them gets good and bad props all over the place i'm really wondering what to get now -.-
Moneywise i dont rly care, I just want to get the best product for my money and get...
|
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
...
|
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 04:03.
|
|