Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-17-2006, 05:13 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default MiniLobby V2

Here we go again:





(The Lobby is bigger that the Seat Available window obviously).

Instructions:

You’ll have to edit some images for this one. First, edit the image “background_client”. I use some old table mod, but you can use whatever you like.
Then edit these two: “client_gradient” and “client_top”. They are part of the background, so the easiest way to do it is just open them in Paint or whatever and than paste the images you used for the background on top of the default image: Then select “save as…” and confirm you want to overwrite.
Next, you’ll have to edit the filter buttons. I just use the same filter button for everything (that way I only had to “make” one). Just experiment a bit - all that matters is that it’s short enough. Keep in mind that Party uses one half of it for “open” and the other for “closed”.
That was the “hard” part.
Now, resize these to one pixel:

bulletin_background
filters_background_normal
tab_background
tab_description
tab_game_info
tab_players
tab_players_right
tab_tournament_info
tree_main_background
box_corners

And that’s it.

You can use these two lines of code to make a backup copy before you start:

FileSelectFolder, ImageFolder, C:\Programs\PartyGaming\PartyPoker\Images, , Select the Images Folder:
FileCopyDir, %ImageFolder%, %ImageFolder%\MiniLobbyBackup

Remarks:

I had to do a few things differently for technical reasons.
[*]The menu bar buttons freeze up when moved and don’t react to mouse-clicks. They do, however, react to ControlClick, so I assigned a hotkey (Alt-m) to the “Options and Rules” menu (or whatever it’s called). I don’t think I’ll ever use any of the other menus while playing, so there’s no way to acces them. If somebody wants me to I can change that though.[*]Likewise, the buttons game info buttons were causing trouble, so they too got a hotkey (Alt-i). It will toggle between seated players and info.
[*]As you can see from the pic, I managed to display the average pot size on in the Seat Available window. I just wrote this and tested it only pro forma so I wouldn’t be surprised if there are bugs (that’s true for the rest also btw). For this to work, you ListView in the lobby has to be displaying the limit of the table you’ve just gotten a seat at (though the lobby can be minimzed).
[*]The columns for Stud and Omaha will be auto-resized when necessary (because the avg. pot column was beeing pushed aside).
[*]I’m sure I’ve forgotten something.

Finally, to use this you
[*]download AHK here . It’s free. [*]copy the code below into an editor of your choice (no line wrapping please) and save it as .ahk; then double-click the icon

Sorry the code is such a mess.

I hope Party’s taking screenshots. [img]/images/graemlins/laugh.gif[/img]


;___________________MiniLobby V2__________________________________

; AutoHotkey Version: 1.0.41.02
; Platform: WinXP
; Author: Roland

ControlList = Internet Explorer_Server1,Internet Explorer_Server2, Internet Explorer_Server3
,Shell DocObject View2,Internet Explorer_Server4,Shell DocObject View4,Shell Embedding5
,AfxWnd4213,AfxWnd4264,AfxWnd4261,AfxWnd4262,AfxWn d4263,AfxWnd423,AfxWnd424
,Shell DocObject View1,Shell Embedding2,Shell Embedding3,Static6,AfxWnd425,AfxWnd426
,Static5,AfxWnd4211,AfxWnd421,AfxWnd422,Static1,Af xWnd4212,AfxWnd4213
,AfxWnd4217,AfxWnd4267,AfxWnd4268,AfxWnd4269,AfxWn d4271,AfxWnd4272,AfxWnd4273
,AfxWnd4212,AfxWnd4210,Static7,Static8


WinWait, PartyPoker.com: Poker Lobby ;_____script will keep waiting until you start Party
WinGet, lobby_id, ID, PartyPoker.com: Poker Lobby

;______move the controls out of sight and resize them to one pixel:
Loop, Parse, ControlList, `,
{
ControlMove, %a_loopfield%, 1000, 1000, 1, 1, ahk_id%lobby_id%
}

;______move some controls around:

ControlMove, #327701, 0, 0, 1000, 1000, ahk_id%lobby_id%
ControlMove, SysListView321, 7, 30, , 145, ahk_id%lobby_id%
ControlMove, AfxWnd4270, 7, 30, 1, 1, ahk_id%lobby_id%
ControlGetPos, , , , h, SysListView322, ahk_id%lobby_id%
h := h - 18
ControlMove, SysTreeView321, 7, 180, 165, %h%, ahk_id%lobby_id%
ControlMove, SysListView322, 177, 180, , , ahk_id%lobby_id%
ControlMove, SysListView323, 177, 180, , , ahk_id%lobby_id%
y := h + 5 + 180
ControlMove, AfxWnd4214, 177, %y%, , , ahk_id%lobby_id%
ControlMove, AfxWnd4215, 177, %y%, , , ahk_id%lobby_id%
ControlMove, AfxWnd4218, 177, %y%, , , ahk_id%lobby_id%
ControlMove, AfxWnd4219, 295, %y%, , , ahk_id%lobby_id%
ControlMove, AfxWnd427, 7, %y%, , , ahk_id%lobby_id%
ControlGetPos, , , w, h, AfxWnd428, ahk_id%lobby_id%
x := 7 + w + 2
ControlMove, AfxWnd428, %x%, %y%, , , ahk_id%lobby_id%
x := 7 + w*2 + 4
ControlMove, AfxWnd429, %x%, %y%, , , ahk_id%lobby_id%
ControlGetPos, , y, , h, AfxWnd4214, ahk_id%lobby_id%
ControlGetPos, , , w, , SysListView321, ahk_id%lobby_id%
w := w + 14
h := y + h + 7
WinMove, PartyPoker.com, , , , %w%, %h%
ControlGetPos, SysListView322, , y, w, h, ahk_id%lobby_id%
SendMessage, 4126, 0, 0, SysListView322, ahk_id%lobby_id%
SendMessage, 4126, 1, 95, SysListView322, ahk_id%lobby_id%
SendMessage, 4126, 2, 35, SysListView322, ahk_id%lobby_id%
SendMessage, 4126, 0, 55, SysListView323, ahk_id%lobby_id%
SendMessage, 4126, 1, 75, SysListView323, ahk_id%lobby_id%
ControlMove, SysListView322, , , 130, %h%, ahk_id%lobby_id%
ControlMove, AfxWnd4221, 312, 180, , , ahk_id%lobby_id%
ControlMove, AfxWnd4222, 312, 180, , , ahk_id%lobby_id%
ControlMove, AfxWnd4225, 312, 180, , , ahk_id%lobby_id%
ControlMove, AfxWnd4226, 312, 180, , , ahk_id%lobby_id%
ControlMove, SysListView323, , , 130, %h%, ahk_id%lobby_id%

;_____set timers:

SetTimer, ResizeColumns, 1000
SetTimer, ShowAvg, 1000
return

;__________end fo auto-execute section____________

;_____Hotkeys:


!m::
ControlClick, AfxWnd4270, ahk_id%lobby_id%
return

!i::
ControlGet, is_vis, Visible, , SysListView322, ahk_id%lobby_id%
If is_vis = 1
ControlClick, AfxWnd4212, ahk_id%lobby_id%
else
ControlClick, AfxWnd4211, ahk_id%lobby_id%
return

;______Subroutines:

ResizeColumns:
ControlGet, limit, List, Col2, SysListView321, ahk_id%lobby_id%
StringGetPos, pos_linefeed, limit, `n
StringLeft, limit, limit, %pos_linefeed%
ControlGet, is_stud, List, Col3, SysListView321, ahk_id%lobby_id%
type1 = Stud
type2 = Omaha
If (InStr(is_stud, type1) <> 0 OR InStr(is_stud, type2) <> 0)
{
game_type = stud
If limit <> %limit_prev%
{
SendMessage, 4126, 2, 0, SysListView321, ahk_id%lobby_id%
SendMessage, 4126, 6, 110, SysListView321, ahk_id%lobby_id%
limit_prev = %limit%
}
}
return


ShowAvg:
IfWinNotExist, Seat Available
id_list =
else
{
WinGet, id, List, Seat Available
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0
If this_id in %id_list%
continue
id_list = %id_list%,%this_id%
target = %this_id%
ControlGetText, waitlist_dialog_text, Static1, ahk_id%target%
StringGetPos, pos_on, waitlist_dialog_text, on
StringGetPos, pos_brace, waitlist_dialog_text, (
pos_name := pos_on + 3
name_len := pos_brace - (pos_on + 2)
StringMid, table_name, waitlist_dialog_text, pos_name, %name_len%
ControlGet, list, list, Col1, SysListView321, ahk_id%lobby_id%
pos_name := pos_name - 8
StringTrimLeft, waitlist_dialog_text, waitlist_dialog_text, 36
StringTrimLeft, table_name, table_name, 1
Loop, Parse, list, `n
{
IfInString, A_LoopField, %table_name%
{
If game_type = stud
column = 7
else
column = 6
ControlGet, pot_size, list, Col%column% Row%A_index%, SysListView321, ahk_id%lobby_id%
num_linefeed := A_Index - 1
StringGetPos, pos_linefeed, pot_size, `n, L%num_linefeed%
pos_linefeed++
StringTrimLeft, pot_size, pot_size, %pos_linefeed%
StringGetPos, pos_linefeed, pot_size, `n, L
StringLeft, pot_size, pot_size, %pos_linefeed%
ControlSetText, Button1, %pot_size%, ahk_id%target%
break
}
}
}
}
return

;_____end of code
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:38 PM.


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