 |
AutoHotkey Community Wir helfen uns gegenseitig aus der Patsche
|
| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
Fronk Gast
|
Verfasst am: Mo Jul 07, 2008 10:14 am Titel: Ausgabe in GUI möglich? |
|
|
Hi,
ich beschäftige mich grad erstmalig mit GUI. Vielleicht ists ja daher eine umso leichtere Frage für Euch.
| Code: |
; Generated by SmartGUI Creater
Gui, Add, Text, x17 y8 w120 h20, Your Name:
Gui, Add, Text, x17 y38 w120 h20, Your Year of birth (yyyy):
Gui, Add, Edit, x157 y8 w100 h20 vName, Name
Gui, Add, Edit, x157 y38 w100 h20 vYear, yyyy
Gui, Add, Button, x27 y68 w70 h20, OK
Gui, Add, Button, x177 y68 w70 h20, Cancel
Gui, Show, x279 y217 h98 w277, Generated using SmartGUI Creator
Return
ButtonCancel:
GuiClose:
ExitApp
ButtonOk:
Gui, submit
Age = %A_year% ;%a_year% holds the current year
Age -= %Year% ; %year% holds the year submitted by user
Msgbox, Hey %name%! You're %Age% years old now!
ExitApp |
Könnte man hier, mal vorausgesetzt man plant den entsprechenden Platz dafür in der GUI ein, auch die Ausgabe innerhalb der GUI platzieren anstelle der Msgbox??
Grüße |
|
| Nach oben |
|
 |
BoBo² Gast
|
Verfasst am: Mo Jul 07, 2008 10:28 am Titel: |
|
|
| Code: | ; Generated by SmartGUI Creater
Gui, Add, Text, x17 y8 w120 h20, Your Name:
Gui, Add, Text, x17 y38 w120 h20, Your Year of birth (yyyy):
Gui, Add, Edit, x157 y8 w100 h20 vName, Name
Gui, Add, Edit, x157 y38 w100 h20 vYear, yyyy
Gui, Add, Button, x27 y68 w70 h20, OK
Gui, Add, Button, x177 y68 w70 h20, Cancel
Gui, Add, Text, xp yp+22 wp hp vMeineAusgabe, Ausgabe:
Gui, Show, x279 y217 h98 w277, Generated using SmartGUI Creator
Return
ButtonCancel:
GuiClose:
ExitApp
ButtonOk:
Gui, submit, NoHide
Age = %A_year% ;%a_year% holds the current year
Age -= %Year% ; %year% holds the year submitted by user
; Msgbox, Hey %name%! You're %Age% years old now!
GuiControl,, MeineAusgabe, Ausgabe: %name% = %year%
ExitApp |
|
|
| Nach oben |
|
 |
Fronk Gast
|
Verfasst am: Mo Jul 07, 2008 10:32 am Titel: |
|
|
Danke für die schnelle Antwort.
Tuts nur leider nicht
Grüße |
|
| Nach oben |
|
 |
garry
Anmeldedatum: 25.10.2005 Beiträge: 400 Wohnort: switzerland
|
Verfasst am: Mo Jul 07, 2008 10:35 am Titel: |
|
|
das gleiche mit editbox
| Code: | Gui,2: Add, Text, x17 y8 w120 h20, Your Name:
Gui,2: Add, Text, x17 y38 w120 h20, Your Year of birth (yyyy):
Gui,2: Add, Edit, x157 y8 w100 h20 vName, Guest
Gui,2: Add, Edit, x157 y38 w100 h20 vYear,1950
Gui,2: Add, Button, x27 y68 w70 h20 gRESULT, OK
Gui,2: Add, Button, x177 y68 w70 h20, Cancel
Gui,2:Add,Edit,cRED x17 y100 w200 h25 ReadOnly vTOT,
Gui,2: Show, x279 y217 h130 w277, TESTSCRIPT
Return
ButtonCancel:
2GuiClose:
ExitApp
RESULT:
Gui,2:submit,nohide
Age = %A_year% ;%a_year% holds the current year
Age -= %Year% ; %year% holds the year submitted by user
GuiControl,2:Text,TOT,Hey %name%`! You`'re %Age% years old now`!
return
|
|
|
| Nach oben |
|
 |
Fronk Gast
|
Verfasst am: Mo Jul 07, 2008 10:35 am Titel: |
|
|
Doch, tuts wohl. Mußte nur das Fenster vergrößern und verhindern, dass das Script sich selber beendet
Danke. |
|
| Nach oben |
|
 |
BoBo² Gast
|
Verfasst am: Mo Jul 07, 2008 11:01 am Titel: |
|
|
| Zitat: | | Mußte nur das Fenster vergrößern | Yo. Die Mathe zur Gesamtgrößenkalkulation hab ich mir erspart. Musste dir ja ne Restherausforderung lassen .
Btw, Chapeau, kommt man/frau nicht zwingend schnell drauf!  |
|
| Nach oben |
|
 |
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten.
|
Powered by phpBB © 2001, 2005 phpBB Group Deutsche Übersetzung von phpBB.de
|