function buttonFire(%val) { mouseFire(%val); } package ButtonFire { function OptionsDlg: onWake( %this ) {//Classic key binding if($ButtonBind $= "false") { $RemapName[$RemapCount]="Button Fire"; $RemapCmd[$RemapCount]="buttonFire"; $RemapCount++; $ButtonBind = "true"; } parent: onWake( %this ); } }; $ButtonBind = "false"; activatePackage(ButtonFire);