Vb.net Process.GetCurrentProcess
Posted: July 15th, 2011, 10:02 pm
So I'm trying to make a boss key in VB
(See this useful-tools-f69/a-boss-tool-t944.html)
I have everything working, I know how to hide it and I know how to make the hotkey.
The problem is getting the application I want to hide. I used this.
thinking that it would give me the process that is currently maximized.
But instead of that, it always returns the application that is running (My application)
I already did a google search with no results, so I'm asking any vb users here, how do you find the process that is currently maximized.
(See this useful-tools-f69/a-boss-tool-t944.html)
I have everything working, I know how to hide it and I know how to make the hotkey.
The problem is getting the application I want to hide. I used this.
Code: Select all
Dim p as Process.GetCurrentProcess()
thinking that it would give me the process that is currently maximized.
But instead of that, it always returns the application that is running (My application)
I already did a google search with no results, so I'm asking any vb users here, how do you find the process that is currently maximized.