Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Internet Poker > Software > Free Software

Notices

Free Software Discussion of Free / Freeware / Donationware / Open Source poker software and Free Graphics mods

Reply
 
Thread Tools Display Modes
Old 01-17-2012, 01:03 PM   #76
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK
Posts: 9,133
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

I expect it works fine on PokerSatrs.fr - you may well need to adjust this line # 12 as it probably installs / writes the log in a different place:
Code:
_FILE := A_ProgramFiles . "\PokerStars\PokerStars.log.0"
There should be no problems running it alongside tableninja, or making two copies of this script with a different _FILE location and running them both for that matter
_dave_ is offline   Reply With Quote
Old 01-19-2012, 09:22 AM   #77
stranger
 
Join Date: Dec 2007
Posts: 13
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

I tryed this script and cant get it to work... any suggestions?
Rodd_Hammers is offline   Reply With Quote
Old 02-06-2012, 11:07 AM   #78
enthusiast
 
hundenapf's Avatar
 
Join Date: Mar 2010
Location: Austria
Posts: 67
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

I have tried the various hints in this thread and didn't get it to work yet either I'm on Win7 64bit and changed the path to user directory, changed coordinates to those Windows spy gave me for the Nova theme and I tried it with both AHK versions L and classic, no love with any of these combinations I do get some message boxes though when I uncomment these in the code so it has access to the log, must be something else still.
hundenapf is offline   Reply With Quote
Old 02-13-2012, 05:53 AM   #79
adept
 
AntiHer0's Avatar
 
Join Date: Dec 2010
Location: building superhuds
Posts: 1,189
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Quote:
Originally Posted by hundenapf View Post
I have tried the various hints in this thread and didn't get it to work yet either I'm on Win7 64bit and changed the path to user directory, changed coordinates to those Windows spy gave me for the Nova theme and I tried it with both AHK versions L and classic, no love with any of these combinations I do get some message boxes though when I uncomment these in the code so it has access to the log, must be something else still.
which coordinates did you change to? be careful that you are using the correct set, there are both relative and screen coordinates
AntiHer0 is offline   Reply With Quote
Old 02-15-2012, 08:07 PM   #80
TTR
journeyman
 
Join Date: Dec 2008
Location: Ger
Posts: 230
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Quote:
Originally Posted by hundenapf View Post
... changed coordinates to those Windows spy gave me for the Nova theme
numbers of windowspy dont work here either, but by some trial and error i got this numbers, which seems twork fine with NOVA, btw on .fr and .com
Quote:
sitin_x := 640
sitin_y := 505
timebank_x := 510
timebank_y := 460
TTR is offline   Reply With Quote
Old 02-18-2012, 01:53 AM   #81
banned
 
Join Date: Dec 2011
Posts: 15
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

is it possible to make AHK script - pot-odds on table for Ipoker and PokerStars?
Spartak! is offline   Reply With Quote
Old 02-19-2012, 05:32 AM   #82
grinder
 
Redeye00's Avatar
 
Join Date: Oct 2008
Location: On the edge!
Posts: 545
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Using successfully for nova theme with co-ords (windowspy suggested y co-ords of around 450):

timebank_x := 750
timebank_y := 410
Redeye00 is offline   Reply With Quote
Old 02-19-2012, 09:45 AM   #83
TTR
journeyman
 
Join Date: Dec 2008
Location: Ger
Posts: 230
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Quote:
Originally Posted by TTR View Post
timebank_x := 510
timebank_y := 460

Quote:
Originally Posted by Redeye00 View Post
timebank_x := 750
timebank_y := 410


weird to have them both work with Nova

Last edited by TTR; 02-19-2012 at 09:54 AM.
TTR is offline   Reply With Quote
Old 03-01-2012, 12:04 PM   #84
newbie
 
Join Date: Jul 2009
Posts: 15
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Hi _dave_,

thank you ever so much. Awesome script!!!! Very, very nice!!!

It works perfect. I would like to change it a bit. Unfortunately i am not really skilled with this stuff.

1. Whats my line, if i want no auto sit in? (i mean its cool but not good for a smoking break )

Just delete this part:
Quote:
sitin_x := 532
sitin_y := 468
or is it part of a process/loop???

2. ATM it works only with default-sized table. What i have to edit when i want a bigger window (play stacked). Something to do with this??:
Quote:
global border
global caption
rw := 792
rh := 546
Thanks in advance.
BADABING! is offline   Reply With Quote
Old 03-04-2012, 07:07 AM   #85
newbie
 
Join Date: Jul 2009
Posts: 15
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Hi,

k, kicking "insta sit back in" was easy ( ";" do the job). But still dont know how to get the script to work with non-default sized tables...
Anyway, thx again for this awesome script

(dont know how to edit my post, sry)
BADABING! is offline   Reply With Quote
Old 03-05-2012, 08:05 PM   #86
TTR
journeyman
 
Join Date: Dec 2008
Location: Ger
Posts: 230
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Quote:
Originally Posted by BADABING! View Post
1. Whats my line, if i want no auto sit in? (i mean its cool but not good for a smoking break )



Just delete this part:


or is it part of a process/loop???
i'd rather recommend putting in a hotkey to pause the script.

Code:
^F12::pause
Just put it to the end of the file and whenever you go for a smoke you press ctrl-F12, then sit out on all you tables. When you come back you press ctrl-F12 again and the script will sit you right in


Quote:
2. ATM it works only with default-sized table.
nou, with above numbers you tell the script where to click on default-sized tables and it will calc the numbers for tables of any other sizes


What i have to edit when i want a bigger window (play stacked). Something to do with this??:


Thanks in advance.[/QUOTE]
TTR is offline   Reply With Quote
Old 03-07-2012, 11:18 AM   #87
newbie
 
Join Date: Jul 2009
Posts: 15
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Hi TTR,

thx for the advice.

Quote:
nou, with above numbers you tell the script where to click on default-sized tables and it will calc the numbers for tables of any other sizes
lol. Without checking it out before, i have used Windowspy to get the coords of the bigger window - certainly it doesnt work
Sometimes it`s just simple as that.
Seems to work now to my liking

Thx again
BADABING! is offline   Reply With Quote
Old 03-08-2012, 06:32 PM   #88
enthusiast
 
Join Date: Apr 2011
Posts: 98
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

Dave since we are in same Hu coaching group i know you are great guy (some serious ass kissing itt) would you please make this exact tool for Ipoker?
Pretty please ill pay you up to whole 3 bi's for this! (since we are on same level in coaching branch you know that means a lot of moniez!!)
Ragnarok3 is offline   Reply With Quote
Old 03-20-2012, 04:35 PM   #89
newbie
 
Join Date: Apr 2011
Posts: 28
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

I copied the scrip maded by Spellofmaya / Max1mums:

Code:
#NoEnv
#Persistent
SetBatchLines -1


CheckTime := 500   ; Check every n MilliSeconds
sitin_x := 532
sitin_y := 468

timebank_x := 520
timebank_y := 460

If A_OSVersion in WIN_VISTA
{
_FILE := A_AppData . "\PokerStars\PokerStars.log.0"
IfNotExist %_FILE%
stringreplace,_FILE,_FILE,Roaming,Local
IfNotExist %_FILE%
{
 msgbox, PokerStars.log.0 file was not found
 return
}
}
else
_FILE := A_ProgramFiles . "\PokerStars\PokerStars.log.0"
;_FILE := "E:\sitout.txt"
SysGet, border, 32
SysGet, caption, 4
SetTimer, FILE_CHECK, %CheckTime%
return


FILE_CHECK:
If (_NEWLINES := CheckFile(_FILE))
{
  ;msgbox, %_NEWLINES%
  Loop, Parse, _NEWLINES, `n
  {
    if(regExMatch(a_loopfield, "MSG_TABLE_FORCE_SITOUT\s(\w{8})\s1", m))
    {
      ;msgbox, %m1%
      ;PostStarsClick(sitin_x, sitin_y, ("0x" . m1))
      id:="0x" . m1
      winclose,ahk_id%id%
      winwait,Table ahk_class #32770,,1
      {
       ControlFocus,Button1,
       Sleep, -1
       ControlSend,Button1,{SPACE},
      }  
    }
    else if (regExMatch(a_loopfield, "MSG_TABLE_TIMEBANK\s(\w{8})\stime=", m))
    {
      ;msgbox, %m1%
      PostStarsClick(timebank_x, timebank_y, ("0x" . m1))
    }
  }
;msgbox, %m1%
   
}
Return


CheckFile(File) {
   ; THX Sean for File.ahk : http://www.autohotkey.com/forum/post-124759.html
   Static CF := ""   ; Current File
   Static FP := 0    ; File Pointer
   Static OPEN_EXISTING := 3
   Static GENERIC_READ := 0x80000000
   Static FILE_SHARE_READ := 1
   Static FILE_SHARE_WRITE := 2
   Static FILE_SHARE_DELETE := 4
   Static FILE_BEGIN := 0
   BatchLines := A_BatchLines
   SetBatchLines, -1
   If (File != CF) {
      CF := File
      FP := 0
   }
   hFile := DllCall("CreateFile"
                  , "Str",  File
                  , "Uint", GENERIC_READ
                  , "Uint", FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE
                  , "Uint", 0
                  , "Uint", OPEN_EXISTING
                  , "Uint", 0
                  , "Uint", 0)
   If (!hFile) {
      CF := ""
      FP := 0
      SetBatchLines, %BatchLines%
      Return False
   }
   DllCall("GetFileSizeEx"
         , "Uint",   hFile
         , "Int64P", nSize)
   If (FP = 0 Or nSize <= FP) {
      FP := nSize
      SetBatchLines, %BatchLines%
      DllCall("CloseHandle", "Uint", hFile) ; close file
     Return False
   }
   DllCall("SetFilePointerEx"
         , "Uint",  hFile
         , "Int64", FP
         , "Uint",  0
         , "Uint",  FILE_BEGIN)
   VarSetCapacity(Tail, Length := nSize - FP, 0)
   DllCall("ReadFile"
         , "Uint",  hFile
         , "Str",   Tail
         , "Uint",  Length
         , "UintP", Length
         , "Uint",  0)
   DllCall("CloseHandle", "Uint", hFile)
   VarSetCapacity(Tail, -1)
   FP := nSize
   SetBatchLines, %BatchLines%
   Return Tail
}

relStarsClientPoint(id, ByRef x, ByRef y)
{
  global border
  global caption
  rw := 792
  rh := 546
  WinGetPos, , , w, h, ahk_id%id%
  w := w - (2*border)
  h := h - (2*border) - caption
  
  x := Floor( (x / rw ) * w )
  y := Floor( (y / rh) * h  )
  
}

;Juks rocks
PostLeftClick(x, y, table_id, activate=0) {
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
;       window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
If activate
 WinActivate, ahk_id%table_id%
PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}

PostStarsClick(x, y, id)
{
  relStarsClientPoint(id, x, y)
  PostLeftClick(x, y, id)
}
edited this part:
Code:
sitin_x := 770
sitin_y := 630
Coords proporcioned by windowspy, also edited this part just in case to match siting x,y:

Code:
  rw := 1028
  rh := 736
Still Not working.

Any idea?
Thanks.
vanBasten is offline   Reply With Quote
Old 03-20-2012, 05:24 PM   #90
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK
Posts: 9,133
Re: New AHK: TimeOut Helper (Instant Sit Back In) and Auto Timebank for PokerStars

coords produced by window spy will be wrong. you need coordinates of the client area, that is the window without any of it's borders/captions. the easiest way to get this is to use a screenshot utility that can capture client area (I use an old software paint shop pro 9), or crop a larger screenshot down to size. x/y values are nearly always in client area, since it scales and titlebar/borders do not.

rw and rh specify the original width and height of a client area, this is what the window (client area!) should be sized at when looking for x/y coordinates to click on. they are usually the size of a table when you do not have any layout set, i.e. a default pokerstars table window.
_dave_ is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 04:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive