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

Method ConvertRunMode

source/script.h:1252–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250 }
1251
1252 static int ConvertRunMode(LPTSTR aBuf)
1253 // Returns the matching WinShow mode, or SW_SHOWNORMAL if none.
1254 // These are also the modes that AutoIt3 uses.
1255 {
1256 if (!aBuf || !*aBuf) return SW_SHOWNORMAL;
1257 if (!_tcsicmp(aBuf, _T("MIN"))) return SW_MINIMIZE;
1258 if (!_tcsicmp(aBuf, _T("MAX"))) return SW_MAXIMIZE;
1259 if (!_tcsicmp(aBuf, _T("HIDE"))) return SW_HIDE;
1260 return SW_SHOWNORMAL;
1261 }
1262
1263 static int ConvertMouseButton(LPTSTR aBuf, bool aAllowWheel = true)
1264 // Returns the matching VK, or zero if none.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected