AutoHotkey Community

It is currently May 26th, 2012, 11:09 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 4th, 2009, 10:37 am 
Offline

Joined: June 16th, 2008, 6:19 am
Posts: 66
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:

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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2009, 4:23 pm 
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. :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2009, 1:49 am 
Offline

Joined: June 16th, 2008, 6:19 am
Posts: 66
@ 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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2009, 2:03 am 
Offline

Joined: October 26th, 2009, 6:29 am
Posts: 362
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2009, 3:44 am 
Offline

Joined: June 16th, 2008, 6:19 am
Posts: 66
@ 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 :D

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 ! :lol:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], joetazz, JSLover, Kirtman, rbrtryn and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group