Login

russian armor

CoH3 Autohotkey help

27 Feb 2023, 00:40 AM
#1
avatar of pigsoup
Patrion 14

Posts: 4301 | Subs: 2

Is anyone using autohotkey for Coh3 yet?

I used to with CoH2, and my script used to start with:
"#IfWinActive, Company Of Heroes 2"

I made a new script that starts with:
"#IfWinActive, Company Of Heroes 3", but it does not seem to work.

Does anyone have an idea what I have to change?

P.S. the full script that I want is just:
"#IfWinActive, Company Of Heroes 3

XButton1::Numpad0
F1::7
F2::8
F3::9
F4::0"
27 Feb 2023, 15:06 PM
#2
avatar of donofsandiego

Posts: 1379

jump backJump back to quoted post27 Feb 2023, 00:40 AMpigsoup
XButton1::Numpad0


Ahh. Good old mouse4 as the tacmap. I, too, was trying to fiddle around with autohotkey. Then I remembered that they added rebinding keys to the game, so I just gave up and rebound my keys.
27 Feb 2023, 19:20 PM
#3
avatar of UberHanz
Donator 11

Posts: 247 | Subs: 2

Yes, with the simplicity of your script, I would follow the advice above :)
1 Mar 2023, 15:13 PM
#4
avatar of Mithiriath
Director of Social Media Badge

Posts: 830 | Subs: 3

Yes, I always use AutoHotkey because it's useful for me not only for games. ^^

Like donofsandiego said, you can remap keys in the game option now.

"#IfWinActive, Company Of Heroes 3" doesn't work because CoH3 windows named "Company of Heroes 3" not "Company Of Heroes 3". I made also this mistake lol

You should use AutoHotkey v2.x now it's released.

Your script:
Code

SendMode "Input" ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir A_InitialWorkingDir ; Ensures a consistent starting directory.
SetKeyDelay 50, 50

#HotIf WinActive("ahk_exe RelicCoH3.exe") ; Hotkeys enable only when CoH3 windows is focus/in the foreground
XButton1::Numpad0
F1::7
F2::8
F3::9
F4::0
#HotIf


1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

622 users are online: 622 guests
0 post in the last 24h
2 posts in the last week
28 posts in the last month
Registered members: 49389
Welcome our newest member, Haruta446
Most online: 2043 users on 29 Oct 2023, 01:04 AM