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

Method ConvertEvent

source/script_gui.cpp:2553–2562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2551LPTSTR GuiType::sEventNames[] = GUI_EVENT_NAMES;
2552
2553LPTSTR GuiType::ConvertEvent(GuiEventType evt)
2554{
2555 if (evt < _countof(sEventNames))
2556 return sEventNames[evt];
2557
2558 // Else it's a character code - convert it to a string
2559 static TCHAR sBuf[2] = { 0, 0 };
2560 sBuf[0] = (TCHAR)(UCHAR)evt;
2561 return sBuf;
2562}
2563
2564GuiEventType GuiType::ConvertEvent(LPTSTR evt)
2565{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected