if ( keystate == "down" ) then MoveAndSteerStart(); else MoveAndSteerStop(); end if ( keystate == "down" ) then MoveForwardStart(); else MoveForwardStop(); end if ( keystate == "down" ) then MoveBackwardStart(); else MoveBackwardStop(); end if ( keystate == "down" ) then TurnLeftStart(); else TurnLeftStop(); end if ( keystate == "down" ) then TurnRightStart(); else TurnRightStop(); end if ( keystate == "down" ) then StrafeLeftStart(); else StrafeLeftStop(); end if ( keystate == "down" ) then StrafeRightStart(); else StrafeRightStop(); end if ( keystate == "down" ) then JumpOrAscendStart(); else AscendStop(); end if ( keystate == "down" ) then SitStandOrDescendStart(); else DescendStop(); end ToggleSheath(); ToggleAutoRun(); if ( keystate == "down" ) then PitchUpStart(); else PitchUpStop(); end if ( keystate == "down" ) then PitchDownStart(); else PitchDownStop(); end ToggleRun(); FollowUnit("target"); ChatFrame_OpenChat(""); ChatFrame_OpenChat("/"); ChatFrame_ChatPageUp(); ChatFrame_ChatPageDown(); ChatFrame_ScrollToBottom(); ChatFrame_ReplyTell(); ChatFrame_ReplyTell2(); ChatFrame2:PageUp(); ChatFrame2:PageDown(); ChatFrame2:ScrollToBottom(); if ( keystate == "down" ) then ActionButtonDown(1); else ActionButtonUp(1); end if ( keystate == "down" ) then ActionButtonDown(2); else ActionButtonUp(2); end if ( keystate == "down" ) then ActionButtonDown(3); else ActionButtonUp(3); end if ( keystate == "down" ) then ActionButtonDown(4); else ActionButtonUp(4); end if ( keystate == "down" ) then ActionButtonDown(5); else ActionButtonUp(5); end if ( keystate == "down" ) then ActionButtonDown(6); else ActionButtonUp(6); end if ( keystate == "down" ) then ActionButtonDown(7); else ActionButtonUp(7); end if ( keystate == "down" ) then ActionButtonDown(8); else ActionButtonUp(8); end if ( keystate == "down" ) then ActionButtonDown(9); else ActionButtonUp(9); end if ( keystate == "down" ) then ActionButtonDown(10); else ActionButtonUp(10); end if ( keystate == "down" ) then ActionButtonDown(11); else ActionButtonUp(11); end if ( keystate == "down" ) then ActionButtonDown(12); else ActionButtonUp(12); end ShapeshiftBar_ChangeForm(1) ShapeshiftBar_ChangeForm(2) ShapeshiftBar_ChangeForm(3) ShapeshiftBar_ChangeForm(4) ShapeshiftBar_ChangeForm(5) ShapeshiftBar_ChangeForm(6) ShapeshiftBar_ChangeForm(7) ShapeshiftBar_ChangeForm(8) ShapeshiftBar_ChangeForm(9) ShapeshiftBar_ChangeForm(10) if ( keystate == "down" ) then BonusActionButtonDown(1); else BonusActionButtonUp(1); end if ( keystate == "down" ) then BonusActionButtonDown(2); else BonusActionButtonUp(2); end if ( keystate == "down" ) then BonusActionButtonDown(3); else BonusActionButtonUp(3); end if ( keystate == "down" ) then BonusActionButtonDown(4); else BonusActionButtonUp(4); end if ( keystate == "down" ) then BonusActionButtonDown(5); else BonusActionButtonUp(5); end if ( keystate == "down" ) then BonusActionButtonDown(6); else BonusActionButtonUp(6); end if ( keystate == "down" ) then BonusActionButtonDown(7); else BonusActionButtonUp(7); end if ( keystate == "down" ) then BonusActionButtonDown(8); else BonusActionButtonUp(8); end if ( keystate == "down" ) then BonusActionButtonDown(9); else BonusActionButtonUp(9); end if ( keystate == "down" ) then BonusActionButtonDown(10); else BonusActionButtonUp(10); end ChangeActionBarPage(1); ChangeActionBarPage(2); ChangeActionBarPage(3); ChangeActionBarPage(4); ChangeActionBarPage(5); ChangeActionBarPage(6); ActionBar_PageDown(); ActionBar_PageUp(); if ( LOCK_ACTIONBAR == "1" ) then LOCK_ACTIONBAR = "0"; else LOCK_ACTIONBAR = "1"; end if ( GetCVar("autoSelfCast") == "1" ) then SetCVar("autoSelfCast", "0"); else SetCVar("autoSelfCast", "1"); end if ( keystate == "up" ) then MultiCastSummonSpellButtonUp(1); end if ( keystate == "down" ) then MultiCastActionButtonDown(1); else MultiCastActionButtonUp(1); end if ( keystate == "down" ) then MultiCastActionButtonDown(2); else MultiCastActionButtonUp(2); end if ( keystate == "down" ) then MultiCastActionButtonDown(3); else MultiCastActionButtonUp(3); end if ( keystate == "down" ) then MultiCastActionButtonDown(4); else MultiCastActionButtonUp(4); end if ( keystate == "up" ) then MultiCastSummonSpellButtonUp(2); end if ( keystate == "down" ) then MultiCastActionButtonDown(5); else MultiCastActionButtonUp(5); end if ( keystate == "down" ) then MultiCastActionButtonDown(6); else MultiCastActionButtonUp(6); end if ( keystate == "down" ) then MultiCastActionButtonDown(7); else MultiCastActionButtonUp(7); end if ( keystate == "down" ) then MultiCastActionButtonDown(8); else MultiCastActionButtonUp(8); end if ( keystate == "up" ) then MultiCastSummonSpellButtonUp(3); end if ( keystate == "down" ) then MultiCastActionButtonDown(9); else MultiCastActionButtonUp(9); end if ( keystate == "down" ) then MultiCastActionButtonDown(10); else MultiCastActionButtonUp(10); end if ( keystate == "down" ) then MultiCastActionButtonDown(11); else MultiCastActionButtonUp(11); end if ( keystate == "down" ) then MultiCastActionButtonDown(12); else MultiCastActionButtonUp(12); end if ( keystate == "up" ) then MultiCastRecallSpellButtonUp(1); end TargetNearestEnemy(); TargetNearestEnemy(1); -- 1 (or "true") means reverse! TargetNearestFriend(); TargetNearestFriend(1); -- 1 (or "true") means reverse! TargetNearestEnemyPlayer(); TargetNearestEnemyPlayer(1); -- 1 (or "true") means reverse! TargetNearestFriendPlayer(); TargetNearestFriendPlayer(1); -- 1 (or "true") means reverse! if ( UnitIsUnit("player", "target") ) then TargetUnit("pet", 1); else TargetUnit("player"); end if ( UnitIsUnit("party1", "target") or UnitHasVehicleUI("party1") ) then TargetUnit("partypet1"); else TargetUnit("party1"); end if ( UnitIsUnit("party2", "target") or UnitHasVehicleUI("party2") ) then TargetUnit("partypet2"); else TargetUnit("party2"); end if ( UnitIsUnit("party3", "target") or UnitHasVehicleUI("party3") ) then TargetUnit("partypet3"); else TargetUnit("party3"); end if ( UnitIsUnit("party4", "target") or UnitHasVehicleUI("party4") ) then TargetUnit("partypet4"); else TargetUnit("party4"); end TargetUnit("pet"); TargetUnit("partypet1"); TargetUnit("partypet2"); TargetUnit("partypet3"); TargetUnit("partypet4"); TargetLastEnemy(); TargetLastTarget(); local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies"); local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends"); if ( SHOW_ENEMIES and not SHOW_FRIENDS ) then SetCVar("nameplateShowEnemies", 0); else SetCVar("nameplateShowEnemies", 1); SetCVar("nameplateShowFriends", 0); end local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies"); local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends"); if ( SHOW_FRIENDS and not SHOW_ENEMIES ) then SetCVar("nameplateShowFriends", 0); else SetCVar("nameplateShowFriends", 1); SetCVar("nameplateShowEnemies", 0); end local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies"); local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends"); if ( not SHOW_ENEMIES and not SHOW_FRIENDS ) then SetCVar("nameplateShowEnemies", 1); SetCVar("nameplateShowFriends", 1); else SetCVar("nameplateShowEnemies", 0); SetCVar("nameplateShowFriends", 0); end if ( not InteractUnit("mouseover") ) then InteractUnit("target"); end InteractUnit("target"); AssistUnit("target"); AttackTarget(); StartAttack(); PetAttack(); FocusUnit("target"); TargetUnit("focus"); TargetUnit("mouseover"); if ( #VOICECHAT_TALKERS > 0 ) then VoiceChatTalkers.buttons[#VOICECHAT_TALKERS].button:Click(); end ToggleCharacter("PaperDollFrame"); ToggleBackpack(); ToggleBag(4); ToggleBag(3); ToggleBag(2); ToggleBag(1); OpenAllBags(); ToggleKeyRing(); ToggleSpellBook(BOOKTYPE_SPELL); ToggleSpellBook(BOOKTYPE_PET); ToggleGlyphFrame(); ToggleTalentFrame(); TogglePVPFrame(); ToggleCharacter("PetPaperDollFrame"); ToggleCharacter("ReputationFrame"); ToggleCharacter("SkillFrame"); ToggleFrame(QuestLogFrame); ToggleGameMenu(); ToggleMinimap(); ToggleFrame(WorldMapFrame); if ( WorldMapFrame:IsShown() ) then WorldMapFrame_ToggleWindowSize(); end ToggleFriendsFrame(); ToggleFriendsFrame(1); ToggleFriendsFrame(2); ToggleFriendsFrame(3); ToggleFriendsFrame(4); ToggleFriendsFrame(5); ToggleLFDParentFrame(); ToggleLFRParentFrame(); ToggleWorldStateScoreFrame(); ToggleBattlefieldMinimap(); ToggleMiniMapRotation(); ChannelPullout_ToggleDisplay(); ToggleAchievementFrame(); ToggleAchievementFrame(1); ToggleCharacter("TokenFrame"); SpellStopCasting(); StopAttack(); Dismount(); Minimap_ZoomIn(); Minimap_ZoomOut(); Sound_ToggleMusic(); Sound_ToggleSound(); Sound_MasterVolumeUp(); Sound_MasterVolumeDown(); if ( GetCVar("VoiceChatSelfMute") == "0" ) then SetCVar("VoiceChatSelfMute", 1); else SetCVar("VoiceChatSelfMute", 0); end if ( UIParent:IsShown() ) then securecall("CloseMenus"); securecall("CloseAllWindows"); UIParent:Hide(); SetUIVisibility(false); ActionStatus_DisplayMessage(format(UI_HIDDEN, GetBindingText(GetBindingKey("TOGGLEUI"), "KEY_"))) else UIParent:Show(); SetUIVisibility(true); end ToggleFramerate(); TakeScreenshot(); NextView(); PrevView(); CameraZoomIn(1.0); CameraZoomOut(1.0); SetView(1); SetView(2); SetView(3); SetView(4); SetView(5); SaveView(1); SaveView(2); SaveView(3); SaveView(4); SaveView(5); ResetView(1); ResetView(2); ResetView(3); ResetView(4); ResetView(5); FlipCameraYaw(180); if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 1); else MultiActionButtonUp("MultiBarBottomLeft", 1); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 2); else MultiActionButtonUp("MultiBarBottomLeft", 2); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 3); else MultiActionButtonUp("MultiBarBottomLeft", 3); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 4); else MultiActionButtonUp("MultiBarBottomLeft", 4); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 5); else MultiActionButtonUp("MultiBarBottomLeft", 5); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 6); else MultiActionButtonUp("MultiBarBottomLeft", 6); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 7); else MultiActionButtonUp("MultiBarBottomLeft", 7); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 8); else MultiActionButtonUp("MultiBarBottomLeft", 8); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 9); else MultiActionButtonUp("MultiBarBottomLeft", 9); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 10); else MultiActionButtonUp("MultiBarBottomLeft", 10); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 11); else MultiActionButtonUp("MultiBarBottomLeft", 11); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomLeft", 12); else MultiActionButtonUp("MultiBarBottomLeft", 12); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 1); else MultiActionButtonUp("MultiBarBottomRight", 1); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 2); else MultiActionButtonUp("MultiBarBottomRight", 2); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 3); else MultiActionButtonUp("MultiBarBottomRight", 3); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 4); else MultiActionButtonUp("MultiBarBottomRight", 4); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 5); else MultiActionButtonUp("MultiBarBottomRight", 5); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 6); else MultiActionButtonUp("MultiBarBottomRight", 6); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 7); else MultiActionButtonUp("MultiBarBottomRight", 7); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 8); else MultiActionButtonUp("MultiBarBottomRight", 8); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 9); else MultiActionButtonUp("MultiBarBottomRight", 9); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 10); else MultiActionButtonUp("MultiBarBottomRight", 10); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 11); else MultiActionButtonUp("MultiBarBottomRight", 11); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarBottomRight", 12); else MultiActionButtonUp("MultiBarBottomRight", 12); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 1); else MultiActionButtonUp("MultiBarRight", 1); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 2); else MultiActionButtonUp("MultiBarRight", 2); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 3); else MultiActionButtonUp("MultiBarRight", 3); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 4); else MultiActionButtonUp("MultiBarRight", 4); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 5); else MultiActionButtonUp("MultiBarRight", 5); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 6); else MultiActionButtonUp("MultiBarRight", 6); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 7); else MultiActionButtonUp("MultiBarRight", 7); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 8); else MultiActionButtonUp("MultiBarRight", 8); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 9); else MultiActionButtonUp("MultiBarRight", 9); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 10); else MultiActionButtonUp("MultiBarRight", 10); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 11); else MultiActionButtonUp("MultiBarRight", 11); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarRight", 12); else MultiActionButtonUp("MultiBarRight", 12); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 1); else MultiActionButtonUp("MultiBarLeft", 1); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 2); else MultiActionButtonUp("MultiBarLeft", 2); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 3); else MultiActionButtonUp("MultiBarLeft", 3); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 4); else MultiActionButtonUp("MultiBarLeft", 4); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 5); else MultiActionButtonUp("MultiBarLeft", 5); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 6); else MultiActionButtonUp("MultiBarLeft", 6); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 7); else MultiActionButtonUp("MultiBarLeft", 7); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 8); else MultiActionButtonUp("MultiBarLeft", 8); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 9); else MultiActionButtonUp("MultiBarLeft", 9); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 10); else MultiActionButtonUp("MultiBarLeft", 10); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 11); else MultiActionButtonUp("MultiBarLeft", 11); end if ( keystate == "down" ) then MultiActionButtonDown("MultiBarLeft", 12); else MultiActionButtonUp("MultiBarLeft", 12); end SetRaidTargetIcon("target", 1); SetRaidTargetIcon("target", 2); SetRaidTargetIcon("target", 3); SetRaidTargetIcon("target", 4); SetRaidTargetIcon("target", 5); SetRaidTargetIcon("target", 6); SetRaidTargetIcon("target", 7); SetRaidTargetIcon("target", 8); SetRaidTarget("target", 0); VehicleExit(); VehiclePrevSeat(); VehicleNextSeat(); if ( keystate == "down" ) then VehicleAimUpStart(); else VehicleAimUpStop(); end if ( keystate == "down" ) then VehicleAimDownStart(); else VehicleAimDownStop(); end VehicleAimIncrement(0.1); VehicleAimDecrement(0.1); VehicleCameraZoomIn(1.0); VehicleCameraZoomOut(1.0); MusicPlayer_PlayPause(); MusicPlayer_NextTrack(); MusicPlayer_BackTrack(); MusicPlayer_VolumeUp(); MusicPlayer_VolumeDown(); MovieRecording_Toggle(); if(MovieRecording_IsRecording() or MovieRecording_IsCompressing()) then MacOptionsCancelFrame:Show(); end MovieRecording_SearchUncompressedMovie(true); MovieRecording_ToggleGUI();