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

Method ConvertSendMode

source/script.h:1204–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202 }
1203
1204 static SendModes ConvertSendMode(LPTSTR aBuf, SendModes aValueToReturnIfInvalid)
1205 {
1206 if (!_tcsicmp(aBuf, _T("Play"))) return SM_PLAY;
1207 if (!_tcsicmp(aBuf, _T("Event"))) return SM_EVENT;
1208 if (!_tcsnicmp(aBuf, _T("Input"), 5)) // This IF must be listed last so that it can fall through to bottom line.
1209 {
1210 aBuf += 5;
1211 if (!*aBuf || !_tcsicmp(aBuf, _T("ThenEvent"))) // "ThenEvent" is supported for backward compatibility with 1.0.43.00.
1212 return SM_INPUT;
1213 if (!_tcsicmp(aBuf, _T("ThenPlay")))
1214 return SM_INPUT_FALLBACK_TO_PLAY;
1215 //else fall through and return the indication of invalidity.
1216 }
1217 return aValueToReturnIfInvalid;
1218 }
1219
1220 static FileLoopModeType ConvertLoopMode(LPTSTR aBuf)
1221 // Returns the file loop mode, or FILE_LOOP_INVALID if aBuf contains an invalid mode.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected