Thanks RaceProUK, but in fact, I already tried this function yesterday with a script :
code:
Interop.Call("User32.dll","ShowWindow",ChatWnd.Handle,4);
But this function doesn't worked....
So, I tried this function with an external program,"PureBasic" (
), I get the handle, And I tried again :
code:
ShowWindow_(Handle,4)
Nothing.....
And I tried with Windows Media Player window.... It worked...
I tried too to include the "program filter", I made an external DLL, which compare the process PID in the list and the active window process PID, easy.... but It don't work either (in fact, it works, but sometimes, and "sometimes" is not a good word in programmation...)
I think that my script is going to stop there....................
Thanks guys, I'm going to submit my script to the script DB, thanks again
-----------------
I'm going to make an 'about window' ans submit this script, because a messagebox isn't really beautiful.... xD
-----------------
Done !
>> AutoForeground
(Sorry but I removed the 'Thanks' because the 'about window' was very very big xD.