Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Party's high CPU usage is the fault of "PartyBets spam-bar": AHK fix! (http://archives1.twoplustwo.com/showthread.php?t=553954)

jukofyork 11-25-2007 04:31 AM

Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
I thought I had better make a new thread about this as perhaps people won't notice the posts in the other thread (see here).

It turns out that nearly all of the CPU spikes, chugs, etc, comes from the scrolling "PartyBets spam-bar" at the bottom of the lobby. We should all thank Tankjoo for noticing this!

After a bit of fiddling about I managed to find a windows message to turn it off and when it's off idle CPU usage is back to under 1%! Here is the AHK script:

<font class="small">Code:</font><hr /><pre>; PartyBets scrolling-spam killer
; ===============================
; 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%!
; - Must be logged in for it to work (not sure why?).

SetTitleMatchMode 2

; Kill PartyBets spam window (WM_COMMAND = 0x111, ID_EXIT=2126).
PostMessage, 0x111 , 2126, 0, Internet Explorer_Server3, Poker Lobby
</pre><hr />
Basically just run the script after you have logged in and the PartyBets bar will quit (and leave a white rectangle where it was before).

Juk [img]/images/graemlins/smile.gif[/img]

PS: Perhaps somebody can add my code into the DeMonster AHK script?

jason403 11-25-2007 05:03 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
Wow, this is amazing. I was worried about my computer, buying more RAM, and getting ready to buy a new laptop because between running Party with Pokertracker and Spadeye, my computer would run so slowly, having some lag and freezing up at times. Thanks so much for posting the script.

jukofyork 11-25-2007 05:10 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
[ QUOTE ]
Wow, this is amazing. I was worried about my computer, buying more RAM, and getting ready to buy a new laptop because between running Party with Pokertracker and Spadeye, my computer would run so slowly, having some lag and freezing up at times. Thanks so much for posting the script.

[/ QUOTE ]
NP, but it's really Tankjoo who needs the thanks! I doubt I'd have ever noticed the link between CPU spikes and the PartyBets messages scrolling.

Juk [img]/images/graemlins/smile.gif[/img]

PS: I've also made an X-POST in the "Computer Technical Help" forum, as others may be considering getting a new PC just to try to avoid the chugs that this was causing (I was too...).

Herrigel 11-25-2007 06:03 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
great!
thx juk + Tankjoo, this helps a *lot* and saves me money.
no need for upgrading my machine anymore [img]/images/graemlins/wink.gif[/img]

HighSteaks 11-25-2007 06:19 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
Bah, I can't get the scrpit to layout on a notepad properly, never had this happen, any ideas? Also. does this apply to the News and Events scrollbar on Empire and will this get rid of that?

HalvSame 11-25-2007 06:20 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
Good job!

Don't wanna make a new thread; fix for disappearing buttons after the latest update please?

Herrigel 11-25-2007 06:23 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
[ QUOTE ]
Bah, I can't get the scrpit to layout on a notepad properly, never had this happen, any ideas? Also. does this apply to the News and Events scrollbar on Empire and will this get rid of that?

[/ QUOTE ]
Try replying to Juk's post by pressing the "quote" button, copy/paste from there.

jukofyork 11-25-2007 07:02 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
[ QUOTE ]
Bah, I can't get the scrpit to layout on a notepad properly, never had this happen, any ideas?

[/ QUOTE ]
Yep, as Herrigel said just quote my OP and then copy the text out from the quote into a ".ahk" file.

[ QUOTE ]
Also. does this apply to the News and Events scrollbar on Empire and will this get rid of that?

[/ QUOTE ]
Yes this same method can be used to get rid of them too, but I tested it on them and it didn't seem to make any difference at all to the CPU use. If you want to try then all you need to do is change the number I've highlighted in red for this line of code:

<font class="small">Code:</font><hr /><pre>PostMessage, 0x111 , 2126, 0, Internet Explorer_Server<font color="red">3</font>, Poker Lobby</pre><hr />

Try changing it to 1, 2 or 4 and you should be able to get rid of the other scrolling spam windows.

Juk [img]/images/graemlins/smile.gif[/img]

asteroid 11-25-2007 07:31 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
hi,

i had the same problem as you:

the symbol for the ahk-script doesnt appear in my taskbar,however, it is running nonethe less.i have to start partypoker,log on, and then start the ahk.script.
starting the script and then opening party doesnt work for me,but the other way round is ok.

thx yuk and hope this helps

asteroid

jukofyork 11-25-2007 07:43 AM

PartyBets spam-bar killer - version 2
 
[ QUOTE ]
the symbol for the ahk-script doesnt appear in my taskbar,however, it is running nonethe less.i have to start partypoker,log on, and then start the ahk.script.
starting the script and then opening party doesnt work for me,but the other way round is ok.

[/ QUOTE ]
Yep, this script doesn't work like most AHK scripts: basically you just have to run it once to send a command to turn off the PartyBets bar and then you're done until the next time you run Party.

If you want to have a version that you run before starting Party then you can try this:

<font class="small">Code:</font><hr /><pre>; PartyBets scrolling-spam killer v2
; ==================================
; 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%!
; - Must run this *BEFORE* starting Party.
; - If it fails sometimes try increasing the sleep timeout from 1000ms.

#SingleInstance force
DetectHiddenWindows On

WinWait, PartyAccount Login
WinWaitClose

; ### You might have to increase this value if it fails sometimes. ###
Sleep, 1000

; Kill PartyBets spam window (WM_COMMAND = 0x111, ID_EXIT=2126).
PostMessage, 0x111 , 2126, 0, Internet Explorer_Server3, PartyPoker.com:

WinWaitClose, Status
Reload</pre><hr />
If you find that sometimes it doesn't work then you'll need to change the line which says "Sleep, 1000" to use a larger value than 1000ms.

Juk [img]/images/graemlins/smile.gif[/img]

asteroid 11-25-2007 08:36 AM

Re: PartyBets spam-bar killer - version 2
 
thx very much yuk,works like a charm!!

asteroid

stevoL 11-25-2007 08:39 AM

Re: PartyBets spam-bar killer - version 2
 
doesnt seem to be helping me at all, party still is spiking my cpu to 40%+

do I need to disable the BBJ at all? or the news&amp;events scrolling display somehow?

2mb 11-25-2007 09:53 AM

Re: PartyBets spam-bar killer - version 2
 
Thanks juk, working fine again here [img]/images/graemlins/smile.gif[/img]

jukofyork 11-25-2007 12:06 PM

Version 3 of the script & an alternative method
 
Hmmm, well all was going ok for a while, but then somehow Party managed to turn the spam-bar back on and I couldn't seem to turn it off again... While trying to get rid of it I ended up crashing the Party client and haven't been able to repeat the "unkillable" spam-bar again.

I have found lots of new message IDs to get rid of it though and the new script will let you either run before or while Party is running to get rid of the spam-bar:

<font class="small">Code:</font><hr /><pre>; 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:
}

}</pre><hr />

I've also tracked down the offending HTML file and if my script fails to work for you then try this:

1) Navigate to the folder "C:\Program Files\PartyGaming\PartyPoker\Language\en_US\articl es\" (might be different for different countries, etc).
2) Right click the file called "114276.html" (the biggest of the ".html" files - it could be named differently for you) and open it up notepad or wordpad.
3) Delete the entire contents of the file and save the empty file back over the top of the old one.
4) Right click on the file again and select Properties.
5) Check the box that says "Read-only".
6) Start the Party client and the spam-bar should be gone.

If this works for you then it might turn out that Party changes the name of this ".html" file periodically, so you might have to repeat if this happens.

Juk [img]/images/graemlins/smile.gif[/img]

PS: You can do the same HTML trick on the other two ".html" file to get rid of the other less troublesome spam windows ("News &amp; Events", etc) too if you want...

jukofyork 11-25-2007 01:36 PM

Re: Version 3 of the script & an alternative method
 
I've just played a 12-tabling session after using the nullified/read-only HTML file trick and it worked very nice and smoothly (and party didn't manage to turn it back on this time!).

Juk [img]/images/graemlins/smile.gif[/img]

infernogott 11-25-2007 01:42 PM

Re: Version 3 of the script & an alternative method
 
so what do you suggest? running the script or deleting the contents of the html files?

jukofyork 11-25-2007 01:45 PM

Re: Version 3 of the script & an alternative method
 
[ QUOTE ]
so what do you suggest? running the script or deleting the contents of the html files?

[/ QUOTE ]
If the script works 100% then it should also work for future updates, but if you edit the HTML files you might have to re-edit them each time there is an update and/or they get renamed. I suggest that you try the script first and if it turns out to be problematic, then use the HTML file editing method instead.

Juk [img]/images/graemlins/smile.gif[/img]

notreallymyname 11-25-2007 06:48 PM

Re: Version 3 of the script & an alternative method
 
Just what "partybets spam-bar" is this? I can't find anything at the bottom of my lobby. Perhaps it appears for you in the green bar between the partygaming brand icons and connection information?

donkraft 11-25-2007 06:51 PM

Re: Version 3 of the script & an alternative method
 
I can't seem to find anything, that goes away when I run this script. The jackpot-thing is still running, and so is the scroller on the left with some partybets/300k guaranteed ads.

I have not tried removing the html.

jukofyork 11-26-2007 01:53 AM

Re: Version 3 of the script & an alternative method
 
[ QUOTE ]
Just what "partybets spam-bar" is this? I can't find anything at the bottom of my lobby. Perhaps it appears for you in the green bar between the partygaming brand icons and connection information?

[/ QUOTE ]
[ QUOTE ]
I can't seem to find anything, that goes away when I run this script. The jackpot-thing is still running, and so is the scroller on the left with some partybets/300k guaranteed ads.

[/ QUOTE ]
Yep, it's the little green bar that gives you odds that PartyBets is offering - not sure why you aren't getting it, but think yourself lucky! [img]/images/graemlins/smile.gif[/img]

Juk [img]/images/graemlins/smile.gif[/img]

infernogott 11-26-2007 12:11 PM

Re: Version 3 of the script & an alternative method
 
party removed the bar!

Tankjoo 11-26-2007 06:52 PM

Re: PartyBets spam-bar killer - version 2
 
Juk, you rock [img]/images/graemlins/smile.gif[/img]

Tankjoo 11-26-2007 06:55 PM

Re: PartyBets spam-bar killer - version 2
 
It looks like me and Juk deserve some money added into our accounts for our debugging work. Right Party, I know you're reading this!

jukofyork 11-28-2007 06:52 AM

Re: Version 3 of the script & an alternative method
 
[ QUOTE ]
party removed the bar!

[/ QUOTE ]
Did Party fix this themselves now?

Juk [img]/images/graemlins/smile.gif[/img]

jukofyork 11-28-2007 06:55 AM

Re: PartyBets spam-bar killer - version 2
 
[ QUOTE ]
It looks like me and Juk deserve some money added into our accounts for our debugging work. Right Party, I know you're reading this!

[/ QUOTE ]
Hehe, Party a truly "professional deniers" when it comes to client bugs.

Half of 2+2 can send them an e-mail stating that the buttons are disappearing for speed SNGs and you'll get a reply that says "you seem to be the only person experiencing this problem and we haven't had any other complaints...".

Party support is a total waste of time.

Juk [img]/images/graemlins/smile.gif[/img]

notreallymyname 11-28-2007 08:54 AM

Re: PartyBets spam-bar killer - version 2
 
Disappearing buttons in general (and short buy in timeouts) are caused by a cumulative error in the client's idea of time, which it derives from your system clock. Found this out because my system clock was counting about 15 minutes every 10 for a while.

If anyone's got a trick to make party read e-mails that large class of bugs could be fixed.

pokerhat 11-29-2007 05:22 PM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK fix!
 
Hi
Can someone please give an idiots guide to how i do this

Thanks

ubeticall 11-29-2007 07:27 PM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK f
 
is it fixed now by party?

jukofyork 11-30-2007 07:33 AM

Re: Party\'s high CPU usage is the fault of \"PartyBets spam-bar\": AHK f
 
[ QUOTE ]
is it fixed now by party?

[/ QUOTE ]
I'm not 100% sure as I haven't played poker this week since finding the fix, so it's quite possible they have now fixed it themselves.

Juk [img]/images/graemlins/smile.gif[/img]

Caliban 12-01-2007 02:28 AM

Re: PartyBets spam-bar killer - version 2
 
Holy crap. I was just playing on PP and suddenly some tables started to lag and every players were on sitting out, after that my party just lagged so bad even with the fix. So annoying.

jukofyork 12-01-2007 10:02 AM

Re: PartyBets spam-bar killer - version 2
 
[ QUOTE ]
Holy crap. I was just playing on PP and suddenly some tables started to lag and every players were on sitting out, after that my party just lagged so bad even with the fix. So annoying.

[/ QUOTE ]
If others were sitting out then it sounds like it's the Party servers having trouble.

Juk [img]/images/graemlins/smile.gif[/img]


All times are GMT -4. The time now is 03:14 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.