MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ConvertBlockInput

Method ConvertBlockInput

source/script.h:1191–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189 }
1190
1191 static ToggleValueType ConvertBlockInput(LPTSTR aBuf)
1192 {
1193 if (ToggleValueType toggle = ConvertOnOff(aBuf))
1194 return toggle;
1195 if (!_tcsicmp(aBuf, _T("Send"))) return TOGGLE_SEND;
1196 if (!_tcsicmp(aBuf, _T("Mouse"))) return TOGGLE_MOUSE;
1197 if (!_tcsicmp(aBuf, _T("SendAndMouse"))) return TOGGLE_SENDANDMOUSE;
1198 if (!_tcsicmp(aBuf, _T("Default"))) return TOGGLE_DEFAULT;
1199 if (!_tcsicmp(aBuf, _T("MouseMove"))) return TOGGLE_MOUSEMOVE;
1200 if (!_tcsicmp(aBuf, _T("MouseMoveOff"))) return TOGGLE_MOUSEMOVEOFF;
1201 return TOGGLE_INVALID;
1202 }
1203
1204 static SendModes ConvertSendMode(LPTSTR aBuf, SendModes aValueToReturnIfInvalid)
1205 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected