Invoke UDP Argument Example (Magic xpa 2.x)
In order to invoke the SetForegroundWindow function, use the Invoke operation with the '@user32.setForegroundWindow' function.
This function receives one parameter, which is the window handler.
The following three arguments should be defined in the Invoke operation:
'44' – A string where each character represents the argument type. The last character represents the return value type of the function.
Click here for a list of argument types.
In this example, '44' is used since both the function's parameter and the function's return value are of type Long.
WinHWND(0) – The function's parameter. In this example we will send Magic xpa's window handler, so we will use WinHWND(0) to get this value.
RETUDL – The value returned from the function.