Forum Discussion
Ryan_Moran
11 years agoValued Contributor
That was an interesting idea to use the rundll32 to call SetWindowPos....seemed like it should work but for whatever reason it goes off into space and never returns when I attempted it. Maybe someone else here can improve on this and explain why this doesn't work:
wshell = new ActiveXObject('WScript.Shell');
wshell.run("notepad");
var myWindow = Sys.Process("notepad").Window("*Notepad*");
wshell.run('rundll32.exe user32.dll,SetWindowPos ' + myWindow.Handle + ' -1 0 0 0 0 1');
Related Content
- 15 years ago
- 3 years ago
Recent Discussions
- 4 days ago
- 4 days ago