Hack Forums
Manipulate focus status on a Windows window? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Manipulate focus status on a Windows window? (/showthread.php?tid=5937988)



Manipulate focus status on a Windows window? - Bossk - Feb 5, 2019

I use a program that requires me to stay within the window, and if the focus is changed(by me clicking on another window) then I get a penalty. Which is the easiest way to make the program think that I remain focused on that window when I am actually switching focus?


RE: Manipulate focus status on a Windows window? - Faith Connors - Feb 5, 2019

dunno if theres a tool, but its likely calling either winapi GetFocus() or GetForegroundWindow(). find where it calls those functions, and nop em out (or patch it with a function that returns the desired return for focus)