Expression too long

Stelle Fragen zur Programmierung mit Autohotkey

Moderator: jNizM

effel
Posts: 542
Joined: 16 Jan 2018, 13:34

Expression too long

Post by effel » 21 Jun 2021, 13:38

Hallo, bei meinem Stöberfund https://www.autohotkey.com/boards/viewtopic.php?f=76&t=62441#p403267 komme ich an Grenzen, ich habe nach Array Manier versucht das oMenu aufzuteilen, aber irgendwie bekomme ich die Klammern nicht hin.

Kann ich das oMenu auch einzeln 'anlegen'?

Code: Select all

oMenu := {Main:[ {name: "Item1", icon: "Shell32,45", L: RunCalc}]}
oMenu .= {Main:[ {name: "Item2", icon: "Shell32,45", L: RunCalc}]}
irgendwie ich hab Ladehemmung, dachte eigentlich das geht so?!

In beiden Versionen bin ich fast an der Expression too long Grenze.

Code: Select all

;DefaultGuiMenu.ahk

oMenu := {MyMenuBar: [ {text: "&File", label: {FileMenu: [ {text: "sbahn &nippes",  icon: "", label: "nippes"}
                                                         , {text: "&a2",  icon: "", label: "LABEL2"} 
                                                         , {} ; separator
                                                         , {text: "&c3", icon: "", label: "LABEL3"} 
                                                         , {text: "&d4", icon: "", label: "LABEL4"} 
                                                         , {text: "&e5", icon: "", label: "LABEL5"} 
                                                         , {text: "&f6", icon: "", label: "LABEL6"} 
                                                         , {text: "&g7", icon: "", label: "LABEL7"} 
                                                         , {text: "&h8", icon: "", label: "LABEL8"} 
                                                         , {text: "&i9", icon: "", label: "LABEL9"} 
                                                         , {text: "&j10", icon: "", label: "LABEL10"} ]}}
                     , {text: "&MenuA", label: {MenuMenuA: [ {text: "&aLABEL1",     icon: "", label: "LABEL1"}
                                                         , {text: "&bLABEL2",  icon: "", label: "LABEL2"}
                                                         , {text: "&cLABEL3", icon: "", label: "LABEL3"} ]}}
                     , {text: "&MenuB", label: {MenuMenuB: [ {text: "&bLABEL1",     icon: "", label: "LABEL1"}
                                                         , {text: "&cLABEL2",  icon: "", label: "LABEL2"}
                                                         , {text: "&dLABEL3", icon: "", label: "LABEL3"} ]}}
                     , {text: "&MenuC", label: {MenuMenuC: [ {text: "&cLABEL1",     icon: "", label: "LABEL1"}
                                                         , {text: "&dLABEL2",  icon: "", label: "LABEL2"}
                                                         , {text: "&eLABEL3", icon: "", label: "LABEL3"} ]}}
                     , {text: "&MenuD", label: {MenuMenuD: [ {text: "&dLABEL1",     icon: "", label: "LABEL1"}
                                                         , {text: "&eLABEL2",  icon: "", label: "LABEL2"}
                                                         , {text: "&fLABEL3", icon: "", label: "LABEL3"} ]}}
                     , {text: "&MenuE", label: {MenuMenuwE: [ {text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                         , {text: "&fLABEL2",  icon: "", label: "LABEL2"}
                                                         , {} ; separator
                                                         , {text: "&gLABEL3", icon: "", label: "LABEL3"} ]}} ]}
                     
Gui, +Resize  ; Make the window resizable.
Gui, Menu, % CreateMenu(oMenu)
Gui, Add, Text, vTextSpace WantTab W600 R20, %strGlobalWelcomeText%
Gui, Show,, Untitled
Return

GuiClose:
   ExitApp
                   
nippes() {
;Nippes     :=         Func("Run").Bind("V:\__ahk projekte aktuell\InternetMovieDatenbank Parts\Array2ListView - Nippes.ahk")
run, V:\__ahk projekte aktuell\InternetMovieDatenbank Parts\Array2ListView - Nippes.ahk
;   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL1() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL2() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL3() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL4() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL5() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL6() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL7() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL8() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL9() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL10() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   

Run(Target) {
    Run, % Target
    return
}

CreateMenu(oMenu) {
   for k, v in oMenu {
      for i, v in v {
         if !IsObject(v.label)
            Menu, % k, Add, % v.text, % v.label
         else 
            Menu, % k, Add, % v.text, % ":" CreateMenu(v.label)
         if v.icon {
            RegExMatch(v.icon, "(?<file>[^,]+)(,(?<num>.+))?", _)
            Menu, % k, Icon, % v.text, % _file, % _num
         }
      }
   }
   Return k
}

Code: Select all

s11 := "Shell32,11"
s12 := "Shell32,12"
s13 := "Shell32,13"
s14 := "Shell32,14"
s15 := "Shell32,15"
s16 := "Shell32,16"
s17 := "Shell32,17"
s18 := "Shell32,18"
s19 := "Shell32,19"
s20 := "Shell32,20"
s21 := "Shell32,21"
s22 := "Shell32,22"
s23 := "Shell32,23"
s24 := "Shell32,24"
s25 := "Shell32,25"
s26 := "Shell32,26"
s27 := "Shell32,27"
s28 := "Shell32,28"
s29 := "Shell32,29"
s30 := "Shell32,30"
s31 := "Shell32,31"
s32 := "Shell32,32"
s33 := "Shell32,33"
s34 := "Shell32,34"
s35 := "Shell32,35"
s36 := "Shell32,36"
s37 := "Shell32,37"
s38 := "Shell32,38"
s39 := "Shell32,39"
s40 := "Shell32,40"
s41 := "Shell32,41"
s42 := "Shell32,42"
s43 := "Shell32,43"
s44 := "Shell32,44"
s45 := "Shell32,45"
s46 := "Shell32,46"
s47 := "Shell32,47"
s48 := "Shell32,48"
s49 := "Shell32,49"
RunCalc := Func("Run").Bind("calc.exe")
prog1 := Func("Run").Bind("calc.exe")
oMenu := {Main:[ {name: "Item23", icon: s23, L: RunCalc}
               , {name: "Item24", icon: s24, L: "MenuHandler1"}
               , {name: "Item25", icon: s25, L: prog1}
               , {name: "Item26", icon: s26, L: prog1}
               , {name: "Item27", icon: s27, L: prog1}
               , {name: "Item28", icon: s28, L: prog1}
               , {name: "Item29", icon: s29, L: prog1}
               , {name: "Item30", icon: s30, L: prog1}
               , {name: "Item31", icon: s31, L: prog1}
               , {name: "Item32", icon: s32, L: prog1}
               , {name: "Item33", icon: s33, L: prog1}
               , {name: "Item34", icon: s34, L: prog1}
               , {name: "Item35", icon: s35, L: prog1}
               , {name: "Item36", icon: s36, L: prog1}
               , {name: "Item37", icon: s37, L: prog1}
               , {name: "Item38", icon: s36, L: prog1}
               , {name: "Item39", icon: s39, L: prog1}
               , {name: "Item40", icon: s40, L: prog1}
               , {name: "Item41", icon: s41, L: prog1}
               , {name: "Item42", icon: s42, L: prog1}
               , {name: "Item43", icon: s43, L: prog1}
               , {}
               , {name: "Item22", icon: "Shell32,47", L: {SubMenu:[ {name: "Item1", icon: s48, L: RunCalc}
                                                                     , {name: "Item11", icon: s11, L: "MenuHandler2"}
                                                                     , {name: "Item12", icon: s12, L: "MenuHandler2"}
                                                                     , {name: "Item13", icon: s13, L: "MenuHandler2"}
                                                                     , {name: "Item14", icon: s14, L: "MenuHandler2"}
                                                                     , {name: "Item15", icon: s15, L: "MenuHandler2"}
                                                                     , {name: "Item16", icon: s16, L: "MenuHandler2"}
                                                                     , {name: "Item17", icon: s17, L: "MenuHandler2"}
                                                                     , {name: "Item18", icon: s18, L: "MenuHandler2"}
                                                                     , {name: "Item19", icon: s19, L: "MenuHandler2"}
                                                                     , {name: "Item20", icon: s20, L: "MenuHandler2"}
                                                                     , {name: "Item21", icon: s21, L: "MenuHandler2"}
                                                                     , {name: "Item22", icon: s22, L: "MenuHandler2"} ]}} ]}
menuName := CreateMenu(oMenu)
Menu,%menuName%, Show
Return

CreateMenu(oMenu) {
   for k, v in oMenu {
      for i, v in v {
         if v.hidden
            continue
         if !IsObject(v.L)
            Menu, % k, Add, % v.name, % v.L
         else if (v.L.Count() = "") {
            handler := v.L
            Menu, % k, Add, % v.name, % handler
         }
         else 
            Menu, % k, Add, % v.name, % ":" CreateMenu(v.L)
         if v.disabled
            Menu, % k, Disable, % v.name
         if v.icon {
            RegExMatch(v.icon, "(?<file>[^,]+)(,(?<num>.+))?", _)
            Menu, % k, Icon, % v.name, % _file, % _num
         }
      }
   }
   Return k
}

MenuHandler1() {
   MsgBox, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem
}

MenuHandler2() {
   MsgBox, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem
}

Run(Target) {
   Run, % Target
}
Unbenannt.png
Unbenannt.png (24.42 KiB) Viewed 1176 times
just me
Posts: 9423
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Expression too long

Post by just me » 23 Jun 2021, 00:50

Moin,

'fast an der Expression too long Grenze' ist wohl etwas untertrieben. Wenn Du die Fehlermeldung bekommst, bist Du drüber.

Der . (Punkt) Operator hilft hier nicht weiter. Damit kann man nur Zeichenketten verbinden. Warum muss es denn überhaupt ein Objekt sein? Welchen Vorteil bringt Dir das?
effel
Posts: 542
Joined: 16 Jan 2018, 13:34

Re: Expression too long

Post by effel » 23 Jun 2021, 06:46

just me wrote:
23 Jun 2021, 00:50
Warum muss es denn überhaupt ein Objekt sein? Welchen Vorteil bringt Dir das?
Hallo Just Me, es muss kein Object sein, es geht ja auch anders, aber mir stellte sich halt die Frage, ob man das oben gepostete Menu im gleichen Stil erweitern kann, indem ich nur die schon erstellten Menu Punkte durch copy/paste erweitere.


... was ich auch schon gemacht habe, das Original sieht so aus:

Code: Select all

oMenu := {Main:[ {name: "Item1", icon: "Shell32,45", label: RunCalc}
               , {name: "Item2", icon: "Shell32,46", label: "MenuHandler1"}
               , {}
               , {name: "Item3", icon: "Shell32,47", label: {SubMenu:[ {name: "Item1", icon: "Shell32,48", label: "MenuHandler2"} 
                                                                     , {name: "Item2", icon: "Shell32,49", label: "MenuHandler2"} ]}} ]}
Und da kam mir der Gedanke ob es evt. so gehen könnte, wie es bei dem folgenden UnHTML5(HTM) gemacht wird.

Code: Select all

    HEN := "
    ( LTrim Join
                   {HTML5:,Tab:9,NewLine:10,excl:33,quot:34,QUOT:34,num:35,dollar:36,percnt:37,amp:3
    ..............
    edge:8896,Wedge:8896,bigwedge:8896,xvee:8897,Vee:8897,bigvee:8897,xcap:8898,Intersection:8898,bi
  )"

    HEN .= "
  ( LTrim Join
    gcap:8898,xcup:8899,Union:8899,bigcup:8899,diam:8900,diamond:8900,Diamond:8900,sdot:8901,sstarf:
    ..............
    20168,xopf:120169,yopf:120170,}
  )" 
just me
Posts: 9423
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Expression too long

Post by just me » 24 Jun 2021, 06:46

Moin!
effel wrote:... aber mir stellte sich halt die Frage, ob man das oben gepostete Menu im gleichen Stil erweitern kann, indem ich nur die schon erstellten Menu Punkte durch copy/paste erweitere.
Es geht ja, das Limit ist allerdings die Anzahl der in einer Operation erkannten Ausdrücke. Die ist leider nach wie vor recht niedrig.
Und da kam mir der Gedanke ob es evt. so gehen könnte, ...
Wie schon gesagt, das geht nur für Zeichenketten.

Für 'flache' Menüstrukturen könntest Du auf so etwas ausweichen:

Code: Select all

oMenu := {}
oMenu["MyMenubar", 1] := {text: "&File",  label: {FileMenu:   [{text: "sbahn &nippes",  icon: "", label: "nippes"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&c3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&j10", icon: "", label: "LABEL10"}]}}
oMenu["MyMenubar", 1] := {text: "&MenuA", label: {MenuMenuA:  [{text: "&aLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&bLABEL2",  icon: "", label: "LABEL2"}
                                                             , {text: "&cLABEL3", icon: "", label: "LABEL3"} ]}})
oMenu["MyMenubar", 2] := {text: "&MenuB", label: {MenuMenuB:  [{text: "&bLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&cLABEL2",  icon: "", label: "LABEL2"}
                                                             , {text: "&dLABEL3", icon: "", label: "LABEL3"} ]}}
oMenu["MyMenubar", 3] := {text: "&MenuC", label: {MenuMenuC:  [{text: "&cLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&dLABEL2",  icon: "", label: "LABEL2"}
                                                             , {text: "&eLABEL3", icon: "", label: "LABEL3"} ]}}
oMenu["MyMenubar", 4] := {text: "&MenuD", label: {MenuMenuD:  [{text: "&dLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&eLABEL2",  icon: "", label: "LABEL2"}
                                                             , {text: "&fLABEL3", icon: "", label: "LABEL3"} ]}}
oMenu["MyMenubar", 5] := {text: "&MenuE", label: {MenuMenuwE: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&fLABEL2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&gLABEL3", icon: "", label: "LABEL3"} ]}}
Ob Dir das hilft, kannst aber nur Du beurteilen.
effel
Posts: 542
Joined: 16 Jan 2018, 13:34

Re: Expression too long

Post by effel » 24 Jun 2021, 17:37

wie cool 🙂

Dankeschön !
just me wrote:
24 Jun 2021, 06:46
Es geht ja, das Limit ist allerdings die Anzahl der in einer Operation erkannten Ausdrücke. Die ist leider nach wie vor recht niedrig.
Dieses Limit konnte ich mit dieser übertrieben gemoppelten Menu Gui nicht überschreiten

Code: Select all

oMenu := {}

oMenu["MyMenubar", 1] := {text: "&Menuq", label: {MenuMenuq:  [{text: "&aLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 2] := {text: "&MenuA", label: {MenuMenuA:  [{text: "&aLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 3] := {text: "&MenuB", label: {MenuMenuB:  [{text: "&bLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 4] := {text: "&MenuC", label: {MenuMenuC:  [{text: "&cLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 5] := {text: "&MenuD", label: {MenuMenuD:  [{text: "&dLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 6] := {text: "&MenuE", label: {MenuMenuwE: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 7] := {text: "&MenuF", label: {MenuMenuwF: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 8] := {text: "&MenuG", label: {MenuMenuwG: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 9] := {text: "&MenuH", label: {MenuMenuwH: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 10] := {text: "&MenuI", label: {MenuMenuwI: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 11] := {text: "&MenuJ", label: {MenuMenuwJ: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}

oMenu["MyMenubar", 12] := {text: "&MenuK", label: {MenuMenuwK: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 13] := {text: "&MenuL", label: {MenuMenuwL: [{text: "&eLABEL1",     icon: "", label: "LABEL1"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


oMenu["MyMenubar", 14] := {text: "&MenuM", label: {FileMenM:   [{text: "sbahn &nippes",  icon: "", label: "nippes"}
                                                             , {text: "&a2",  icon: "", label: "LABEL2"}
                                                             , {} ; separator
                                                             , {text: "&ExtraLangerNameFürDiese Schaltfläche 3", icon: "", label: "LABEL3"}
                                                             , {text: "&d4", icon: "", label: "LABEL4"}
                                                             , {text: "&e5", icon: "", label: "LABEL5"}
                                                             , {text: "&f6", icon: "", label: "LABEL6"}
                                                             , {text: "&g7", icon: "", label: "LABEL7"}
                                                             , {text: "&h8", icon: "", label: "LABEL8"}
                                                             , {text: "&i9", icon: "", label: "LABEL9"}
                                                             , {text: "&i10", icon: "", label: "LABEL10"}
                                                             , {text: "&i11", icon: "", label: "LABEL11"}
                                                             , {text: "&i12", icon: "", label: "LABEL12"}
                                                             , {text: "&i13", icon: "", label: "LABEL13"}
                                                             , {text: "&i14", icon: "", label: "LABEL14"}
                                                             , {text: "&i15", icon: "", label: "LABEL15"}
                                                             , {text: "&i16", icon: "", label: "LABEL16"}
                                                             , {text: "&i17", icon: "", label: "LABEL17"}
                                                             , {text: "&i18", icon: "", label: "LABEL18"}
                                                             , {text: "&i19", icon: "", label: "LABEL19"}
                                                             , {text: "&i20", icon: "", label: "LABEL20"}
                                                             , {text: "&i21", icon: "", label: "LABEL21"}
                                                             , {text: "&i22", icon: "", label: "LABEL22"}
                                                             , {text: "&i23", icon: "", label: "LABEL23"}
                                                             , {text: "&i24", icon: "", label: "LABEL24"}
                                                             , {text: "&i25", icon: "", label: "LABEL25"}
                                                             , {text: "&i26", icon: "", label: "LABEL26"}
                                                             , {text: "&i27", icon: "", label: "LABEL27"}
                                                             , {text: "&i28", icon: "", label: "LABEL28"}
                                                             , {text: "&i29", icon: "", label: "LABEL29"}
                                                             , {text: "&i30", icon: "", label: "LABEL30"}
                                                             , {text: "&i31", icon: "", label: "LABEL32"} ]}}


Gui, +Resize  ; Make the window resizable.
Gui, Menu, % CreateMenu(oMenu)
Gui, Add, Text, vTextSpace WantTab W600 R20, %strGlobalWelcomeText%
Gui, Show,, Untitled
Return

GuiClose:
   ExitApp
                   
nippes() {
;Nippes     :=         Func("Run").Bind("V:\__ahk projekte aktuell\InternetMovieDatenbank Parts\Array2ListView - Nippes.ahk")
run, V:\__ahk projekte aktuell\InternetMovieDatenbank Parts\Array2ListView - Nippes.ahk
;   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL1() {
run,% "notepad.exe " a_scriptname
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL2() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL3() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}

LABEL4() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL5() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL6() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL7() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL8() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL9() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   
LABEL10() {
   MsgBox,,, % "This Menu: " . A_ThisMenu . "`nMenu Item: " . A_ThisMenuItem,1
}
                   

LABEL11:
LABEL12:
LABEL13:
LABEL14:
LABEL15:
LABEL16:
LABEL17:
LABEL18:
LABEL19:
LABEL20:
LABEL21:
LABEL22:
LABEL23:
LABEL24:
LABEL25:
LABEL26:
LABEL27:
LABEL28:
LABEL29:
LABEL30:
LABEL31:
LABEL32:
return




Run(Target) {
    Run, % Target
    return
}

CreateMenu(oMenu) {
   for k, v in oMenu {
      for i, v in v {
         if !IsObject(v.label)
            Menu, % k, Add, % v.text, % v.label
         else 
            Menu, % k, Add, % v.text, % ":" CreateMenu(v.label)
         if v.icon {
            RegExMatch(v.icon, "(?<file>[^,]+)(,(?<num>.+))?", _)
            Menu, % k, Icon, % v.text, % _file, % _num
         }
      }
   }
   Return k
}
Post Reply

Return to “Ich brauche Hilfe”