Jump to content

Recommended Posts

Posted

Create your own ToolTip.

Here is an example that just looks like a hyperlink:

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
HotKeySet("{ESC}", "OntSnap")
$Gui = GUICreate("tooltip", 140, 80, 1, 1, $WS_POPUP, $WS_EX_TOPMOST)
GUISetBkColor(0xffff00)
$Label = GUICtrlCreateLabel("NotePad.exe", 10, 10, 80, 50)
GUICtrlSetFont(-1, 8, Default, 6, "Comic Sans MS")
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $Label
Run(@WindowsDir & "Notepad.exe", "", @SW_MAXIMIZE)
EndSwitch
Sleep(13)
WEnd
Func OntSnap()
GUIDelete()
Exit 0
EndFunc ;==>OntSnap

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...