Of the process I've used for the command param?2: Return the exit code of the process. Useful mainly for debugging.
In that case it seems it doesn't work as it should...
If I open a cmd prompt and execute a tiny program called "Get current keyboard layout.exe"
(which doesn't print anything out by itself)
and afterwards
I get the returncode of that .exe, e.g.echo %errorlevel%
407
or
409
These are the last 3 characters of the output of the Win32 API function GetKeyboardLayout
in this case, either with an english or with a german keyboard layout active
But trying the same from withing XY scripting, the return value is empty...
Code: Select all
$kbl = runret("R:\Get current keyboard layout.exe", <curpath>, 2);