Open Side Menu Go to the Top
Register
How to stop PokerStars from opening the "News" window? How to stop PokerStars from opening the "News" window?

01-22-2013 , 03:03 PM
Hello there.

Every time I log into PS or my connection is lost and comes back the "news" windows opens and it is really annoying.

How can I stop it from opening?
How to stop PokerStars from opening the "News" window? Quote
01-22-2013 , 03:31 PM
try
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

client = PokerStarsUpdate.exe

Run, %client%

WinWait, My News
WinClose, My News
return
it works for me (pokerstars.it)
How to stop PokerStars from opening the "News" window? Quote
01-22-2013 , 03:59 PM
Quote:
Originally Posted by Firefox125
try
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

client = PokerStarsUpdate.exe

Run, %client%

WinWait, My News
WinClose, My News
return
it works for me (pokerstars.it)
Thanks for the suggestion man, but how can I make this script work forever?

It seems to close as soon as it executes the instruction one time.

Last edited by NittyDonk; 01-22-2013 at 04:18 PM.
How to stop PokerStars from opening the "News" window? Quote
01-22-2013 , 05:04 PM
Try putting it into a loop, or just try this one:
Code:
#NoEnv
#Persistent
#SingleInstance, force
SendMode Input
setWinDelay, -1
SetMouseDelay, -1
SetTitleMatchMode, 3

GroupAdd, Popup, PokerStars ahk_class #32770
GroupAdd, Popup, Re-buy ahk_class #32770
GroupAdd, Popup, Options ahk_class #32770
GroupAdd, Popup, My News ahk_class #32770
GroupAdd, Popup, News ahk_class #32770

Loop
{
If WinExist("ahk_group Popup")
	{
	CoordMode, Mouse, screen
	MouseGetPos, x, y
	IfWinExist, PokerStars ahk_class #32770
		{
		WinActivate, PokerStars ahk_class #32770
		ControlClick, PokerStarsButtonClass1	
		WinActivate, ahk_class PokerStarsTableFrameClass
		}
	else, IfWinExist, Re-buy ahk_class #32770
		{
		WinActivate, Re-buy ahk_class #32770
		ControlClick, PokerStarsButtonClass1	
		WinActivate, ahk_class PokerStarsTableFrameClass
		}
	else, IfWinExist, Options ahk_class #32770
		{
		WinActivate, Options ahk_class #32770
		CoordMode, Mouse, relative
		MouseClick, left, 450, 60				;add chips (Button5)
		Sleep 100
		IfWinExist, Options ahk_class #32770
			{
			WinActivate, Options ahk_class #32770
			MouseClick, left, 450, 390			;cancel (Button 15)
			}
		WinActivate, ahk_class PokerStarsTableFrameClass
		}
	else, IfWinExist, My News ahk_class #32770
		{
		WinActivate, My News ahk_class #32770
		ControlClick, PokerStarsButtonClass1	
		WinActivate, ahk_class PokerStarsTableFrameClass
		}
	else, IfWinExist, News ahk_class #32770
		{
		WinActivate, News ahk_class #32770
		ControlClick, PokerStarsButtonClass1	
		WinActivate, ahk_class PokerStarsTableFrameClass
		}
	CoordMode, Mouse, screen
	MouseMove, x, y
	}
WinWait, ahk_group Popup
}
return


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

^q::ExitApp
How to stop PokerStars from opening the "News" window? Quote
01-24-2013 , 09:09 AM
Quote:
Originally Posted by Baobhan-Sith
or just try this one:
Thanks
Works great after removing :
Code:
GroupAdd, Popup, Options ahk_class #32770
before that opening the option tab on hypersimple had some issues
How to stop PokerStars from opening the "News" window? Quote

      
m