jaberwacky Posted March 3, 2015 Share Posted March 3, 2015 (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: 110Sincerely yours,JaberwackyP.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 July 21, 2015 by jaberwacky TheSaint and coffeeturtle 2 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
jaberwacky Posted March 3, 2015 Author Share Posted March 3, 2015 ... kinda important update ... Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
TheSaint Posted March 3, 2015 Share Posted March 3, 2015 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) Link to comment Share on other sites More sharing options...
jaberwacky Posted March 3, 2015 Author Share Posted March 3, 2015 You're quite welcome. It was fun. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Gianni Posted March 3, 2015 Share Posted March 3, 2015 ?... 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 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
jaberwacky Posted March 3, 2015 Author Share Posted March 3, 2015 That's disconcerting. I will look into it. Sorry for your troubles. It didn't occur to me that anybody would ever want to go back. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Gianni Posted March 3, 2015 Share Posted March 3, 2015 ...... It didn't occur to me that anybody would ever want to go back. well, , if possible I would... Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 Fixed a bug reported by Chimp. Thanks Chimp! "Yeah Chimp, thanks a lot!" I jest of course. Now off to sleep because I've been up for 26 hours. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Gianni Posted March 4, 2015 Share Posted March 4, 2015 ... 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?...... Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 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. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Gianni Posted March 4, 2015 Share Posted March 4, 2015 well, don't hurry now go sleep... I will stay tuned tomorrow (is late here too) thanks Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 Tomorrow? I was heading out for a two week vacation in the morning. ............ Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
JohnOne Posted March 4, 2015 Share Posted March 4, 2015 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 More sharing options...
TheSaint Posted March 4, 2015 Share Posted March 4, 2015 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. Now get to bed you crazy person ... you'll start hallucinating shortly. jaberwacky 1 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) Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 @JohnOne, I'm pretty sure the win.ini file has been long gone. At least that's according to wikipedia. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 OK, I think I fixed it. Seems like a hack to me, but it is what it is. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
jaberwacky Posted March 4, 2015 Author Share Posted March 4, 2015 Latest update! This should solve the issues reported earlier. See op for details. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Gianni Posted March 4, 2015 Share Posted March 4, 2015 Hi jaberwacky checked your last exe right now It works great! Thanks! Nice toy Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
GhostLine Posted March 5, 2015 Share Posted March 5, 2015 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 More sharing options...
jaberwacky Posted March 5, 2015 Author Share Posted March 5, 2015 (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 March 5, 2015 by jaberwacky Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now