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 

ToolTip in Vista

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Mon Jun 18, 2007 11:44 am    Post subject: ToolTip in Vista Reply with quote

I suppose this is a Vista problem, not an AutoHotkey bug. Besides, the problem occurs rarely (once every 20 times). However, this problem is very annoying for me and I would be VERY grateful if you could suggest me a solution.

SOMETIMES THE TOOLTIP'S TEXT IS HIDDEN, ONLY THE TOOLTIP'S SHADOW IS VISIBLE. FOR MY LAPTOP, THIS OCCURS ONLY IN VISTA, NOT IN XP.



If the background is dark, nothing is visible. Consequently the ToolTip becomes transparent when the problem occurs
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Jun 19, 2007 1:19 am    Post subject: Reply with quote

It might be related to the Edit control's "enter only numbers" balloon bug mentioned at http://www.autohotkey.com/forum/viewtopic.php?t=4761 ... I haven't found a solution for it yet, but I've been keeping an eye out.
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2391

PostPosted: Tue Jun 19, 2007 3:09 am    Post subject: Reply with quote

rousni, do you have a small script that demonstrates the problem that you could post that I could use for testing on Vista here?
Back to top
View user's profile Send private message Visit poster's website
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 7:36 am    Post subject: Reply with quote

Unfortunately, it is hard to reproduce the problem because it occurs rarely (or maybe fortunately). Therefore, I do not exclude the possibility of a problem related to my script. Here is a part of it:

Code:
CHARS:
   StringRight, HK, A_ThisHotkey, 4
   If StrLen(HK) = 1
   {
      StringRight, HK, A_ThisHotkey, 1
      KEY = %KEY%%HK%
   }
   Else
   {
      SetFormat, integer, h
      Transform, CHAR, Chr, %HK%
      SetFormat, integer, d
      If GetKeyState("Shift", "P") = 0
         If GetKeyState("CapsLock", "T") = 0
            If CHAR is alpha
               StringLower, CHAR, CHAR
      KEY = %KEY%%CHAR%
      CHAR =
   }
   IfWinExist,  | 
      ToolTip, %S%-%T% | %KEY%, TX, TY
   HK =
Return
Back to top
View user's profile Send private message
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 8:05 am    Post subject: Reply with quote

Quote:
It might be related to the Edit control's "enter only numbers" balloon bug mentioned at http://www.autohotkey.com/forum/viewtopic.php?t=4761 ... I haven't found a solution for it yet, but I've been keeping an eye out.


I reproduced the bug in Windows Vista Ultimate - it is the same transparent tooltip without text.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Jun 19, 2007 12:46 pm    Post subject: Reply with quote

The following workaround for a similar issue might work in this case too:
Zippo() wrote:
Right-click Desktop>Properties>Appearnce>Effects.

If the box 'Use the following transition effects for menus and tooltips' is checked, and the drop-down list has 'Fade effect' selected, you get the tooltip shadow. Uncheck the box or select 'Scroll Effect' and save the changes = no shadow Smile

Doesn't matter about the 'Show shadows....'
Back to top
View user's profile Send private message Send e-mail
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 1:41 pm    Post subject: NOW REPRODUCIBLE !!! Reply with quote

Code:
ToolTip, Some text, 400, 300
Sleep, 6000
ToolTip, Some new text, 400, 300
Sleep, 6000
ToolTip, Some new new text, 400, 300
Sleep, 6000


THE PROBLEM IS NOW REPRODUCIBLE !!! If you have "Sleep, 1000" instead of "Sleep, 6000", THE BUG DOES NOT OCCUR.
Back to top
View user's profile Send private message
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 1:48 pm    Post subject: Reply with quote

Quote:
Right-click Desktop>Properties>Appearnce>Effects...


In Vista you have the following effects:

Use the following method to smooth edges of screen fonts: Standard /ClearType
Show shadows under menus
Show window contents while dragging

I tried all without success.
Back to top
View user's profile Send private message
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 6:39 pm    Post subject: WORKAROUND Reply with quote

Here is a tested workaround:

Code:
ToolTip, Some text, 400, 300
Sleep, 6000
ToolTip, Some text, 400, 300
ToolTip, Some new text, 400, 300
Sleep, 6000
ToolTip, Some new text, 400, 300
ToolTip, Some new new text, 400, 300
Sleep, 6000


Quote:
A workaround is typically a temporary fix that implies that a genuine solution to the problem is needed.
Back to top
View user's profile Send private message
rousni



Joined: 23 Mar 2006
Posts: 38

PostPosted: Tue Jun 19, 2007 7:42 pm    Post subject: A BETTER WORKAROUND Reply with quote

HERE IS A BETTER WORKAROUND AVOIDING A POSSIBLE FLICKING:

Code:
ToolTip, Some text, 400, 300
Sleep, 6000
WinSet, Transparent, Off, Some text
ToolTip, Some new text, 400, 300
Sleep, 6000


Reminder: the problem only appears in Vista and when a previous tooltip lasts more than 4 seconds approximately.
Back to top
View user's profile Send private message
§~Infinity~§®



Joined: 29 Mar 2007
Posts: 12
Location: Damascus, Syria

PostPosted: Mon Jul 02, 2007 4:52 pm    Post subject: Re: A BETTER WORKAROUND Reply with quote

rousni wrote:
HERE IS A BETTER WORKAROUND AVOIDING A POSSIBLE FLICKING:

Code:
ToolTip, Some text, 400, 300
Sleep, 6000
WinSet, Transparent, Off, Some text
ToolTip, Some new text, 400, 300
Sleep, 6000


Reminder: the problem only appears in Vista and when a previous tooltip lasts more than 4 seconds approximately.


OK I had almost the same problem, and I have fixed it by putting 2 Traytip commands
Code:
TrayTip, Some Text, Some Other Text, , 1
TrayTip, Some Text, Some Other Text, , 1
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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