Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

ToolTip which follows the mouse is flickering


  • Please log in to reply
17 replies to this topic
123
  • Guests
  • Last active:
  • Joined: --
I found a solution for my own question, I show it here, just in case someone looks for the same effect.

Replace YourWindowName for the Title of the windo of the program you want to follow the mouse
WinWait, YourWindowName
WinMove, 0, 0
Loop{
CoordMode, Mouse, Screen
MouseGetPos, xpos, ypos 
WinMove, %xpos%, %ypos%
Sleep, 250 ; I add this delay to make it more stable
}


azure
  • Members
  • 1216 posts
  • Last active: Mar 18 2015 09:06 AM
  • Joined: 07 Jun 2007
can you tell me please how to use ToolTipFM() function ?
an example
thanks

  • Guests
  • Last active:
  • Joined: --
Example 1
Loop
{
   Sleep, 20
   ToolTipFM("ToolTip which Follows the Mouse and does not flicker.")
}

Esc::ExitApp
Example 2
F1::
While, GetKeyState(A_ThisHotkey,"p")
{
   Sleep, 20
   ToolTipFM("ToolTip which Follows the Mouse and does not flicker.")
}
ToolTipFM()   ; destroy tooltip
return
Example 3
#Persistent
return

F1::SetTimer, FollowMouse, 30
F2::
SetTimer, FollowMouse, off
ToolTipFM()   ; destroy tooltip
return

FollowMouse:
ToolTipFM("ToolTip which Follows the Mouse and does not flicker.")
return