Results 1 to 6 of 6

Thread: MTW II & AHK. Why it does not work?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default MTW II & AHK. Why it does not work?

    Hi,
    My script :

    Code:
    #InstallKeybdHook
    }::
    SetTitleMatchMode, 2
    {
        WinGet, active_id, ID, A        
        WinGet, id, list, Adobe,, Program Manager
            Loop, %id%
        {
        
                this_id := id%A_Index%
                ControlSend, AVL_AVView15, {Down}, ahk_id %this_id%
    
            }
    
    }
    return
    It press Cursor_down in one inactive Acrobat reader window while } is pressed unless Medieval II is in front.
    I tried and it works fine with every other program/game I have on my drive.
    Does anyone know why or how to work around it?
    THX

  2. #2
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: MTW II & AHK. Why it does not work?

    It could be the way CA has it programmed.

    DVD? Steam? Other?

  3. #3

    Default Re: MTW II & AHK. Why it does not work?

    DVD

  4. #4
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: MTW II & AHK. Why it does not work?

    SEGA added SecuROM as its copy protection along with its own algorithms before printing the dvds. This I believe has been brought up before and has been stonewalled by CA's own developers.

    I post over at .Com every so often and on issues like this expect your thread to all off the page there. Their moderators there are like here, volunteers, and if they can't get a straight answer from CA what to post, they won't.

  5. #5

    Default Re: MTW II & AHK. Why it does not work?

    It is not about copy protection. It's anti cheat thing like PunkBuster or alike - wathever they used in this game.
    Script:
    Code:
    #InstallKeybdHook
    SendMode Input
    RAlt & ]::
    SetKeyDelay, 0, 10, Play
    SetTitleMatchMode, 2
    {
        WinGet, active_id, ID, A        
        WinGet, id, list, Adobe,, Program Manager
            Loop, %id%
        {
        
                this_id := id%A_Index%
                ControlSend, AVL_AVView15, {Down}, ahk_id %this_id%
    
            }
    
    }
    return
    If you want to do AHK-anything while in MTW II (Kingdoms, I play TATW) then the only way(probably) is to use SendMode Input and key combination with ALT.

    [SOLVED]

  6. #6
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: MTW II & AHK. Why it does not work?

    One way to keep us a little more honest. Enjoy playing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •