Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars
You last visited: Today at 09:53

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

Advertisement



Hilfe bei input

Discussion on Hilfe bei input within the Guild Wars forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 29
Received Thanks: 1
Hilfe bei input

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:
Code:
$input = GUICtrlCreateInput("Die Zahl", 216, 56, 81, 21)
Hier soll die zahl aus der inputbox hin:
Code:
for $i = 1 to $input
Problem:
Wenn ich das Programm starte, meine Zahl eingebe und dann meinen Hotkey drücke zum beginnen, wiederholt es meine Funktion unendlich!
Aber ich möchte ja, dass es die Funktion nur so oft wie aus der inputbox entnommen wiederholt^^
FreeStylaa is offline  
Old 12/05/2008, 14:04   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,098
Received Thanks: 198
$var = GuiCtrlread($input)
for $i = 1 to $var
i4mSoH34Vy is offline  
Old 12/05/2008, 14:23   #3
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
oder halt direkt

for $i = 1 to guictrlread($input)
kknb is offline  
Old 12/05/2008, 14:26   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 29
Received Thanks: 1
Hmm geht i-wie nur so oft wie ich es in den source bei input reinschreibe...

Code:
#include <GUIConstantsEx.au3>
$GUI = GUICreate("Perma-Schattenform", 324, 182, 218, 135)
GUICtrlCreateGroup("Wichtig!", 8, 8, 305, 161)
GUICtrlCreateLabel("Fertigkeitenanordnung:", 24, 32, 113, 17)
GUICtrlCreateLabel("[1] - Glyphe der Schnelligkeit", 24, 56, 139, 17)
GUICtrlCreateLabel("[2] - Tödliches Paradoxon", 24, 80, 125, 17)
GUICtrlCreateLabel("[3] - Schattenform", 24, 104, 88, 17)
GUICtrlCreateLabel("Wiederholungen:", 216, 32, 85, 17)
$input = GUICtrlCreateInput("", 216, 56, 81, 21)
$Close = GUICtrlCreateButton("OK", 96, 128, 121, 25, 0)
$var = GuiCtrlread($input)
GUISetState(@SW_SHOW)
HotKeySet("{F8}", "sf")
HotKeySet ("{ESC}" , "Terminate")
TrayTip("Dauer-Schattenform Aktiv!","Beenden mit ESC",5000)

$hwnd = "Guild Wars"

While true 
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
case $Close
GUIDelete($GUI)
EndSwitch
WEnd

func sf()
for $i = 1 to $var
Sleep(100)
ControlSend($hwnd,"","","{1}")
Sleep(1000)
ControlSend($hwnd,"","","{2}")
Sleep(100)
ControlSend($hwnd,"","","{3}")
Sleep(30800)
next
EndFunc

Func Terminate() 
Exit 
EndFunc
Wenn ich garnichts reinschreibe gehts auch nich....
FreeStylaa is offline  
Old 12/05/2008, 14:52   #5
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
du hast es auch direkt in den guiaufbau geschrieben, ist klar das dort nicht passiert, weil zu dem zeitpunkt noch keiner was reingeschrieben hat.

Code:
#include <GUIConstantsEx.au3>
$GUI = GUICreate("Perma-Schattenform", 324, 182, 218, 135)
GUICtrlCreateGroup("Wichtig!", 8, 8, 305, 161)
GUICtrlCreateLabel("Fertigkeitenanordnung:", 24, 32, 113, 17)
GUICtrlCreateLabel("[1] - Glyphe der Schnelligkeit", 24, 56, 139, 17)
GUICtrlCreateLabel("[2] - Tödliches Paradoxon", 24, 80, 125, 17)
GUICtrlCreateLabel("[3] - Schattenform", 24, 104, 88, 17)
GUICtrlCreateLabel("Wiederholungen:", 216, 32, 85, 17)
$input = GUICtrlCreateInput("", 216, 56, 81, 21)
$Close = GUICtrlCreateButton("OK", 96, 128, 121, 25, 0)
GUISetState(@SW_SHOW)
HotKeySet("{F8}", "sf")
HotKeySet ("{ESC}" , "Terminate")
TrayTip("Dauer-Schattenform Aktiv!","Beenden mit ESC",5000)

$hwnd = "Guild Wars"

While true 
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
case $Close
GUIDelete($GUI)
EndSwitch
WEnd

func sf()
$var = GuiCtrlread($input)
MsgBox(16,"wiederholungen", "es wird " & $var & " mal wiederholt!")
for $i = 1 to $var
Sleep(100)
ControlSend($hwnd,"","","{1}")
Sleep(1000)
ControlSend($hwnd,"","","{2}")
Sleep(100)
ControlSend($hwnd,"","","{3}")
Sleep(30800)
next
EndFunc

Func Terminate() 
Exit 
EndFunc
kknb is offline  
Old 12/05/2008, 15:03   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 29
Received Thanks: 1
Egal was ich jetzt bei input eingebe, beim starten (mit F8) kommt: es wird 0 mal wiederholt... und passiert dann garnichts
FreeStylaa is offline  
Old 12/05/2008, 15:08   #7
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
bei mir funktionierts einwandfrei, du benutzt auch den code den ich oben gepostet habe?
kknb is offline  
Old 12/05/2008, 15:19   #8
 
elite*gold: 0
Join Date: Mar 2008
Posts: 29
Received Thanks: 1
Ja habe ich:

Code:
#include <GUIConstantsEx.au3>
$GUI = GUICreate("Perma-Schattenform", 324, 182, 218, 135)
GUICtrlCreateGroup("Wichtig!", 8, 8, 305, 161)
GUICtrlCreateLabel("Fertigkeitenanordnung:", 24, 32, 113, 17)
GUICtrlCreateLabel("[1] - Glyphe der Schnelligkeit", 24, 56, 139, 17)
GUICtrlCreateLabel("[2] - Tödliches Paradoxon", 24, 80, 125, 17)
GUICtrlCreateLabel("[3] - Schattenform", 24, 104, 88, 17)
GUICtrlCreateLabel("Wiederholungen:", 216, 32, 85, 17)
$input = GUICtrlCreateInput("", 216, 56, 81, 21)
$Close = GUICtrlCreateButton("OK", 96, 128, 121, 25, 0)
GUISetState(@SW_SHOW)
HotKeySet("{F8}", "sf")
HotKeySet ("{ESC}" , "Terminate")
TrayTip("Dauer-Schattenform Aktiv!","Beenden mit ESC",5000)

$hwnd = "Guild Wars"

While true 
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
case $Close
GUIDelete($GUI)
EndSwitch
WEnd

func sf()
$var = GuiCtrlread($input)
MsgBox(16,"wiederholungen", "es wird " & $var & " mal wiederholt!")
for $i = 1 to $var
Sleep(100)
ControlSend($hwnd,"","","{1}")
Sleep(1000)
ControlSend($hwnd,"","","{2}")
Sleep(100)
ControlSend($hwnd,"","","{3}")
Sleep(30800)
next
EndFunc

Func Terminate() 
Exit 
EndFunc
FreeStylaa is offline  
Old 12/05/2008, 16:01   #9
 
Valvepro's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 374
Received Thanks: 198
Hi, machs mal lieber so

PHP Code:
#include <GUIConstantsEx.au3>
$GUI GUICreate("Perma-Schattenform"324182218135)
GUICtrlCreateGroup("Wichtig!"88305161)
GUICtrlCreateLabel("Fertigkeitenanordnung:"243211317)
GUICtrlCreateLabel("[1] - Glyphe der Schnelligkeit"245613917)
GUICtrlCreateLabel("[2] - Tödliches Paradoxon"248012517)
GUICtrlCreateLabel("[3] - Schattenform"241048817)
GUICtrlCreateLabel("Wiederholungen:"216328517)
$input GUICtrlCreateInput(""216568121)
$Close GUICtrlCreateButton("OK"96128121250)
GUISetState(@SW_SHOW)
HotKeySet("{F8}""sf")
HotKeySet ("{ESC}" "Terminate")
TrayTip("Dauer-Schattenform Aktiv!","Beenden mit ESC",5000)

$hwnd "Guild Wars"

While true 
Switch GUIGetMsg()
Case 
$GUI_EVENT_CLOSE
Exit
case 
$Close
$var 
GuiCtrlread($input)
GUIDelete($GUI)
EndSwitch
WEnd

func sf
()
MsgBox(16,"wiederholungen""es wird " $var " mal wiederholt!")
for 
$i 1 to $var
Sleep
(100)
ControlSend($hwnd,"","","{1}")
Sleep(1000)
ControlSend($hwnd,"","","{2}")
Sleep(100)
ControlSend($hwnd,"","","{3}")
Sleep(30800)
next
EndFunc

Func Terminate
() 
Exit 
EndFunc 
Valvepro is offline  
Thanks
1 User
Old 12/05/2008, 16:27   #10
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
Quote:
Originally Posted by FreeStylaa View Post
Problem:
Wenn ich das Programm starte, meine Zahl eingebe und dann meinen Hotkey drücke zum beginnen, wiederholt es meine Funktion unendlich!
Aber ich möchte ja, dass es die Funktion nur so oft wie aus der inputbox entnommen wiederholt^^

öhm ich dachte das soll gleich kommen wenn man auf f8 drückt....hättest eventuell mal sagen sollen das der ok button vorher gedrückt werden soll...
kknb is offline  
Thanks
1 User
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. ...
HIlfe bei GUI input
04/15/2010 - AutoIt - 3 Replies
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??
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 +2. The time now is 09:53.


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.