Open Side Menu Go to the Top

07-06-2008 , 03:08 PM
hi, a very kind member gave me this script for AHK so i could get the hotkeys working again on pacific poker and move the bet slider with the scroll wheel. however i have no real idea how to make it work with AHK as i have never used this program before. this is the guide i have been following but i have had no joy making the scroll wheel work.

(1) Download and install Autohotkey.

(2) Right-click desktop (or whatever location on your disk), choose New > Autohotkey Script.

(2a) Rename the new script from "New AutoHotkey Script.ahk" to "Your Choice of Name.ahk". Don't forget the ".ahk"!

(3) Right-click file, choose Edit Script.

(4) Paste in whatever script, save and close.

(5) Double-click file to run script.

then i try it on pacific and it doesn't work. obviously i have been fiddling about a lot trying out any variables i can think of that may make a difference. i am assuming if i have pacific running and then open the script it should just kick in without me having to restart pacific.

am i doing something wrong? can anyone help? i just need to be guided through it as its the first time i have used the program and i know absolutely nothing about scripts and programming.

also would it be possible for me to change the from the scroll wheeling to the left and arrow keys to change the bet amount. i don't suppose anyone out there has anymore pacific scripts while we are on the subject. maybe some truly amazing person will know how to make pokerpad support pacific. thanks again to pomtidom who wrote the code featured below.

Code:

GroupAdd, Pacific, Hold'em ahk_class #32770

~WheelUp::
ChangeCurrentValue( 1 )
return

~WheelDown::
ChangeCurrentValue( -1 )
return

^WheelUp::
ChangeCurrentValue( 2 )
return

^WheelDown::
ChangeCurrentValue( -2 )
return

+WheelUp::
ChangeCurrentValue( 10 )
return

+WheelDown::
ChangeCurrentValue( -10 )
return

#IfWinActive, ahk_group Pacific
RButton & WheelUp::
ChangeCurrentValue( 10 )
return

MButton & WheelUp::
ChangeCurrentValue( 10 )
return

RButton & WheelDown::
ChangeCurrentValue( -10 )
return

MButton & WheelDown::
ChangeCurrentValue( -10 )
return
#IfWinActive

GetCurrentValue( id )
{
ControlGetText, amount, Edit1, ahk_id %id%
return amount
}

ChangeCurrentValue( amount )
{
MouseGetPos, , , id
WinGetTitle, title, ahk_id %id%
If ( SubStr( title, 1, 8 ) = "Hold'em " )
{
pos := InStr( title, "/$" )
bb := SubStr( title, pos + 2, 2 )
sb := bb // 2
val := GetCurrentValue( id )
; if ( val = 2 * bb and amount > 0 )
; {
; val := Round( 3.5 * bb, 0 )
; }
; else
; {
val := val + amount * sb
; }
; MsgBox, %val%
ControlSetText, Edit1, %val%, ahk_id %id%
}
}
Need Help Making AHK Code Work Quote
Need Help Making AHK Code Work
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Need Help Making AHK Code Work
07-06-2008 , 03:14 PM
Are you on Vista? See if any of this helps perhaps. Also make sure your monitor settings are on 32 bit color.

I don't play on Pacific, or use Pokerpad, but these are all general AHK/Vista suggestions.


Quote:
Originally Posted by New York Jet
INSTRUCTIONS FOR USING BETPOT WITH WINDOWS VISTA AND POKERSTARS

Install AutoHotKey
  1. Download and install AutoHotKey.
  2. Right click on C:\Program Files\AutoHotkey\AutoHotkey.exe and select Properties.
  3. Click the Compatibility tab.
  4. Click the Show settings for all users button.
  5. Check the Run this program as an administrator checkbox.
  6. Press the OK button twice.
Configure PokerStars for BetPot
  1. Right click on C:\Program Files\PokerStars\PokerStars.exe and select Properties.
  2. Click the Compatibility tab.
  3. Click the Show settings for all users button.
  4. Check the Disable desktop composition checkbox.
  5. Check the Run this program as an administrator checkbox.
  6. Press the OK button twice.
Adjust Aero Glass Settings (If you have Aero disabled, you can skip these steps)
  1. Right-click the Desktop and select Personalize.
  2. Click on Windows Color and Appearance.
  3. Click on Open Classic Appearance Properties.
  4. Click on the Advanced button.
  5. Select Border Padding in the Item drop-down box.
  6. Change the Size to 1.
  7. Click OK twice.
Download and Extract BetPot
  1. Download BetPot to C:\AHK (you can put it anywhere you want, but I'll reference this folder for the instructions).
  2. Double click C:\AHK\BetPot-0.21s.zip (actual filename may change due to versioning).
  3. Click the Extract all files button just above the file list.
  4. Type in C:\AHK\BetPot and click the Extract button.
  5. Double click C:\AHK\BetPot\BetPot-v0.2s.ahk.
Edit the betting amounts and buttons
  1. Right click C:\AHK\BetPot\betpot_default_hotkeys.ahk and select Edit Script.
  2. The amounts in "" are percentages. (1=Bet the pot, 0.66=2/3 pot)
Did I forget anything?

Also, I could probably write and installation script that would do all of these steps automatically. I'm not sure it's needed.
Need Help Making AHK Code Work Quote
07-06-2008 , 04:32 PM
ah,,, forgot to mention i'm using XP. thanks very much for the help though, will any of that apply to XP?
Need Help Making AHK Code Work Quote
07-06-2008 , 04:40 PM
Only the install and editing portion. The 32 bit display settings will definitely matter.

The desktop composition, aero glass, and UAC stuff, is all vista related.
Need Help Making AHK Code Work Quote
Need Help Making AHK Code Work
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Need Help Making AHK Code Work

      
m