sharrakor Posted February 4, 2009 Share Posted February 4, 2009 I've tried and tried, but the closest I've come is the ability to check if the current window has a certain title. I'm planning on checking for explorer windows via their PID, as thats all I'd imagine they have in common. Link to comment Share on other sites More sharing options...
jvanegmond Posted February 4, 2009 Share Posted February 4, 2009 $PID = WinGetProcess($hWnd) Returns the process ID of the process that the window (handle) belongs to. github.com/jvanegmond Link to comment Share on other sites More sharing options...
sharrakor Posted February 4, 2009 Author Share Posted February 4, 2009 Hmmm... I get this error: if WinGetProcess($hWnd)=$pid then if WinGetProcess(^ ERROR Error: Variable used without being declared. I have #include <winapi.au3> How can I fix this? Link to comment Share on other sites More sharing options...
jvanegmond Posted February 4, 2009 Share Posted February 4, 2009 You pass a handle to "current window" ( what you described in first post ) instead of $hWnd ... $hWnd means Window Handle, which is a common data type. github.com/jvanegmond Link to comment Share on other sites More sharing options...
sharrakor Posted February 4, 2009 Author Share Posted February 4, 2009 Thanks, I got it now. 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