Created a quick script that launches path of exile on windows using Win + Shift + G and displays a themed toolip; uses AutoHotKey.

Here's the Github Repo containing .ahk file and custom Path of Exile fonts.

Screenshot

Let's Get Started

This assumes you installed the game using Steam. If you installed PoE from somewhere else, just replace run, steam://rungameid/238960 with run, C:\Path of Exile.exe replacing the location with wherever you installed the game.

If you'd like to use the Path of Exile fonts, install the fonts from the repo linked above.

You can download/clone the repo from the Github Repo or just copy and paste the code below into a .ahk file. Then open that with AutoHotKey.

; This is a simple and pretty generic example of an AutoHotkey script to run a ; program when you press a keyboard shortcut. Add as many of these as you want ; to a .ahk file, and set that to be run at startup. ; See the Hotkeys reference [1] for details of the modifiers and keys available. ; [1]: http://www.autohotkey.com/docs/Hotkeys.htm ; ToolTipOpt v1.004 ; Changes: ; v1.001 - Pass "Default" to restore a setting to default ; v1.002 - ANSI compatibility ; v1.003 - Added workarounds for ToolTip's parameter being overwritten ; by code within the message hook. ; v1.004 - Fixed text colour. ToolTipFont(Options := "", Name := "", hwnd := "") { static hfont := 0 if (hwnd = "") hfont := Options="Default" ? 0 : _TTG("Font", Options, Name), _TTHook() else DllCall("SendMessage", "ptr", hwnd, "uint", 0x30, "ptr", hfont, "ptr", 0) } ToolTipColor(Background := "", Text := "", hwnd := "") { static bc := "", tc := "" if (hwnd = "") { if (Background != "") bc := Background="Default" ? "" : _TTG("Color", Background) if (Text != "") tc := Text="Default" ? "" : _TTG("Color", Text) _TTHook() } else { VarSetCapacity(empty, 2, 0) DllCall("UxTheme.dll\SetWindowTheme", "ptr", hwnd, "ptr", 0 , "ptr", (bc != "" && tc != "") ? &empty : 0) if (bc != "") DllCall("SendMessage", "ptr", hwnd, "uint", 1043, "ptr", bc, "ptr", 0) if (tc != "") DllCall("SendMessage", "ptr", hwnd, "uint", 1044, "ptr", tc, "ptr", 0) } } _TTHook() { static hook := 0 if !hook hook := DllCall("SetWindowsHookExW", "int", 4 , "ptr", RegisterCallback("_TTWndProc"), "ptr", 0 , "uint", DllCall("GetCurrentThreadId"), "ptr") } _TTWndProc(nCode, _wp, _lp) { Critical 999 ;lParam := NumGet(_lp+0*A_PtrSize) ;wParam := NumGet(_lp+1*A_PtrSize) uMsg := NumGet(_lp+2*A_PtrSize, "uint") hwnd := NumGet(_lp+3*A_PtrSize) if (nCode >= 0 && (uMsg = 1081 || uMsg = 1036)) { _hack_ = ahk_id %hwnd% WinGetClass wclass, %_hack_% if (wclass = "tooltips_class32") { ToolTipColor(,, hwnd) ToolTipFont(,, hwnd) } } return DllCall("CallNextHookEx", "ptr", 0, "int", nCode, "ptr", _wp, "ptr", _lp, "ptr") } _TTG(Cmd, Arg1, Arg2 := "") { static htext := 0, hgui := 0 if !htext { Gui _TTG: Add, Text, +hwndhtext Gui _TTG: +hwndhgui +0x40000000 } Gui _TTG: %Cmd%, %Arg1%, %Arg2% if (Cmd = "Font") { GuiControl _TTG: Font, %htext% SendMessage 0x31, 0, 0,, ahk_id %htext% return ErrorLevel } if (Cmd = "Color") { hdc := DllCall("GetDC", "ptr", htext, "ptr") SendMessage 0x138, hdc, htext,, ahk_id %hgui% clr := DllCall("GetBkColor", "ptr", hdc, "uint") DllCall("ReleaseDC", "ptr", htext, "ptr", hdc) return clr } } ; Win + Shift + G #+g:: run, steam://rungameid/238960 tooly() return tooly() { ToolTip Standard tooltip ToolTipFont("s15", "Fontin") ToolTipColor("18130f", "7a583f") ToolTip Now Launching Path of Exile... Sleep 5000 ToolTip return }

© 2024 Marko Bajlovic. Version 5.0.9.