#persistent #SingleInstance force CoordMode, Mouse, Screen CoordMode, ToolTip, Screen CoordMode, Mouse, Screen selectfile: inputbox,file, Create a new TTP File?,Please input the name of the TTP file you would like to create`n`n a ttp file extension will be automatically added. if errorlevel <> 0 exitapp if file = exitapp Ifexist %file% { msgbox,4,Overwrite?,This file exists. would you like to overwrite it? IfMsgBox,Yes FileDelete,%file% IfMsgBox,No { gosub, selectfile exitapp } } Gui,add, text,,Press F11 to capture mouse position, relative to screen Gui, add, text,xs,Xpos - left to right gui, add, edit,x+6 w80 vMouseXpos number, Gui, add, text,x+50,Ypos - top to bottom gui, add, edit, w80 x+6 vMouseYpos number, Gui,add, text,xs ,Enter your custom text to appear in ToolTipPrompt gui, add, edit, w425 xs vTTPtext, gui, add, button,w80 xs gToolTipDisplay,&Test ToolTip gui, add, button,w80 x+3 gAddClipboard,&Clipboard gui, add, button,w180 x+3 gAddToolTip,&Save ToolTipPrompt to file gui, add, button,w80 x+3 gGuiClose,&Exit && Close Gui, +AlwaysOnTop gui, show,,creating TTP file = %file%.ttp return f11:: MouseGetpos, MouseX, MouseY, ;MouseWin Guicontrol,,MouseXpos,%MouseX% Guicontrol,,MouseYpos,%MouseY% return ToolTipDisplay: Guicontrolget,MX,,MouseXpos Guicontrolget,MY,,MouseYpos Guicontrolget,TTPinputtext,,TTPtext Tooltip,%TTPinputtext%,%MX%,%MY% return AddToolTip: Guicontrolget,MX,,MouseXpos Guicontrolget,MY,,MouseYpos Guicontrolget,TTPinputtext,,TTPtext if MX= { msgbox, no X Position is entered in the prompt box return } if MY = { msgbox, no Y position is entered in the prompt box return } if TTPinputtext = { msgbox, no text is entered in the prompt box return } fullmessage=%MX%,%MY%,%TTPinputtext%`n fileappend,%fullmessage%,%file%.ttp ; msgbox, %fullmessage% `n was added to `n %file%.ttp Guicontrol,,MouseXpos, Guicontrol,,MouseYpos, Guicontrol,,TTPtext, tooltip, return AddClipboard: Guicontrolget,MX,,MouseXpos Guicontrolget,MY,,MouseYpos Guicontrolget,TTPinputtext,,TTPtext if MX= { msgbox, no X Position is entered in the prompt box return } if MY = { msgbox, no Y position is entered in the prompt box return } if TTPinputtext = { msgbox, no text is entered in the prompt box return } fullmessage=%MX%,%MY%,%TTPinputtext%`n clipboard=%fullmessage% return GuiClose: ExitApp