Code:
; PartyBets scrolling-spam killer v3
; ==================================
; Simply run this app to kill the CPU hogging PartyBets scrolling-spam bar.
; - CPU usage on my machine goes from 5%-25% spikes right down to constant 0%-1%!
#SingleInstance force
DetectHiddenWindows On
SetTitleMatchMode 1
; Kill when we open the script (ie: "kill on run" mode).
KillSpam()
WinWait, PartyAccount Login
WinWaitClose
; ### You might have to increase this value if it fails sometimes. ###
Sleep, 1000
; Kill when we open the party client (ie: "kill on open" mode).
KillSpam()
WinWaitClose, Status
Reload
; Use this function to kill the PartyBets spam window.
; NOTE: Tries lots of differnt IDs which all work.
KillSpam()
{
; We send a WM_COMMAND (0x111) along with one of the IDs that kill the window.
PostMessage, 0x111 , 2126, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 2127, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 2300, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 3610, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 3611, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 6041, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 6042, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 6043, 0, Internet Explorer_Server3, PartyPoker.com:
PostMessage, 0x111 , 6044, 0, Internet Explorer_Server3, PartyPoker.com:
; IDs of 3612 to 3644 also work.
loop, 33
{
ID:=a_index+3611
PostMessage, 0x111 , %ID%, 0, Internet Explorer_Server3, PartyPoker.com:
}
}