Can it be moved by Window Title as well as exe name?
Other info on moving it in another language could be helpful.
Update: some Perl sample can be found in Win32::GuiTest but there seems to be no resize or move functions.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a way to do it in Ruby using win32-api:
This only works if the window is called “firefox” exactly (not case-sensitive from when I tested). Since it is likely to be titled differently (e.g., “Google – Mozilla Firefox”), you’ll probably want to use EnumWindows to enumerate through all windows and find the one you’re looking for.