Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:48

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

Advertisement



[Frage] Input Box

Discussion on [Frage] Input Box within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
[Frage] Input Box

Hey E*pvpers.


Tut mir Leid aber hier kommt schon meine nächste Frage zur Input Box.

Wie kann ich eine Zahl die ich in eine Input Box eintrage weiterbenutzen?

Wenn ich zB eine Input Box mache wo man einen Zeitinterwall eingeben soll -> Wie mache ich es, dass mit der Zahl gerechnet wird, die in die Input Box eingegeben wird?

Hoffe ihr versteht was ich meine :>

lg

Niklas
Belur is offline  
Old 10/07/2010, 20:08   #2
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Code:
$iSleep = InputBox("Sleep", "Type your sleep time here:")
ConsoleWrite('Sleep(' & $iSleep & ')' & @CRLF)
Sleep($iSleep)
Quick 'n Dirty ;O
PenGuin :O is offline  
Thanks
1 User
Old 10/07/2010, 20:12   #3
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by pinguin94 View Post
Code:
$iSleep = InputBox("Sleep", "Type your sleep time here:")
ConsoleWrite('Sleep(' & $iSleep & ')' & @CRLF)
Sleep($iSleep)
Quick 'n Dirty ;O
wie man sieht, ist er noch recht neu im umgang mir autoit,
kann mich jetz auch irren, aber ich glaube er weiß (noch) garnciht was dieser teil bedeuten soll:
ConsoleWrite('Sleep(' & $iSleep & ')' & @CRLF)
oder?

also im grunde reicht das für dich:
$iSleep = InputBox("Sleep", "Type your sleep time here:")
Sleep($iSleep)

die eingabe in der inputbox wird in die variable $iSleep gespeichert und einfach in dem sleep() aufgerufen...
omer36 is offline  
Thanks
1 User
Old 10/07/2010, 20:16   #4
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Gecheckt :>
Belur is offline  
Old 10/07/2010, 20:20   #5
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
das ist ganzeinfach die Inputbox, mit titel und text...
(das müsstes tdu aber schon wissen... )

hast du dir eig. schon die grundlagen 1-4 angeschaut? ^^
omer36 is offline  
Old 10/07/2010, 20:22   #6
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Ja die hab ich schon mindestens 3 Mal durchgelesen.

Ich bin mit Vba damals angefangen und muss sagen, dass manche Sachen leichter, andere schwerer umzusetzen sind. Komme inzwischen schnell durcheinander.
Belur is offline  
Old 10/07/2010, 20:24   #7
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
dann ließ es noch ca 2mal und dann müsstes tdu es können

wennde hilfe brauchst, kannste mich auch ruhig anschrieben ^^
helfe gerne
omer36 is offline  
Thanks
1 User
Old 10/07/2010, 20:28   #8
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
drück dochmal F1 in scite...
Code:
InputBox ( "title", "prompt" [, "default" [, "password char" [, width [, height [, left [, top [, timeout [, hwnd]]]]]]]] )
da steht auch gleich:
Quote:
Return Value
Success: Returns the string that was entered.
jetzt weist du was du an parametern brauchst, und was das zurück gibt....

also wolln wir zb den user was eingebn lassn und das speichern:
Code:
$eingabe = InputBox('Ich bin der Titel', 'Ich bin eine Aufforderung', 'ich bin der Standardtext)
und schon haben wir ne inputbox, die das, was der user eingibt, in $eigabe speichert
lolkop is offline  
Thanks
1 User
Old 10/07/2010, 20:34   #9
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
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.
Belur is offline  
Old 10/07/2010, 20:37   #10
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by Belur View Post
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.
ja wir machen auch grade java...
und das ist (noch) recht langweilig...hoffe es wird bald bischen anspruchsvoller... ^^
omer36 is offline  
Old 10/07/2010, 20:39   #11
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
So schlimm kanns bei dir garnicht sein Omer xD

Wir schieben rote Quadrate ect hin und her und bauen daraus Häuser.
Belur is offline  
Old 10/07/2010, 20:47   #12
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
wir sind seid knapp 3 monaten noch bei den grundlagen und erst bei den if - elfe if - else bedingungen...
meine klasse ist einfach zu dumm um das zu kapieren... -.-
omer36 is offline  
Old 10/07/2010, 20:50   #13
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Zu Autoit nochmal.



Ich hab ein Interface mit einem Button und einer Input Box. hatte mir das eigentlich so gedacht dass ich in die Input Box ein Zahl eingebe und wenn ich auf den Button drücke, sendet der Alt+F4 nach der eingegebenen Zeit.

Was aber jetzt passiert. Ich geb etwas in die Input Box ein, drücke den Button und eine neue Input Box öffnet sich. Erst wenn ich da eine Zeit eingebe, schleisst sich das fenster nach der Zeit.

Geht das auch ohne dass sich immer noch eine Input Box öffnet? Dh dass er die Zeit aus der 1. nimmt?
Belur is offline  
Old 10/07/2010, 20:58   #14
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
das ist es ja..
die eingabe speicherst du in $iSleep...

PHP Code:
$input InputBox("","bitte was eingeben:")
$input2 InputBox("","bitte was anderes eingeben:")

MsgBox("","",$input)
MsgBox("","",$input2
oder

PHP Code:
$zahl1 InputBox("","bitte gebe eine zahl ein:")
$zahl2 InputBox("","bitte eine andere zahl:")

MsgBox("","",$zahl1+$zahl2
kannst das nennen wie du willst.. auch $a, $b, $001554 ...
aber sinvoll ist es immer so zu bennen, dass du am ende weißt, wofür das sein soll ^^



durch das $'irgentwas' = Inputbox() speicherst du einfach die eingabe in der inputbox in diese variable...
omer36 is offline  
Thanks
1 User
Old 10/07/2010, 21:00   #15
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Okay. Hatte meine nächste Frage schon in alten Post editiert sry. Weiss nicht ob du das gelesen hattest :>
Belur is offline  
Reply


Similar Threads 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 18:49.


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