Code: Select all
USBRelay(serial,oc,chan)
{
Run, %comspec% /c CommandApp_USBRelay %serial% %oc% %chan%, , Hide
Return, %ErrorLevel%
}
I can get the return of anything else I try for, while testing I've returned the serial, but I can't figure out how to get the success of the command.If succeed, the command tools will return value 0, else return 1;
The caller can jude the result of execute from the return value.
Code: Select all
sn = 4513
oc = open
chan = 1
result := xUSBRelay(sn,oc,chan)
GuiControl, , devsn, %result%