Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Change active window.

Hello

Another noob question, how do I make it switch to another window before it types the message? Like so it alt-tab to notepad.exe or any other program?

Spoiler (Click to View)
"To not get scammed, is all about making it not worth for the scammer to do so." -MW
Have a look at the AppActivate function: https://msdn.microsoft.com/en-us/library...90%29.aspx
(Apr 26, 2015 04:38 AM)backshifted Wrote:  Have a look at the AppActivate function: https://msdn.microsoft.com/en-us/library...90%29.aspx

The thing is that I want this function and it changes it's name all the time so want to call the process (Aftermath.exe *32) instead,

[Image: QFzCVc6.png]
"To not get scammed, is all about making it not worth for the scammer to do so." -MW
Take a look at SetForegroundWindow. Just pass it a window handle and it'll focus the window.
(Apr 26, 2015 05:48 AM)Corneliuss Wrote:  Take a look at SetForegroundWindow. Just pass it a window handle and it'll focus the window.

That is c++? For being such a noob but don't really understand :s
"To not get scammed, is all about making it not worth for the scammer to do so." -MW
(Apr 26, 2015 06:55 AM)Mattixio Wrote:  That is c++? For being such a noob but don't really understand :s

Step 1) Learn the language.
Step 2) Learn to P/Invoke.
Step 3) Dont be a skid.
(Apr 26, 2015 06:55 AM)Mattixio Wrote:  That is c++? For being such a noob but don't really understand :s

pinvoke is useful for winapi declarations for .net, http://www.pinvoke.net/default.aspx/user...oundwindow

The documentation on it you can check msdn.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Emre_Sep 6, 2019 09:01 AM 0 176 Sep 6, 2019 09:01 AM
Last Post: Emre_
[Shell] by Emre_Sep 5, 2019 02:55 PM 1 179 Sep 5, 2019 02:55 PM
Last Post: Zedx
[Shell] by PhloxMay 28, 2018 12:05 AM 3 211 May 28, 2018 12:05 AM
Last Post: Erhan