alias GHero { if (!$dialog(GHero)) dialog -m GHero GHero else dialog -v GHero } dialog ghero { title Guitar Hero - Control Panel size -1 -1 200 120 option dbu tab "Bot", 1, 0 0 200 100 text "Bot Nickname", 2, 2 17 34 8, tab 1 nowrap edit "Nick ??", 3, 41 16 50 10, tab 1 text "Bot Owner", 4, 2 28 29 8, tab 1 edit "`FS|DjSoulz", 5, 41 27 50 10, tab 1 read text "Main Channel", 6, 2 39 35 8, tab 1 edit "#GHero", 7, 41 38 50 10, tab 1 read button "Update", 8, 122 85 37 12, tab 1 ok button "Cancel", 9, 161 85 37 12, tab 1 cancel text "Game Status", 10, 102 17 33 8, tab 1 radio "Online", 11, 139 16 28 10, tab 1 radio "Offline", 12, 139 26 32 10, tab 1 tab "Channels", 13 box "Channel Management", 14, 3 15 193 34, tab 13 text "Mode :", 15, 6 22 25 8, tab 13 check "Moderated", 16, 39 21 50 10, tab 13 check "Secret", 17, 39 29 50 10, tab 13 check "Invite", 18, 39 37 50 10, tab 13 check "Private", 19, 93 21 50 10, tab 13 box "Channel Control", 20, 2 49 194 46, tab 13 text "Kick", 21, 5 57 13 8, tab 13 edit "Nickname ?", 22, 23 56 50 10, tab 13 button "Kick Now", 23, 76 56 37 10, tab 13 text "Ban", 24, 5 67 12 8, tab 13 edit "Nickname ?", 25, 23 66 50 10, tab 13 button "Ban Now", 26, 76 66 37 10, tab 13 text "Invite", 27, 5 77 17 8, tab 13 edit "#GHero-HOF", 28, 23 76 41 10, tab 13 read edit "Nickname ?", 29, 66 76 50 10, tab 13 button "Invite Now", 30, 120 76 37 10, tab 13 tab "Users", 31 box "Users Management", 32, 4 15 192 40, tab 31 text "Add User", 33, 7 24 25 8, tab 31 edit "*!*@ ???", 34, 36 23 50 10, tab 31 button "Add", 35, 89 22 37 12, tab 31 text "Delete User", 36, 7 37 28 8, tab 31 edit "*!*@ ???", 37, 38 36 48 10, tab 31 button "Delete", 38, 89 36 37 12, tab 31 } ON *:DIALOG:test1:*:*:{ if ($devent == init) { echo -a Dialog lancé ! } if ($devent == sclick) { if ($did == 1) && ($did(2)) { echo -a Vous venez de cliquer sur le bouton ayant l'id 1, et vous avez entré $did(2) dans l'id 2 ! } else { echo -a Vous n'avez rien rentré dans la case ayant l'id 2 ! } } }