Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:07

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

Advertisement



AutoIt Frage

Discussion on AutoIt Frage within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Lukɑs's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 244
Received Thanks: 24
AutoIt Frage

Hallo,
anscheinend habe ich gerade ein kleines Blackout, oder sonst was. Vielleicht liegt es auch daran, dass ich schon länger nix mehr mit au3 zu tun hatte, oder dass ich noch mit anderen Programmiersprachen arbeite, zumidest kommt hier mal meine Frage:
Ich habe ein Input, einen Button und ein Edit/Editbox. Wenn ich in das Input jetzt z.B. "Hallo" eingebe und auf den Button drücke soll in der Editbox auf einmal der Text "Hallo" erscheinen.

Danke!
Lukɑs is offline  
Old 07/21/2010, 20:41   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
und wo bleibt ie frage?

geht bestimmt auch anders...:

mit koda...
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"231102279354)
$Edit1 GUICtrlCreateEdit(""96810577)
GUICtrlSetData(-1"")
$Input1 GUICtrlCreateInput(""8608121)
$Button1 GUICtrlCreateButton("Button1"1686545$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            GUICtrlSetData
($Edit1GUICtrlRead($Input1))
    EndSwitch
WEnd 
omer36 is offline  
Thanks
1 User
Old 07/21/2010, 20:49   #3
 
Lukɑs's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 244
Received Thanks: 24
EDIT:
Mirs doch noch rechtzeitig was eingefallen: Wie funktioniert das ganze jetzt, wenn in der Editbox z.b. folgendes stehen soll:

Quote:
hallo

hallo
Also mit den "Enter"?

Danke.
Lukɑs is offline  
Old 07/22/2010, 01:00   #4
 
black_byte's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 447
Received Thanks: 315
Meine güte, ist es denn so schwer sich mal 5 min. damit zu beschäftigen ?
Immer wider die selben fragen, die man sich selber viel schneller beantworten kann ...

Aber damit du nicht mehr nervst: GUICtrlSetData($Edit1, GUICtrlRead($Input1 & @CRLF & $Input1)) -.-'
black_byte is offline  
Old 07/22/2010, 01:23   #5
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
@Über mir:

Du selbst denkst auch nicht nach oder? o_O
Deine Lösung geht nicht, und ist auch komplett konfus.
GUICtrlRead liest auch die CRLFs CRs und LFs mit nur man kann das nicht in einem Input anzeigen lassen

@TE: Bitte selber nachdenken und über den Typ über mir kann man selber nur lachen.
PenGuin :O is offline  
Old 07/22/2010, 11:17   #6
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Zitat von Pinguin:
Bitte selber nachdenken(....)
das werden die doch nie
nja...

.......

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"231102279354)
$Edit1 GUICtrlCreateEdit(""96810577)
GUICtrlSetData(-1"")
$Input1 GUICtrlCreateInput(""8608121)
$Button1 GUICtrlCreateButton("Button1"1686545$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            GUICtrlSetData
($Edit1GUICtrlRead($Input1) & @CRLF & @CRLF GUICtrlRead($Input1))
    EndSwitch
WEnd 
omer36 is offline  
Thanks
1 User
Old 07/22/2010, 12:34   #7
 
Lukɑs's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 244
Received Thanks: 24
Danke, das Prob an der Sache ist nur: Wenn ich einen neuen Text eingebe wird der alte ersetzt und der neue nicht hinzugefügt-.-
Lukɑs is offline  
Reply




All times are GMT +1. The time now is 22:09.


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.