AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help Auto-Raise / Auto-click QTTabBar tabs upon mouse hover

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
geor



Joined: 16 Jun 2008
Posts: 66

PostPosted: Wed Nov 04, 2009 9:37 am    Post subject: Help Auto-Raise / Auto-click QTTabBar tabs upon mouse hover Reply with quote

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
Quote:
http://www.autohotkey.com/forum/viewtopic.php?t=22763&highlight=autoraise

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
View user's profile Send private message
QTTabBar
Guest





PostPosted: Wed Nov 04, 2009 3:23 pm    Post subject: Reply with quote

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. Very Happy
Back to top
geor



Joined: 16 Jun 2008
Posts: 66

PostPosted: Thu Nov 05, 2009 12:49 am    Post subject: Reply with quote

@ 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
View user's profile Send private message
Ace Coder



Joined: 26 Oct 2009
Posts: 361

PostPosted: Thu Nov 05, 2009 1:03 am    Post subject: Reply with quote

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
View user's profile Send private message
geor



Joined: 16 Jun 2008
Posts: 66

PostPosted: Thu Nov 05, 2009 2:44 am    Post subject: Reply with quote

@ 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 Very Happy

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 ! Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group