AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotkeys inactive if a wnd with ahk_class containg dot active

 
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
OSRichard



Joined: 26 Sep 2009
Posts: 7

PostPosted: Sun Sep 27, 2009 8:55 am    Post subject: Hotkeys inactive if a wnd with ahk_class containg dot active Reply with quote

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.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Sun Sep 27, 2009 12:35 pm    Post subject: Reply with quote

Perhaps this particular window using DirectInput or some other kind of direct keyboard handling. You could try adding a $ prefix to each hotkey (e.g. $F5::).

If it still doesn't work, there might not be any easy solution.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group