e.g., I can move notepad++ but not opera. I imagine this is because opera runs multiple processes so the line "iParam = GetMainWindowHandle(groups[2].Value.Trim());" likely fails or if it is on a different desktop it might be 0.
Or possibly because I use a vbs script to launch opera and so it is hidden behind wscript. But trying to move wscript also fails to find the windows. Just seems like a more robust solution would be preferable.