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

Method ParseMoveParams

source/script_gui.cpp:1150–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148
1149
1150ResultType GuiType::ParseMoveParams(int aCoord[4], ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount)
1151{
1152 ResultType result = OK;
1153 for (int i = 0; i < 4; ++i)
1154 {
1155 aCoord[i] = COORD_UNSPECIFIED; // Set default (also used in case of error).
1156 if (ParamIndexIsOmitted(i))
1157 continue;
1158 else if (!ParamIndexIsNumeric(i))
1159 result = result ? aResultToken.ParamError(i, aParam[i], _T("Number")) : FAIL; // But continue so all of aCoord is initialized.
1160 else
1161 aCoord[i] = ParamIndexToInt(i);
1162 }
1163 return result;
1164}
1165
1166
1167ResultType GuiType::ControlMove(GuiControlType &aControl, int xpos, int ypos, int width, int height)

Callers 1

InvokeMethod · 0.80

Calls 1

ParamErrorMethod · 0.80

Tested by

no test coverage detected