 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
geor
Joined: 16 Jun 2008 Posts: 66
|
Posted: Wed Nov 04, 2009 9:37 am Post subject: Help Auto-Raise / Auto-click QTTabBar tabs upon mouse hover |
|
|
I'm using QTTabBar v1.2.3 Beta5 on WinXP_Pro_sp3,
and was excited to see this script (from another thread) to auto-raise/auto-click the folder tabs in QTTabBar
(I changed the WindowsForms... number with what my Windows Spy shows):
| Code: |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
IfWinActive, ahk_class ExploreWClass
{
MouseGetPos,,, win, ctl
WinGetTitle, ti, ahk_id %win%
WinGetClass, cl, ahk_id %win%
if (ctl = "WindowsForms10.Window.8.app.0.378734a7")
{
click
return
}
}
|
... but this script doesn't even run when I click it - I've tried changing things within it,
tried adding IfWinActive to the end of it, but still no go.
This would really help eliminate some RSI from multiple mouse clicks,
and when I understand how the code works I will try to make it work also with xplorer2 tabs,
as well as some of the other Menu bar buttons.
I've tried using Skrommel's "MouseActivate" from DonationCoder, and really like the whole idea of it,
but it's a little too much when the mouse auto-clicks nearly every thing in a window,
so I'm trying to understand how to just make this kind of functionality focus on a couple of items at a time.
In that same way, I adapted Lexicos' Auto-Raise/Mouse Hover
to only work on the Start button by eliminating everything else in the code that I didn't need.
I also like the ability in Lexicos' code to change the speed of the response -
shortening the time delay as I get used to the actions.
Thanks very much for any help to accomplish this. |
|
| Back to top |
|
 |
QTTabBar Guest
|
Posted: Wed Nov 04, 2009 3:23 pm Post subject: |
|
|
| Quote: | | WindowsForms10.Window.8.app.0.378734a7 | I guess there's a chance that this string/title will change with every session. Therefore, you should think about to use SetTitleMatchMode.
Good luck.  |
|
| Back to top |
|
 |
geor
Joined: 16 Jun 2008 Posts: 66
|
Posted: Thu Nov 05, 2009 12:49 am Post subject: |
|
|
@ QTTabBar - Thanks for responding
however, after over a dozen reboots, Win Spy still reports the same string.
Back to the original code -
since the AHK script won't even load & show up in the system tray,
there's something incorrect in the code itself preventing it from even running,
nevermind getting to the point of the mouse click ! ? !
thanks again to anyone that can/will help. |
|
| Back to top |
|
 |
Ace Coder
Joined: 26 Oct 2009 Posts: 361
|
Posted: Thu Nov 05, 2009 1:03 am Post subject: |
|
|
| It starts AS SOON as you double click to run it so that means it sees the window isnt active and closes. Put a hotkey in. |
|
| Back to top |
|
 |
geor
Joined: 16 Jun 2008 Posts: 66
|
Posted: Thu Nov 05, 2009 2:44 am Post subject: |
|
|
@ Ace Coder - thx for helping me understand that !
it makes sense,
but since I want to make a mouse click happen, not a hotkey,
I'll experiment with IfWinNotActive ?
I've just used AutoScriptWriter for the 1st time to track my mouseclicks,
then tried to run the script resulting from that,
and it just ran through and automatically clicked the 3 tabs I clicked,
then quit
well, i'm gonna keep at it until i figure this one out,
because it will give me alot of functionality in any window of any program
oh yeah, i'm RTFM allright -
but all the words are nearly worn out !  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|