Dragonshadow Posted September 23, 2010 Share Posted September 23, 2010 I want to be able to select a window and then it's handle so I can pass that to a script that will remove the menu bar and border, then I can set it's resolution and place it at 0,0. How would I go about selecting the window? Link to comment Share on other sites More sharing options...
LurchMan Posted September 23, 2010 Share Posted September 23, 2010 I want to be able to select a window and then it's handle so I can pass that to a script that will remove the menu bar and border, then I can set it's resolution and place it at 0,0. How would I go about selecting the window?Look at WinActivate () in the help file. It returns the HWND if successful. Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
Dragonshadow Posted September 23, 2010 Author Share Posted September 23, 2010 (edited) Look at WinActivate () in the help file. It returns the HWND if successful.Ehh, I don't want to get it from the next window activated. I want to get it from the selected window. (either select with mouse or mouse+key) Edited September 23, 2010 by Dragonshadow Link to comment Share on other sites More sharing options...
whim Posted September 23, 2010 Share Posted September 23, 2010 (edited) Here's a snippet: HotKeySet("{Esc}", "Stop") While 1 Tooltip(" Active Window handle: " & WinGetHandle("[ACTIVE]") ) Sleep(30) Wend Func Stop() Exit EndFunc cheers, whim [edit: expanded into runnable example] Edited September 23, 2010 by whim Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now