 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Mon Jun 18, 2007 11:44 am Post subject: ToolTip in Vista |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Jun 19, 2007 1:19 am Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Tue Jun 19, 2007 3:09 am Post subject: |
|
|
| 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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 7:36 am Post subject: |
|
|
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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 8:05 am Post subject: |
|
|
I reproduced the bug in Windows Vista Ultimate - it is the same transparent tooltip without text. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Jun 19, 2007 12:46 pm Post subject: |
|
|
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
Doesn't matter about the 'Show shadows....' |
|
|
| Back to top |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 1:41 pm Post subject: NOW REPRODUCIBLE !!! |
|
|
| 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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 1:48 pm Post subject: |
|
|
| 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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 6:39 pm Post subject: WORKAROUND |
|
|
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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 38
|
Posted: Tue Jun 19, 2007 7:42 pm Post subject: A BETTER WORKAROUND |
|
|
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 |
|
 |
§~Infinity~§®
Joined: 29 Mar 2007 Posts: 12 Location: Damascus, Syria
|
Posted: Mon Jul 02, 2007 4:52 pm Post subject: Re: A BETTER WORKAROUND |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|