jaberwacky

ActiveWindowTracking Toy v1.0.0.2

22 posts in this topic

#1 ·  Posted (edited)

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
2 people like this

Share this post


Link to post
Share on other sites



Thanks for sharing!


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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

Share this post


Link to post
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


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

Share this post


Link to post
Share on other sites

......  It didn't occur to me that anybody would ever want to go back.  :P

 

well, , if possible I would... :wacko:


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

Share this post


Link to post
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?...... :


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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

well, don't hurry now
go sleep... I will stay tuned tomorrow

(is late here too)
thanks


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

Share this post


Link to post
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.

Share this post


Link to post
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:

1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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

Share this post


Link to post
Share on other sites

Hi jaberwacky
checked your last exe right now
It works great! :thumbsup:
Thanks!
Nice toy


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

Share this post


Link to post
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 ?

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

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

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