Jump to content

Recommended Posts

Hello,

I don't like clicking every window just to make it the active window.  I also often times want a window to be active but not stand on top of other windows.  So, I threw together this script which I hope changes the proper windows settings without having to edit the registry.  Seems to work for me on my Windows 7 x64 machine.  Your mileage may vary.  I honor no warranties.

A more thorough explanation.  Linux systems have a feature which will automatically focus the window that is currently under the mouse cursor.  This setting can be enabled in Windows but used to require futzing around in the registry.  This tool will enable the setting and also exposes two other important settings.  ZOrder will determine whether or not the window which takes focus will come to the fore.  Timeout will set how many milliseconds the mouse must hover over a window before it will take focus.

 ActiveWindowTrack Toy.zip dl: 110

Sincerely yours,

Jaberwacky

P.S., Latest AutoIt beta required for the source.  An exe is included however.

------------------------------------------------------------------

Project now available on GitHub.

------------------------------------------------------------------

Latest update: Better code.  No!  I need to work with it some more.  I messed something up.

Latest Update: NOW better code.

Latest Update: Improved GUI.

Latest Update:  The weirdest thing has happened.  I was editing the file but when I would zip it, then it seemed like it wasn't creating a new zip file!

Anyways, it should be right now.

Latest Update: Better project structure.

Latest Update: Fixed an important issue where the user could not revert back to previous settings. Again.

Latest Update: Fixed again.

Latest Update: Version 1.0!  Made the GUI bigger in case it was too small for anybody with a disability.  If that's ever a problem then let me know.  Admin rights aren't actually required so those are gone.  No need to restart your computer.  Let me know of any problems!

Latest update: ZOrder wasn't working.  Does now.

Latest Update: ZOrder wasn't working.  Again.  Silly error arising from the ancient copy/paste clan style of coding.

------------------------------------------------------------------

Recommended settings: Leave ZOrder unchecked and set Timeout to 100.

Thanks to orbs and JohnOne!

Edited by jaberwacky
Link to comment
Share on other sites

Thanks for sharing!

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

?... After I tested your first exe, it seems to me that the "autofocus" behaviour is now always active, even after a system reboot. Are some settings permanent? and if so how to go back to normal behaviour?
thanks

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

... wait a moment.... don't go sleep please

after I ran your new exe and exit the autofucs is still active

how to disable it?...... :

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Um that's weird.

Well, good luck!

 

 

 

 

NO!  I jest more.

I can get it to either enable or disable the setting but not either or.  So strange.  I'm sure I'm just overlooking something.  You can find out how to edit the registry but um, I don't know if you should do it now or not.  Let me look into this more.

Link to comment
Share on other sites

I believe the permanent changes are written to your win.ini file.

I'd look closer into that, before making any assumptions and/or changes to it.

Suggest getting the current SystemParametersInfo and saving it, before setting new, so it can be reverted.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I jest of course.

 

Now off to sleep because I've been up for 26 hours.

Sounds like someone else I know ...... ME! ;)

Though not on this occasion. :D

Now get to bed you crazy person  :lmao:  ... you'll start hallucinating shortly. :alien:

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Great tool, I was looking for this without conviction since ... too long :)

One little regret : if you click on a file on your desktop, then move cursor to *a random window*, then back to the desktop, you lose the "file selection". Could you do something about it ?

Link to comment
Share on other sites

I don't think so.  All my toy does is turn on or off the option.  After that Windows steps in and does its thing.

That issue does annoy me too, but with the overall gain in convenience, I just learned to deal with it.

Edited by jaberwacky
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...