Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey 2.0
- EVENT_OBJECT_NAMECHANGE := 0x800C
- DllCall("SetWinEventHook",
- "UInt", EVENT_OBJECT_NAMECHANGE,
- "UInt", EVENT_OBJECT_NAMECHANGE,
- "Ptr", 0,
- "Ptr", CallbackCreate(HandleTabsOutlinerEvent),
- "UInt", 0,
- "UInt", 0,
- "UInt", 0)
- HandleTabsOutlinerEvent(hWinEventHook, event, hWnd, *)
- {
- static count := 0, text := ""
- try
- if (WinGetTitle(hWnd) = "_crx_eggkanocgddhmamlbiijnphhppkpkmkl")
- {
- Critical(-1) ; (W/ BUSY-WAIT) 1 1 2 2 3 3 when uncommented, 1 2 3 3 2 1 when commented-out
- Tooltip(text .= " " (id := ++count))
- loop (8000000) ; Approx. 2sec busy-wait (has approx. 30% CPU usage at most)
- continue
- ;Sleep(-1) ; (W/ CRITICAL ON) 1 2 3 3 2 1 when uncommented, 1 1 2 2 3 3 when commented-out
- Tooltip(text .= " " id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement