exec("./HiAndByegui.gui");moveMap.bind(keyboard, "command h", pushHiAndByegui);if($HiAndByeGUI::CheckboxToggle == 1)I put what I want it to toggle here.
$remapdivision[$remapcount] = "division";$remapname[$remapcount] = "Toggle";$remapcmd[$remapcount] = "openmygui"$remapcount++;function openmygui(%x){ if(%x) { if(myguiname.isawake()) canvas.popdialog(myguiname); else canvas.pushdialog(myguiname); }}function whatevertheguidoes(){ if($boxischecked) { //do something } else { //do something else }}
oh god that code needs workthe exec part is goodthen you need a function to open the gui, and a function to close it.Please do this instead: