Login

russian armor

AHK script stops working in midgame

aaa
20 Nov 2015, 09:45 AM
#1
avatar of aaa

Posts: 1487

It happens only in coh2. If i switch to windows everithing is working.
In last 3 days i lost 10-15 games solely cuz I cant play without my ahk.
Why is this happening?
21 Nov 2015, 03:48 AM
#2
avatar of Nuclear Arbitor
Patrion 28

Posts: 2470

idk. are you alt tabbing out?
21 Nov 2015, 04:52 AM
#3
avatar of What Doth Life?!
Patrion 27

Posts: 1664

Do you have this as your first line in your script?:

#IfWinActive, Company Of Heroes 2

This will make it so your script ONLY works when COH2 is the active window.

If you also put your script in your startup folder you will never have to worry about it.
aaa
21 Nov 2015, 06:16 AM
#4
avatar of aaa

Posts: 1487

Do you have this as your first line in your script?:

#IfWinActive, Company Of Heroes 2

This will make it so your script ONLY works when COH2 is the active window.

If you also put your script in your startup folder you will never have to worry about it.


i had this line previously its useless imo. Maybe problem was caused by win hotkeys. I removed lwin button phisicaly.

what will be better if i put it startup folder?
21 Nov 2015, 06:19 AM
#5
avatar of What Doth Life?!
Patrion 27

Posts: 1664

If it's in your startup you never have to activate it. It will turn on when your computer boots up.
21 Nov 2015, 08:43 AM
#6
avatar of Jewdo

Posts: 271

I havnt had this problem (although I only use it for one key, haha)

My AHK is on my desktop, often I forget to run the script and just alt-tab -> right click -> run script, then alt-tab back in game.

If you dont find a solution, maybe this idea might help. :)
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

952 users are online: 952 guests
0 post in the last 24h
8 posts in the last week
34 posts in the last month
Registered members: 49107
Welcome our newest member, Falac851
Most online: 2043 users on 29 Oct 2023, 01:04 AM