OSRichard
Joined: 26 Sep 2009 Posts: 7
|
Posted: Sun Sep 27, 2009 8:55 am Post subject: Hotkeys inactive if a wnd with ahk_class containg dot active |
|
|
The script works when executing the ahk file directly. However, in compiled form, the hotkeys are inactive when the window with ahk_class containing dot (l1l1.ur in this case) is active.
Sample script that has this issue:
| Code: | ; Entraction Helper Version 0.22
; General settings
; act on the active table, or the table under mouse
actOnActiveTable := 1
; End general settings
entTableClass = l1l1.ur
return
; Define hotkeys here
F5::
getTableID()
return
F8::
ExitApp
return
; End hotkeys definition
getTableID()
{
global actOnActiveTable
MsgBox, in getTableID
retID :=
if (actOnActiveTable = 1) {
;WinGet, retID, ID, A
retID := WinExist("A")
MsgBox, ID1: %retID%
} else {
MouseGetPos,,,retID
}
WinGetClass, winClass, ahk_id %retID%
if (winClass <> "l1l1.ur")
retID :=
MsgBox, ID2: %retID%
return retID
}
|
You can see that the hotkeys are inactive because the message boxes do not appear. |
|