AHK Skript für neue Pokerstars Engine Aurora

Stelle Fragen zur Automatisierung von Spielen

Moderator: jNizM

pokerplayer81
Posts: 8
Joined: 29 Jan 2020, 01:06

AHK Skript für neue Pokerstars Engine Aurora

Post by pokerplayer81 » 29 Jan 2020, 18:23

Hi zusammen, ich habe jahrelang ein AHK Skript benutzt, um Pokerstars auf meinem Windows 7 PC
mit einem Logitech Gamepad spielen zu können (macht mehr Spass als mit Maus und Tastaur)

Mit dem AHK Skript wurden die Befehle F1-F9 programmiert (Maus klickt an einer bestimmten Stelle
des aktiven Windows Fensters), zusätzlich hab ich die Software "Xpadder" benutzt, um die Befehle F1-F9
mit den Gamepad Tasten zu verknüpfen.

Hat perfekt funktioniert, bis Pokerstars seine neue Graphics Engine "Aurora" implementiert hat
(Mehr Animation und höhere Auflösung / Full HD Full Screen Fenster möglich).
Wenn ich jetzt ein oder mehrere Pokerstars Fenster (Pro Fenster ein Pokertisch) öffne,
scheint das AHK Skript das jeweils aktive Fenster im Vordergrund nicht mehr zu erkennen.

Das hier ist das alte Skript, das in der Vergangenheit perfekt funktioniert hat:
________________________________________________________________________

Code: Select all

WheelUp::
MouseGetPos,,,tableID
WinGetClass, tableIDclass, ahk_id %tableID%
if tableIDclass = PokerStarsTableFrameClass
{
WinSet, Bottom,, ahk_id %tableID%
}
else
{
Send {WheelUp}
}
return

WheelDown::
MouseGetPos,,,tableID
WinGetClass, tableIDclass, ahk_id %tableID%
if tableIDclass = PokerStarsTableFrameClass
{
WinGet, tableID, IDLast, ahk_class PokerStarsTableFrameClass
WinSet, Top,, ahk_id %tableID%
}
else
{
Send {WheelDown}
}
return

; Fold
F1::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton11
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.024
YPOS:=height*0.725
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
}

; Check/Call
F2::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton12
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.78
YPOS:=height*0.97
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
}

; Bet/Raise
F3::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.94
YPOS:=height*0.97
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
}

;1.INFO/2.UPDATE/3BACK/
F4::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.2575
YPOS:=height*0.82
MouseClick, left, XPOS, YPOS, 1, 0
XPOS:=width*0.2575
YPOS:=height*0.85
MouseClick, left, XPOS, YPOS, 1, 0
XPOS:=width*0.29
YPOS:=height*0.85
MouseClick, left, XPOS, YPOS, 1, 0
XPOS:=width*0.83
YPOS:=height*0.885
MouseClick, left, XPOS, YPOS, 1, 0
XPOS:=width*0.2575
YPOS:=height*0.85
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
} 

; Decrease Bet Size
F5::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.728
YPOS:=height*0.850
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
} 

; Increase Bet Size
F6::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.975
YPOS:=height*0.850
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
}

; SIT OUT AFTER NEXT BIG BLIND
F7::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.024
YPOS:=height*0.775
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
} 

; SIT OUT AFTER NEXT HAND
F8::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.024
YPOS:=height*0.75
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
} 

; Bet/Raise
F9::
IfWinActive,ahk_class FTC_TableViewFull
{
ControlClick, FTCSkinButton13
return
}
else IfWinActive, ahk_class PokerStarsTableFrameClass
{
WinGetPos X, Y, width, height, A
XPOS:=width*0.928
YPOS:=height*0.817
MouseClick, left, XPOS, YPOS, 1, 0
Sleep, 10
return
} 

SetTitleMatchMode, 2
 
~pgup::
WinMaximize, PokerStars Lobby
return
 
~pgdn::
WinMinimize, PokerStars Lobby
return
_______________________________________________________

Weiss jemand, woran es liegen könnte, bzw. wie man das Skript
für die neue Engine umschreiben könnte ?

Danke im Voraus...(!9
Last edited by pokerplayer81 on 30 Jan 2020, 10:41, edited 1 time in total.

pokerplayer81
Posts: 8
Joined: 29 Jan 2020, 01:06

Re: AHK Skript für neue Pokerstars Engine Aurora

Post by pokerplayer81 » 30 Jan 2020, 10:41

Problem ist gelöst, "PokerStarsTableFrameClass" muss durch "GLFW30" ersetzt werden...

Post Reply

Return to “Spiele”