kiwijunglist

Untitled

Jul 29th, 2013
436
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #persistent
  2.  
  3. ; 1- Item
  4. ; 2- Tree
  5. ;   1- Item
  6. ; 3- Item
  7. ; 4- Tree
  8. ;   1- Tree
  9. ;       1- Item
  10. ;       2- Item
  11. ;   2- Item
  12.  
  13. ; Lets Begin
  14.  
  15. ; 1 - Item
  16. Menu, Tray, Add, 1- Item, OneItem
  17.  
  18. ; When doing a submenu the trick is to write the code in reverse,
  19. ; with new lines of code above the previous line
  20. ; 2- Tree
  21. ;   1- Item
  22. ;   2- Item  
  23. Menu, TwoTree, Add, 1- Item, TwoTreeOneItem         ; (3) Code this line third
  24. Menu, TwoTree, Add, 2- Item, TwoTreeTwoItem         ; (2) Code this line second
  25. Menu, Tray, Add, 2- Tree, :TwoTree              ; (1) Code this line first
  26.  
  27. ; 3- Item
  28. Menu, Tray, Add, 3 - Item, ThreeItem
  29.  
  30. ; Now we have will make submenus within submenus
  31. ; If you read the code starting at the last line and moving upwards it makes more sense
  32. ; 4- Tree
  33. ;   1- Tree
  34. ;       1- Item
  35. ;       2- Item
  36. ;   2- Item
  37. Menu, FourTreeOneTree, Add, 2- Item, FourTreeOneTreeTwoItem ; (5) Add item2 to sub menu1
  38. Menu, FourTreeOneTree, Add, 1- Item, FourTreeOneTreeOneItem ; (4) Add item1 to sub menu1
  39. Menu, FourTree, Add, 2- Item, FourTreeTwoItem           ; (3) Add item2 to root menu4
  40. Menu, FourTree, Add, 1- Tree, :FourTreeOneTree          ; (2) Add sub menu1 to root menu4
  41. Menu , Tray, Add, 4- Tree, :FourTree                ; (1) Add root menu4
  42.  
  43.  
  44. ;These are the labels for each submenu item
  45.  
  46. OneItem:
  47. return
  48.  
  49. TwoTreeOneItem:
  50. return
  51.  
  52. TwoTreeTwoItem:
  53. return
  54.  
  55. ThreeItem:
  56. return
  57.  
  58. FourTreeOneTreeOneItem:
  59. return
  60.  
  61. FourTreeOneTreeTwoItem:
  62. return
  63.  
  64. FourTreeTwoItem:
  65. return
RAW Paste Data