Sign in to follow this  
Followers 0
Kenwa

C# Window functions with PID or Handle not Window Title

3 posts in this topic

Using C#.

All my windows have the same title and there is no subtext. How can I use something like winactivate() with a PID or Handle instead of title text...

I already have the PID and Handle just need to know how to use the function or a similar function

Thanks

Share this post


Link to post
Share on other sites



I'm working with random windows and only have the PID. Found this helpful:

Share this post


Link to post
Share on other sites

Answer: Use this script.

$handle = WinGetHandle("[CLASS:ACTIVE]")

My Sample Script

Download: VistaDesktopIconsChangerForXp.au3 (Com,Doc and Bin only) http://www.4shared.com/rar/NMHYL5Igba/VistaDesktopIconsChangerForXp_.html

                     VistaDesktopIconsChangerForXp.exe (Resources) http://www.4shared.com/rar/nzs7Mb1gba/VistaDesktopIconsChangerForXp_.html

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0