mein Problem äußert sich wie folgt: Ich habe ein Haupt-Script und habe darin die Menu_EMail.ahk includiert.
Leider komme ich nur VOR dem Gui zurück in die Main und kann das Hauptmenu anzeigen...
Sobald ich das ganze NACH dem Gui anzeigen lassen will (mit Goto, Hauptmenu) funktioniert es nicht und das Script verabschiedet sich (bzw. hängt beim Befehl Goto, Hauptmenu fest und zählt nur noch die Sekunden hoch...)
Ich versuche das ganze hier mal darzustellen:
MAIN:
Code: Select all
Hauptmenu:
Gui, 5:Destroy
Gui, 1:Destroy
Gui, 2:Submit
; #####################################################
; Gui, 3 (Hauptmenu
; #####################################################
{
Gui, 3:Destroy
Gui, 4:Destroy
Gui, 2:Submit
Gui, 3: Add, Picture, x210 y320 w15 h15 +Buttons gEinstellungen, %A_ScriptDir%\Symbol_Einstellungen.png
Gui, 3:Add, Button, x120 y39 w80 h40 gE-Mail_extern, E-Mail`n(extern)
Gui, 3:Add, Button, x22 y39 w80 h40 gE-Mail_intern, E-Mail`n(intern)
Gui, 3:Add, Button, x22 y99 w180 h40 gDoc_Gen, Dokumenten-`nGenerator
Gui, 3:Add, Button, x22 y159 w180 h40 vButton_Lagerbestand gLagerbestand, Lagerbestand
Gui, 3:Add, Button, x22 y219 w180 h40 vButton_leer1,
Gui, 3:Add, Button, x22 y279 w180 h40 vButton_leer2,
Gui, 3:Font, s8 Bold, Verdana
Gui, 3:Add, Text, x10 y9 h20 +Center, Willkommen %Benutzer%
; ### Menu ###
{
Menu, FileMenu, Add, Position speichern, ini3, MenuHandler
Menu, FileMenu, Add, Exit, 3GuiClose, MenuHandler
Menu, MyMenuBar, Add, &Datei, :FileMenu
Gui, 3:Menu, MyMenuBar
}
GuiControl, 3: Disable, Button_leer1
GuiControl, 3: Disable, Button_leer2
if !(b_status = "Admin")
GuiControl, 3: Disable, Button_Lagerbestand
Gui, 3:Show, %x3% %y3% h340 w230, Hauptmenu
Return
MenuHandler:
return
3GuiClose:
ExitApp
return
}
Code: Select all
E-Mail_extern: ;E-Mails an Kunden versenden
{
Gui, 3:Destroy
#Include, %A_ScriptDir%\Texte\Menu_Email.ahk
return
}
Code: Select all
Wiederholen:
Gui, 1:Destroy
Gui, 3:Destroy
Gui, 1:+AlwaysOnTop
Gui, 1:Add, DDL, x12 y29 w140 vAnrede, Herr|Frau|Sgh Damen und Herren
Gui, 1:Add, Edit, x12 y79 w140 h20 vNachname,
Gui, 1:Add, Edit, x12 y129 w140 h20 vemail,
Gui, 1:Add, Edit, x182 y29 w80 h20 Number vkdnnummer,
Gui, 1:Add, Edit, x182 y79 w80 h20 Number vABNummer,
Gui, 1:Add, CheckBox, x182 y129 w80 h20 vtelefoniert, Telefoniert ?
Gui, 1:Add, Text, x182 y59 w80 h20 +BackgroundTrans, AB Nummer
Gui, 1:Add, Text, x182 y9 w80 h20 +BackgroundTrans, Kundennummer
Gui, 1:Add, Text, x12 y9 w100 h20 +BackgroundTrans, Anrede
Gui, 1:Add, Text, x12 y59 w90 h20 +BackgroundTrans, Nachname
Gui, 1:Add, Text, x12 y109 w90 h30 +BackgroundTrans, E-Mail Adresse
Gui, 1:Add, Text, x12 y159 w80 h30 +BackgroundTrans, Thema
Gui, 1:Add, DropDownList, x12 y180 w140 vThema, AB|Bild AB |
Gui, 1:Add, Button, x12 y299 w100 h30 gDateiWaehlenInterface, Datei wählen
Gui, 1:Add, Button, x172 y299 w100 h30 gHauptmenu, Abbrechen
; ### Menu ###
{
Menu, FileMenu, Add, Position speichern, ini1, MenuHandler
Menu, FileMenu, Add, Exit, 1GuiClose, MenuHandler
Menu, MyMenuBar, Add, &Datei, :FileMenu
Gui, 1:Menu, MyMenuBar
}
Gui, 1:Show, %x1% %y1% h347 w291, E-Mail Generator
Return
1GuiClose:
Gui, 1:Destroy
Goto, Hauptmenu
return
DateiWaehlenInterface:
Gui, 1: Submit
#Include, %A_ScriptDir%\Systeme\PDF_Check.ahk
if (PDF = "1")
{
send !e
Hat jemand eine Idee, woran das liegen könnte ? Eventuell an der Anzahl der Zeilen ?