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 

1.0.17: About the new caret recognition...

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



Joined: 30 Jul 2004
Posts: 78

PostPosted: Mon Aug 09, 2004 10:56 pm    Post subject: 1.0.17: About the new caret recognition... Reply with quote

Hi all...

Chris, very very useful the caret function, it adds an estra degree of control over applications Smile it's essential for the script i'm working with!
I was trying it out running the example script you provided in http://www.autohotkey.com/docs/Variables.htm#Caret:
Code:
#Persistent
SetTimer, WatchCaret, 100
return
WatchCaret:
display_y = %A_CaretY%
display_y -= 20 ; Move tooltip up a little so as not to hide the caret.
ToolTip, X%A_CaretX% Y%A_CaretY%, %A_CaretX%, %display_y%
return

and I noticed something weird: sometimes I seem to lose the left button doubleclick ability in my mouse (in Windows Explorer for example) Shocked Firt try was increasing the SetTimer, and it seems to help, but still sometimes doubleclick works and sometimes doesn't... anybody noticed something similar? should i start looking for a new mouse? Wink

Also, I see the caret is detected nicely in Notepad, UltraEdit, but as you say in the Help file, it doesn't seem to work in MS Word nor in this same browser window from which I'm typing this (wait, it does not seem to work in Firefox, but I just tried in IExplorer and it does... probably some bug in Firefox? Rolling Eyes Anyway, what are the limits of the new caret function? Is Word beyond the scope of the implementation?

And lastly, what is the tooltip in the example script is reporting when it doesn't find a caret in the active application?

Thanks for this release again!
jordi
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Aug 09, 2004 11:33 pm    Post subject: Reply with quote

Quote:
sometimes I seem to lose the left button doubleclick ability in my mouse

Displaying the tooltip window so many times per second is what causes the double click issue. To alleviate this, maybe it's possible to use WinSetTitle directly on a tooltip window. I believe Rajat has experimented with addressing tooltips as though they were normal windows.

Quote:
probably some bug in Firefox? Anyway, what are the limits of the new caret function? Is Word beyond the scope of the implementation?

The Windows API function GetCaretPos() is called to discover where the caret is. A_CaretX and Y simply reflect whatever the function reports. I suspect the problem might be that some apps use a non-standard caret.

Although I know of no other ways to discover where the caret is, perhaps there are some messages that can be sent to a window to determine such info. This is reminiscent of Rajat's SendMessage Tutorial, though that approach might not help in this case. Maybe some prowling of the newgroups and Google is in order. Volunteers? Smile

Quote:
what is the tooltip in the example script is reporting when it doesn't find a caret in the active application?

The variables should be blank if the caret position cannot be determined. However, I've noticed that they're hardly ever blank, so it seems that GetCaretPos() returns bogus or non-meaningful caret positions for some apps or under some conditions. For example, there is usually a caret position even when there is no caret!

Edit: fixed typo


Last edited by Chris on Tue Aug 10, 2004 12:41 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Aug 10, 2004 12:39 am    Post subject: Reply with quote

Your comments got me thinking about it again. I made a few minor corrections (that probably don't affect 99% of things), and fixed "CoordMode Caret" in a newly updated installer.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   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