Sign in to follow this  
Followers 0
Christopher Blue

Window lose focus without another gaining it?

6 posts in this topic

How can I have one window lose focus without giving focus to another window, or rather give focus to the desktop or taskbar?

Share this post


Link to post
Share on other sites



Explain why you need this, and we might be able to help you.


Who else would I be?

Share this post


Link to post
Share on other sites

Basically, I made a script that moves the Counter-Strike Source gamewindow offscreen to hide it (since it won't respond to @SW_HIDE). However if it still has focus when I do this then my cursor is trapped in the corner of the screen until I click my desktop. While this is a small inconvience it would be nice if I could refine my script to make CS:S lose focus then move off-screen.

Share this post


Link to post
Share on other sites

Try WinActivate("Program Manager") to focus on the desktop.


Who else would I be?

Share this post


Link to post
Share on other sites

Thank you alot this-is-me! I have refined my script to both make CS:S lose focus on hide, and then regain focus on unhide.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I am being repetitive, I KNOW! But check out www.japsclan.com and look at the CS: S hacks on there. They have some nice coding!!! Someone even has an AutoIt aimbot up there... Although it is listed as "Detectable".

Edited by Py7|-|[]/\/

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