We need custom hotkey
Posts: 7
Posts: 1970 | Subs: 5
Posts: 2838 | Subs: 3
Here's a video I made on how to use AutoHotKey with COH2. There are other guides out there as well:
Posts: 345
Wenyuan, if you don´t like me posting here, tell me and I´ll delete this post.
I´ve started using autohotkeys last weekend, what a great tool!!!
the problem I have with this is that when ingame I press "Enter" to chat, the script stop working and I have to alt+tab and trigger the script again (all of this with the match running of course, so as you can imagine sometimes I lose a squad or a vehicle because of that....
How can I enable again the script after pressing "enter" to write something to my opponent in 1v1 or my mate in 2v2???? is there a key or a way to enable again the script???
can I modify my script in any way so it doesn´t get disabled each time I press "enter"?????
Thanks in advance.
Regards,
Posts: 786
Posts: 345
I got my script from internet....not made by me...
thanks!!
Posts: 830 | Subs: 3
I use Relic Gridkeys and AutoHotkey and I don't have issue with Enter key.
Posts: 641 | Subs: 1
Posts: 345
Write your script here or maybe in this thread (between Code tag).
I use Relic's Gridkeys and AutoHotkey and I don't have issue with Enter key.
Now at job mithiriath, I´ll do it as soon as I arrive at home this evening.
Thanks.
edit: Ok, just tested and it seems caps lock is the key in my script enabling-disabling the script.
Not the best key for that, though, coz is located just between tab and shift keys, and I use both of them a lot....maybe I should try to change from caps lock to one of the function keys....
my script by the way:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^!n::
#IfWinActive, Company Of Heroes
w::up
a::left
s::down
d::right
q::a
g::Numpad0
f::n
e::u
capslock::suspend
Return
Thanks for the support anyway mithiriath, much appreciated.
Posts: 830 | Subs: 3
#NoEnv
SendMode Input
#IfWinActive, Company Of Heroes
{
w::up
a::left
s::down
d::right
q::a
g::Numpad0
f::n
e::u
capslock::suspend
}
Posts: 1487
my script by the way:
Code;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^!n::
#IfWinActive, Company Of Heroes
w::up
a::left
s::down
d::right
q::a
g::Numpad0
f::n
e::u
capslock::suspend
Return
lol this is script is like hello word. It does almost nothing
Posts: 16697 | Subs: 12
Posts: 2723 | Subs: 1
And you don't need to be super hardcore to use it.
Posts: 498
Posts: 19
Posts: 179
Posts: 345
lol this is script is like hello word. It does almost nothing
well, it has all what I need to play the game....if it doesn´t help others, ok, I just tried to be nice with others here....not sure if you wanted to be nice with me with your reply, but.....maybe you can post your super script here so me and others can stop using this "hello word" script.
it could be more constructive than laughing at others trying to help to the OP.
How old are you??? you are 5 years old or what happens???
Posts: 1487
well, it has all what I need to play the game....if it doesn´t help others, ok, I just tried to be nice with others here....not sure if you wanted to be nice with me with your reply, but.....maybe you can post your super script here so me and others can stop using this "hello word" script.
it could be more constructive than laughing at others trying to help to the OP.
How old are you??? you are 5 years old or what happens???
I dont see much that scripts can do in coh2. Only attack move capping queue that i did so far.
Here is my SC script for comparission it does like 40% of work for you.
#InstallKeybdHook
#InstallMouseHook
;;; VAR DEFENITIONS
x := 534
y := 292
Unit1X := 378
Unit1Y := 550
diffMenu := 34
diff := 70
diffSpore := 60
Unit5X := 515
Unit5Y := 550
UpperLeftX := 186
UpperLeftY := 53
LowerRightX := 822
LowerRightY := 460
;;;; FUNCTION DEFENITIONS ;;;;;;;
temp(Unit1X, Unit1Y){
send 0qq
sleep 200
click %Unit1X%, %Unit1Y%
send +{8}
}
BASE_DEFFENSE(x, y) {
setkeydelay 200
*
sporeX := x - 130
spineX := x + 130
send 8zz
click %spineX%, %Y%
send 8zx
click %sporeX%, %Y%
}
BASE_DEFFENSE_1(x, y) {
setkeydelay 200
sporeY := y - 130
spineY := y + 130
sleep 500
send 8zz
click %x%, %spineY%
send 8zx
click %x%, %sporeY%
}
GET_2QUEENS(unit1X, unit1Y, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY) {
send j
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
Send ^{Click %Unit1X%, %Unit1Y%}
Send {ALT DOWN} {9} {alt up}
send j
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
Send ^{Click %Unit1X%, %Unit1Y%}
Send {shift}+{9}
}
3drones() {
send 0qqqq
}
LarvaAuto4(x, y) {
loop 30 {
blockinput on
send !{f7}
send !7
MOUSEMOVE %x%,%y%
send a
loop 6 {
send {j}{z}{z}
}
send {f7}
send 7
blockinput off
sleep, 30000
SoundBeep, 650, 500
while(A_TimeIdlePhysical < 700)
continue
}
}
QUEEN_VISIBLE(x, y, Unit1X, Unit1Y, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY) {
MouseClickDrag, left,%UpperLeftX%, %UpperLeftY%, %LowerRightX%, %LowerRightY%
send ^{click %Unit1X%, %Unit1Y%}
send +a
}
QUEENS_TO9_5LOOP(unit1X, unit1Y, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY) {
send j
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
send ^{click %Unit1X%, %Unit1Y%}
Send {ALT DOWN} {7} {alt up}
loop 5 {
send j
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
Send ^{Click %Unit1X%, %Unit1Y%}
Send {shift}+{7}
}
send 7
send ^{click %Unit1X%, %Unit1Y%}
Send {ALT DOWN} {9} {alt up}
}
GROUPBASES(x, y){
send 0
setkeydelay 30
send j
click %x%,%y%
send !0
loop 6 {
send j
click %x%,%y%
send {f1}
}
}
START(x, y, Unit1X, Unit1Y, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY) {
setdelays1()
send j
click %x%, 230
send {Q}{Q}
click %x%, 230
Send {F1}
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
click %unit1x%, %unit1y%
MOUSEMOVE %x%,%y%
sleep 4000
setkeydelay 30
ElapsedTime := 0
StartTime := A_TickCount
while(ElapsedTime < 160000) {
while(A_TimeIdlePhysical > 700) {
send 0qq
ElapsedTime := A_TickCount - StartTime
}
}
}
UNIT_INTO_4_GROUPS( x, y, Unit1X, Unit1Y, Unit5X, Unit5Y, UpperLeftX, UpperLeftY, LowerRightX, LowerRightY) {
SEND 0J
Click down %UpperLeftX%, %UpperLeftY%
Click up %LowerRightX%, %LowerRightY%
Send {ALT}+{5}
i =1
LOOP 4 {
; shift+leftClick
Send +{Click %Unit5X%, %Unit5Y%, 11}
Send {alt}+{%i%}
SEND {5}
Send +{Click %Unit1X%, %Unit1Y%, 4}
Send {ALT DOWN} {5} {alt up}
i++
}
}
MOVE_UNIT(unit1x,unit1y){
send !7
setdelays0()
mouseGetPos xpos, ypos
click %unit1x%, %unit1y%
send q
click %xpos%, %ypos%
send 7
Send +{Click %unit1x%, %unit1y%}
mousemove %xpos%, %ypos%
setdelays1()
}
BURROW_SEND_UNIT(unit1x,unit1y){
send !7
setkeydelay 10
setmousedelay 1
mouseGetPos xpos, ypos
click %unit1x%, %unit1y%
send {space}
click right %xpos%, %ypos%
Send +{space}
send 7
Send +{Click %unit1x%, %unit1y%}
mousemove %xpos%, %ypos%
}
CTRLCLICKFIRSTUNIT(Unit1X, Unit1Y){
mouseGetPos xpos, ypos
blockinput on
send ^{click %Unit1X%, %Unit1Y%}
mousemove %xpos%, %ypos%
blockinput off
}
Livestreams
583 | |||||
7 | |||||
6 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.592215.734+7
- 4.1101614.642+2
- 5.305114.728+1
- 6.916405.693-2
- 7.272108.716+23
- 8.721440.621+3
- 9.1041674.607-2
- 10.17146.788+1
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
8 posts in the last week
37 posts in the last month
Welcome our newest member, BrubeckDeclarkBurche
Most online: 2043 users on 29 Oct 2023, 01:04 AM