Open Side Menu Go to the Top
Register
HEM Shortcuts (AHK) HEM Shortcuts (AHK)

05-16-2010 , 04:47 AM
Quote:
Originally Posted by TT6
Just been playing around with this and I can get every function to work...except the one I downloaded it for!

When I press win+w (to mark current hand) either nothing happens (i.e. I check at the end of the game and have no marked hands) or it brings up the HEM notes on one of the players.

I'm sure I have the coordinates correct. Am I being naive in assuming that this function is possible while multitabling, and if not, do you have to have tiled tables?

Any help appreciated.
time delays for hands to finish can affect this.
sometimes the HEM shortcut time window is gone but players are still fighting over the river.

thats why ill just wait for the hand to appear on the history and use win+Q.

does alt+F1 work for you on notes?
HEM Shortcuts (AHK) Quote
05-16-2010 , 11:13 AM
Quote:
Originally Posted by ronmar
time delays for hands to finish can affect this.
sometimes the HEM shortcut time window is gone but players are still fighting over the river.

thats why ill just wait for the hand to appear on the history and use win+Q.

does alt+F1 work for you on notes?
Thanks, all seems fine today, which is odd as I didn't change anything. I now see what should happen (the HH window opens, then marks on the next hand), whereas nothing at all was happening yesterday.

Having to use win+Q wasn't really ideal when multitabling as it requires keeping extra attention on which hands I had where....
HEM Shortcuts (AHK) Quote
06-18-2010 , 12:13 AM
Anyone get this working on a Mac running VMWare Fusion? Can't use the Window key becuase it's mapped to the Mac Command Key (command-Q quits VMWare), anyway to change that?
HEM Shortcuts (AHK) Quote
06-24-2010 , 06:51 AM
does anyone have the notes portion of the script working? especially for the icons?
HEM Shortcuts (AHK) Quote
09-05-2010 , 02:37 PM
That is my problem too, everything is working perfectly but I cant set coloring icons.
I"ve been trying for a while but with no results.. I am playing on FT.
HEM Shortcuts (AHK) Quote
09-06-2010 , 06:08 AM
One more question.
HH shortcut works only if we have fixed position window, but what if windows are arranged on screen?
In that situation script will open only HH for window where we input right X,Y.
HEM Shortcuts (AHK) Quote
09-06-2010 , 06:36 AM
It works as the relative co-ordinates of the box within the table. So (0, 0) is top-left corner of table. The table can be anywhere on the screen, as long as it's a fixed size.
HEM Shortcuts (AHK) Quote
09-06-2010 , 06:39 AM
Quote:
Originally Posted by DesertCat
Anyone get this working on a Mac running VMWare Fusion? Can't use the Window key becuase it's mapped to the Mac Command Key (command-Q quits VMWare), anyway to change that?
Just edit the script and change where it says #q: to something else.
HEM Shortcuts (AHK) Quote
09-07-2010 , 07:46 AM
First of all I want to thank you for great job with this script, and also for thread about Learning SNGs on sickread.

I see what you mean but I"m new to AHK scripts, this is the 1st one I ever use.
Here is script that I use, I modified it a bit (RMClick is for moving hands down in Replayer..):

Code:
/*
HEM Shortcuts

Features:
- Replayer hotkeys
    - XButton1 and 2 (side buttons) to skip through hands
    - Mouse wheel to step through the action
    - Middle button to start/stop the replayer
    - right mouse button + scroll wheel changes speed
    
    - h - to open the hand history viewer
    - c - to copy the HH to clipboard
    - m - marks (or unmarks if previously marked) a hand
    
    - Escape to close window
    
- On the mini hand history review (both ingame and from hand review)
    - Esc - closes window
    - m - marks/unmarks hand
    - c - copies hand to clipboard
    - up/down cycles through hands

- on the notes window
    - ESC
        - this overrides the default behaviour (save) so that now
            - if the text is blank, it clicks cancel - i.e. no changes are saved
              the result is if you leave a note blank, it wont be saved with a note icon
            - if there is text, then 'save' is clicked.
    - alt-s forces a save (to save a blank with the icon)
    - alt-x clears, and saves (so the note and icon are both blanked)
    - alt-F1-F4 this changes the note icon to a specified note. Currently i have
      this set to icons 1, 4, 6 and 8 (black, green, yellow and red), but it's easy
      to add and change as required.

- Window movement of notes window and hand history window to a new location
  and focuses the window (on notes txt box) after move
    
KnownIssues:
-

Notes:
-

ToDo:
- quick copy to clipboard shortcut in the hand list
- quick upload to weaktight.com
*/

; SETUP AND CONFIGURATION WHAT HO
; --------------------------------------------------------
;Script configuration
#NoEnv
#SingleInstance force
#Include %a_scriptDir%
SendMode Input
SetWorkingDir %a_scriptDir%

; Changes these to pixel x/y and width/height for the handhistory and notes windows
HANDHISTORY_X := 1
HANDHISTORY_Y := 1

NOTES_X := 1210
NOTES_Y := 120
NOTES_W := 230
NOTES_H := 340

; Frequency to check for new windows to move them
SetTimer MoveWindowsLoop, 250

; Identifiers for each window. 
GroupAdd, Replayer, Holdem Manager Replayer
GroupAdd, MiniHistories, , 2+2 ; Mini history titles change depending on if it's ingame or in replayer. We use the 2+2 button as an identifier.
GroupAdd, Notes, , asdfas ; In my version, the hidden text "asdfas" identifies all note window. Not sure if this is the case for versions, and may break in the future!

; note id consts
TOTAL_NOTES := 23
NOTES_PER_ROW := 8
ICON_WIDTH := 20
ICON_HEIGHT := 20

;Menu Tray, Icon, hemshortcuts.ico ;make yourself a nice little icon and put it in the same location as the ahk script
	
return


; HOTKEYS
; --------------------------------------------------------
; Hotkeys for the replayer
#IfWinActive, ahk_group Replayer

Right::
RButton::
replayerChangeHand()
return

Left::
XButton1::
replayerChangeHand(true)
return

Up::
MButton::
replayerStartStop()
return

WheelUp::
replayerMoveAction()
return

WheelDown::
replayerMoveAction(true)
return

RButton & WheelDown::
replayerChangeSpeed(true)
return 

RButton & WheelUp::
replayerChangeSpeed()
return 

h::
replayerClickHistory()
return

c::
replayerClickHistory()
historyCopyText()
historyClose()
WinActivate, ahk_group Replayer
return

m::
replayerClickHistory()
historyMark()
historyClose()
WinActivate, ahk_group Replayer
return

Esc::
WinClose, ahk_group Replayer
return


; MINI-HAND HISTORY HOTKEYS
; --------------------------------------------------------
#IfWinActive, ahk_group MiniHistories
Esc::
historyClose()
return

RButton & XButton1::
m::
historyMark()
return

c::
historyCopyText()
return

Up::
historyChangeHand()
return

Down::
historyChangeHand(true)
return

; NOTES HOTKEYS
; --------------------------------------------------------
#IfWinActive, ahk_group Notes
Esc::
if (noteGetText()) {
    noteSave() 
} else {
    noteCancel()
}
return

!s::
noteSave()
return

!x::
noteClear()
noteSave()
return

!F1::
selectNoteIcon(1)
return

!F2::
selectNoteIcon(4)
return

!F3::
selectNoteIcon(6)
return

!F4::
selectNoteIcon(8)
return


#IfWinActive, ahk_class QWidget
!h::
hudClickLastHand(309, 52)
return

!m::
hudClickLastHand(309, 52)
historyMark()
historyClose()
return


; NOTES HOTKEYS
; --------------------------------------------------------
; WINDOW MOVEMENT
MoveWindowsLoop:
WinGet, id, ID, ahk_group MiniHistories
if (id) {
    if (!movedhistory) {
        movedhistory := true
        WinMove ahk_id %id%,, %HANDHISTORY_X%, %HANDHISTORY_Y%
        WinActivate, ahk_id %id%
    }
} else {
    movedhistory := false
}

WinGet, id, ID, ahk_group Notes
if (id) {
    if (!movednotes) {
        movednotes := true
        WinMove ahk_id %id%,, %NOTES_X%, %NOTES_Y%, %NOTES_W%, %NOTES_H%
        WinActivate, ahk_id %id%
	ControlFocus, RichEdit20A1, ahk_id %id% 
        SetControlDelay, -1
        ControlSend, RichEdit20A1, ^{End}, ahk_id %id%
    }
} else {
    movednotes := false
}
return



; REPLAYER FUNCTIONS
; All functions assume the active window is the replayer
; --------------------------------------------------------
; jumps either forward or back a hand 
replayerChangeHand(goback=false) { 
    SetTitleMatchMode, 3
    button := goback ? "<" : ">"
    ControlGet, v, Visible, , ||
    if (v) {
        ControlClick, ||
        ControlClick, %button%
        ControlClick, GO
    } else {
        ControlClick, %button%
    }
    SetTitleMatchMode, 1
}

; Starts/stops the replayer
replayerStartStop() { 
    SetTitleMatchMode, 3
    ControlGet, v, Visible, , ||
    if (v) {        
        ControlClick, ||
    } else {
        ControlClick, GO
    }
    SetTitleMatchMode, 1
}

; Moves forwards and backwards in the action of the hand
replayerMoveAction(goback=false) { 
    if goback
        ControlClick X474 Y597
    else
        ControlClick X173 Y605
}

; ; Changes the playback speed - set down to reduce speed.
replayerChangeSpeed(down=false) { 
    if down
        ControlSend, WindowsForms10.msctls_trackbar32.app.0.33c0d9d1, {Down}, A
    else
        ControlSend, WindowsForms10.msctls_trackbar32.app.0.33c0d9d1, {Up}, A
}

; Opens the hand history viewer
replayerClickHistory() {
    If (!WinExist("ahk_group MiniHistories")) {
        MouseGetPos, x, y
        Click, 64, 105
        MouseMove, x, y, 0
        WinWait, ahk_group MiniHistories, , 2
    }
}

; MINI HANDHISTORY FUNCTIONS
; --------------------------------------------------------
; Clicks the "txt" button to copy text to clipboard
historyCopyText() {
    SetControlDelay -1 
    clipboard := ""
    ControlClick, Txt, ahk_group MiniHistories
    ClipWait, 2
}

; Closes the history window
historyClose() {
    WinClose, ahk_group MiniHistories
}

; Toggles the hand mark
historyMark() {
    SetControlDelay -1 
    ControlClick, Button4, ahk_group MiniHistories
}

; Moves to the next or previous hand
historyChangeHand(prev=false) {
    d := prev ? "{Down}" : "{Up}"
    ControlFocus, ComboBox1, A
    Send % d
}


; NOTES FUNCTIONS
; All functions assume note is active window
; --------------------------------------------------------
; Get the note text from window
noteGetText() {
    ControlGetText, txt, RichEdit20A1, A
    return txt
}

; Clicks the cancel button
noteCancel() {
    SetControlDelay -1
    ControlClick, Cancel, A
}

; Clicks the save button
noteSave() {
    SetControlDelay -1
    ControlClick, Save, A
}

; Clicks the clear button
noteClear() {
    SetcontrolDelay -1
    ControlClick, Clear
}

; Selects a specific note icon. Function takes icon - this 
; should be a numerical value from 1 up to 23. 
selectNoteIcon(icon) {
    global TOTAL_NOTES, NOTES_PER_ROW, ICON_WIDTH, ICON_HEIGHT
    SetcontrolDelay -1
    ControlClick, Button4, A
    y := 2 + ((icon - 1) // NOTES_PER_ROW) * ICON_HEIGHT
    x := 2 + (mod(icon - 1, NOTES_PER_ROW)) * ICON_WIDTH
    ControlClick, Button5, A,,,, x%x% y%y%
}


; Opens the hand history viewer
hudClickLastHand(x, y) {
    If (!WinExist("ahk_group MiniHistories")) {
        CoordMode Mouse, Relative
        MouseGetPos, origx, origy
        Click, %x%, %y%
        MouseMove, origx, origy, 0
        WinWait, ahk_group MiniHistories, , 2
    }
}
Can you please tell me what lines are for tables size?
maybe this one?:
Code:
NOTES_X := 1210
NOTES_Y := 120
NOTES_W := 230
NOTES_H := 340
I know you're probably bored with answering all this posts to script dummies, but I have 2 things that bothers me too:

1. Can I mark currently hand (which is not in HH). I searched script but I couldn't find line for that.
2. Is there a way to simplify making color notes on other player (I play on FT and usually I"m coloring players to make table selection easier)

I am much appreciative for any help.
HEM Shortcuts (AHK) Quote
09-07-2010 , 09:45 AM
Quote:
Originally Posted by Sokol
Can you please tell me what lines are for tables size?
maybe this one?:
Code:
NOTES_X := 1210
NOTES_Y := 120
NOTES_W := 230
NOTES_H := 340
That sets the co-ordinates (x,y) and size (width, height) of the HEM notes window. It doesn't do table resizes; that's outside the scope of the script (strictly HEM-related shortcuts)

Quote:
1. Can I mark currently hand (which is not in HH). I searched script but I couldn't find line for that.
i did write code for this, it should be on my blog, but it's hard to get working and lots of people said the have trouble with it. i don't use it any more. there's another thread here in software that has a working script that has a much better method (direct access to teh postgres db). i suggest you look at that (it's not my script and i havent used it yet).

Quote:
2. Is there a way to simplify making color notes on other player (I play on FT and usually I"m coloring players to make table selection easier)

I am much appreciative for any help.
Not on FTP; again this is beyond scope of the script.

There is code in there for shortcuts to mark as an HEM color when the note window is open; but again others have reported this isn't working well now.
HEM Shortcuts (AHK) Quote
09-07-2010 , 04:35 PM
Thank you, I"ll look for that script.
HEM Shortcuts (AHK) Quote
01-15-2011 , 05:35 PM
Has anyone tried to get this to work on Party Poker? Or is it only for FT or Stars?

Chrz.
HEM Shortcuts (AHK) Quote
01-16-2011 , 06:10 AM
Is what only for FT or stars?
HEM Shortcuts (AHK) Quote
01-16-2011 , 05:23 PM
Hood, did you get mark current hand working on FTP?
Is it possible to isolate that part of script and create new one just for marking hands?

I"m asking because good old "Mark current hand" script have issue with new FTP update, and its pretty tough to multitable when we have to wait while specific hand displays in HH HUD.
HEM Shortcuts (AHK) Quote
01-17-2011 , 04:07 PM
What I'd like to know is, is if the HEM Shortcuts script should also work on Party Poker. I've been trying to get it to work but only the mark hands bit works, after I manually open the minihandreviewer that is. I've spent close to an hour trying different stuff so I thought I'd ask if it's supposed to work on PP. Because if it's not, I can stop trying. :-)

Sure would be shame though, this is mighty useful for when you're reviewing hands.
HEM Shortcuts (AHK) Quote
02-02-2011 , 10:09 AM
Quote:
Originally Posted by Sokol
Hood, did you get mark current hand working on FTP?
Is it possible to isolate that part of script and create new one just for marking hands?

I"m asking because good old "Mark current hand" script have issue with new FTP update, and its pretty tough to multitable when we have to wait while specific hand displays in HH HUD.
Ditto here, Mark Hand currently not working properly.
HEM Shortcuts (AHK) Quote
02-02-2011 , 10:52 AM
I never tried getting it working on FT; it was never coded for that. Sure it's easy to isolate what you want, i've explained in detail in this thread the relevant code. I see no reasons why it can't be changed so it works on FT.
HEM Shortcuts (AHK) Quote
02-03-2011 , 12:15 AM
The scroll wheel only goes forward, nothing else works.

Please hit me up on AIM if you can walk me through it.
HEM Shortcuts (AHK) Quote
03-13-2011 , 08:32 PM
Hi, Hood. Thank you for this wonderful script. I have one problem in the replayer. Pressing h doesn't bring up the hand history viewer. Everything else is working. I'd appreciate it if you can help. Thanks.
HEM Shortcuts (AHK) Quote
03-13-2011 , 08:34 PM
you need to set the co-ordinates to the position of the 'replayer' text that appears in the HUD overplay of the replayer. you need to use the window spy tool to get the correct co-ords and set them in the script
HEM Shortcuts (AHK) Quote
03-14-2011 , 01:49 AM
Yes, it works now. Thank you.
HEM Shortcuts (AHK) Quote
04-13-2011 , 08:17 PM
wonderfull tool!

tried to fiddle around but couldnt find out how to solve little prob

- when i already have one hem note open, while playing, and i open a second note it will open somewhere else then " NOTES_X : NOTES_Y : " commands

Q:

How can i command a second(third, fourth..) note window to open x y pixels below(or aside) 1st note window?

dream would be that i have all note windows from one table opened neatly aside from my table setup( on 2nd monitor..)
HEM Shortcuts (AHK) Quote
04-13-2011 , 09:48 PM
hey im new so may sound like a nit
has any1 got the scripts for sng wizard and hem also table ninja
thanks
HEM Shortcuts (AHK) Quote
04-14-2011 , 04:38 AM
Quote:
Originally Posted by icantfoldatc
wonderfull tool!

tried to fiddle around but couldnt find out how to solve little prob

- when i already have one hem note open, while playing, and i open a second note it will open somewhere else then " NOTES_X : NOTES_Y : " commands

Q:

How can i command a second(third, fourth..) note window to open x y pixels below(or aside) 1st note window?

dream would be that i have all note windows from one table opened neatly aside from my table setup( on 2nd monitor..)
yeah basically that's not coded. It can be, but it's not a simple one-liner answer for you. Your choices are learn a little AHK, ask nicely for someone to code it, pay someone to code it, or look at software like placemint that can do it without any coding.
HEM Shortcuts (AHK) Quote
06-21-2011 , 04:51 PM
Hey guys , very nice thing

can anyone give a script text , to mark a current hand ?
thanks
HEM Shortcuts (AHK) Quote

      
m