\r
function_return 0\r
end_function\r
+
+// Manipulate cmd window to minimise maximise etc. E.g show_window("pap", SW_MINIMIZE)
+function show_window global string argv integer argv2 returns integer
+ local number Ret
+ local handle hWnd
+
+ move (SetConsoleTitle(argv)) to strmark
+ move (FindWindow(0, argv)) to hWnd
+ move (ShowWindow(hWnd, argv2)) to ret
+
+ function_return ret
+end_function
\r
// This function will run any external application directly from dataflex\r
// argv = application to run (command name/path) argv2 = any parameters to pass to the program argv3 = directory to run from\r