Dec-10-2022, 09:19 AM
Thanks for all your replies.
I'm not a programmer so grabbed this code off the web ages ago - it works so I didn't change it - I wanted the window to be centre screen and top level i.e not under other windows so I thought some of the commands achieved this.
I'm running the python script from a C++ program using ShellExecuteW on a timer - if a particular file doesn't exist the message window is invoked so I don't want a million windows to appear!
I can't get the ShellExecuteW(hwnd,"find","",path,shcmd) function to work which I could use in the C++ program to control everything.
I'm not a programmer so grabbed this code off the web ages ago - it works so I didn't change it - I wanted the window to be centre screen and top level i.e not under other windows so I thought some of the commands achieved this.
I'm running the python script from a C++ program using ShellExecuteW on a timer - if a particular file doesn't exist the message window is invoked so I don't want a million windows to appear!
I can't get the ShellExecuteW(hwnd,"find","",path,shcmd) function to work which I could use in the C++ program to control everything.