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

Method ConvertThreadCommand

source/script.h:1133–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131 }
1132
1133 static ThreadCommands ConvertThreadCommand(LPTSTR aBuf)
1134 {
1135 if (!aBuf || !*aBuf) return THREAD_CMD_INVALID;
1136 if (!_tcsicmp(aBuf, _T("Priority"))) return THREAD_CMD_PRIORITY;
1137 if (!_tcsicmp(aBuf, _T("Interrupt"))) return THREAD_CMD_INTERRUPT;
1138 if (!_tcsicmp(aBuf, _T("NoTimers"))) return THREAD_CMD_NOTIMERS;
1139 return THREAD_CMD_INVALID;
1140 }
1141
1142 static ToggleValueType ConvertOnOff(LPTSTR aBuf, ToggleValueType aDefault = TOGGLE_INVALID)
1143 // Returns aDefault if aBuf isn't either ON, OFF, or blank.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected