Two Plus Two Newer Archives  

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

Reply
 
Thread Tools Display Modes
  #131  
Old 04-23-2006, 04:24 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

is this version working? i'm having ton's of trouble getting it to work. i had this program working before i whiped my hard drive, but i have no idea what build it was.

the problem i'm having with this version is that i can only navigate up and down, even though the keys are bound correctly, seemingly.

also, what does it mean when the key-bindings are in bold? that whole screen/interface seems really buggy.

i'm pasting straight from wiki into a notepad file, and then saving as .ahk. any ideas on what i'm doing wrong?
Reply With Quote
  #132  
Old 04-23-2006, 04:46 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

to clarify, keys that don't work are:
w = wait to post
left arrow = left
right arrow = right

anybody else have these problems?
Reply With Quote
  #133  
Old 04-23-2006, 04:59 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: Rewrite for TN

[ QUOTE ]
left arrow = left
right arrow = right


[/ QUOTE ]

Oops. My fault. I'll fix it as soon as possible.
I don't know about the "wait to post" one though.

Err.. no, not my fault. Working fine here. I dunno.
Reply With Quote
  #134  
Old 04-23-2006, 05:18 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

thanks for looking into it, i'll keep trying
Reply With Quote
  #135  
Old 04-23-2006, 05:24 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: Rewrite for TN

Could you try using different keys, just to see if it works?
Also, a reboot might help.
Reply With Quote
  #136  
Old 04-23-2006, 05:29 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

rebooted, reinstalled ahk, redid the ahk instructions and had the same issues. i'll try differen't keys. could it be because i don't bind a key to every command in the group?

also another difference between this version and the working version i had before is that there is no 'table navigator' popup thing when you start it, and it seems to start 'on' when i open party. the blue bar is over the first table i open immediately
Reply With Quote
  #137  
Old 04-23-2006, 05:33 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

changed 'wait to post' from 'w' to 't' and still didn't work. also left and right still not working. this seems really weird - i wish i knew anything about this stuff [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #138  
Old 04-23-2006, 05:42 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: Rewrite for TN

[ QUOTE ]
could it be because i don't bind a key to every command in the group?


[/ QUOTE ]

Nope.

[ QUOTE ]
also another difference between this version and the working version i had before is that there is no 'table navigator' popup thing when you start it, and it seems to start 'on' when i open party. the blue bar is over the first table i open immediately


[/ QUOTE ]

Yeah... I got rid of that. It was fun to write but basically annoying.

[ QUOTE ]
changed 'wait to post' from 'w' to 't' and still didn't work. also left and right still not working. this seems really weird - i wish i knew anything about this stuff

[/ QUOTE ]

Just so you know, you can use modifiers (like Ctrl or Alt). That way you'll be able to type while playing. [img]/images/graemlins/wink.gif[/img]
I really don't know what this could be right now and it's getting late - maybe Sam knows.
If you're desperate, you could try one of the other navigation modes I guess. [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #139  
Old 04-23-2006, 05:49 PM
EvanJC EvanJC is offline
Senior Member
 
Join Date: Jul 2004
Location: way down deep
Posts: 4,175
Default Re: Rewrite for TN

im sure i'll get it worked out at some point =) thanks for your help
Reply With Quote
  #140  
Old 04-25-2006, 08:28 PM
Adde Adde is offline
Senior Member
 
Join Date: Oct 2002
Location: Sweden
Posts: 2,453
Default Re: TableNavigator

Heya!

(I can't login to OC forums for some reason, so I'll post this here. Sorry for crappy tabs/spaces formatting.)

I would love a navigation function that moves to next table in clockwise order, so I wrote one. Any chance this could be given a hotkey command, and/or added to the present navigation styles?

Adde


; *** ADDE ***
; Move tables clockwise. Should work for combinations of table arrangements where tables are
; (reasonably) aligned by height, with max height of 2 tables.

MoveClockwise()
{
global tables_ID_list, tables_x_list, tables_y_list, tn_tableID, wrapping
GoSub, UpdateTables
StringSplit, tables_ID_list, tables_ID_list, `,
StringSplit, tables_x_list, tables_x_list, `,
StringSplit, tables_y_list, tables_y_list, `,

;Go through the table-list and find our table.

thisNum =
Loop, %tables_ID_list0%
{
If tables_ID_list%a_index% = %tn_tableID%
{
thisNum := a_index
thisX := tables_x_list%thisNum%
thisY := tables_y_list%thisNum%
break
}
}
;If we weren't found, uh, just return.
If thisNum =
return

; Find out if table is positioned on up or down part of screen.

WinGetPos, thisX, thisY, thisW, thisH, ahk_id %tn_tableID%
screenH = %A_ScreenHeight%
freeY := screenH - (2 * thisH) + 5 ; free vertical space left with 2 tables on height
middleY := screenH - thisH - freeY ; middle point for tables being on up or down part of screen

minVal := -999999
maxVal := 999999

upLeftMost := maxVal
upRightMost := minVal
downLeftMost := maxVal
downRightMost := minVal

upLeftClose := minVal
upRightClose := maxVal
downLeftClose := minVal
downRightClose := maxVal

; Go through all tables and find those close to current table, and those close to screen edges.

Loop, %tables_ID_list0%
{
thatNum := a_index
thatID := tables_ID_list%thatNum%
;Not this table
If thatNum = %thisNum%
continue

thatX := tables_x_list%a_index%
thatY := tables_y_list%a_index%

; Find tables closest to screen edges (leftmost and rightmost)

if (thatY <= middleY)
{
; UP SCREEN
if (thatX <= upLeftMost) {
upLeftMost := thatX
upLeftMostID := thatID
}
if (thatX > upRightMost) {
upRightMost := thatX
upRightMostID := thatID
}
}
else
{
; DOWN SCREEN
if (thatX <= downLeftMost) {
downLeftMost := thatX
downLeftMostID := thatID
}
if (thatX > downRightMost) {
downRightMost := thatX
downRightMostID := thatID
}
}
; Find tables closest to current table (left and right)

if (thisY <= middleY)
{
if (thatY <= middleY)
{
; UP SCREEN
if (thatX <= thisX and thatX > upLeftClose) {
upLeftClose := thatX
upLeftCloseID := thatID
}
if (thatX > thisX and thatX < upRightClose) {
upRightClose := thatX
upRightCloseID := thatID
}
}
}
else
{
if (thatY > middleY)
{
; DOWN SCREEN
if (thatX <= thisX and thatX > downLeftClose) {
downLeftClose := thatX
downLeftCloseID := thatID
}
if (thatX > thisX and thatX < downRightClose) {
downRightClose := thatX
downRightCloseID := thatID
}
}
}
}

; If a clockwise table exist on same part of screen (up/down), move to that table.
; Otherwise, move to most clockwise table on opposite part of screen.
; Otherwise, move to clockwise table on same part of screen.

if (thisY <= middleY) {
; UP SCREEN
if (upRightClose <> maxVal)
navigatorIDSelect(upRightCloseID, 0)
else if (downRightMost <> minVal)
navigatorIDSelect(downRightMostID, 0)
else if (upLeftMost <> maxVal)
navigatorIDSelect(upLeftMostID, 0)
}
else {
; DOWN SCREEN
if (downLeftClose <> minVal)
navigatorIDSelect(downLeftCloseID, 0)
else if (upLeftMost <> maxVal)
navigatorIDSelect(upLeftMostID, 0)
else if (downRightMost <> minVal)
navigatorIDSelect(downRightMostID, 0)
}

return
}
Reply With Quote
Reply


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 05:04 PM.


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