Login

russian armor

We need custom hotkey

28 Oct 2014, 06:02 AM
#1
avatar of wenyuan

Posts: 7

We need custom hotkey!!!
28 Oct 2014, 06:05 AM
#2
avatar of Romeo
Honorary Member Badge
Benefactor 115

Posts: 1970 | Subs: 5

use autohotkey until relic can figure out this futuristic technology
28 Oct 2014, 06:19 AM
#3
avatar of computerheat
Honorary Member Badge
Benefactor 117

Posts: 2838 | Subs: 3

Yeah, it was bad enough that the first game didn't have custom hotkeys.

Here's a video I made on how to use AutoHotKey with COH2. There are other guides out there as well:
28 Oct 2014, 10:20 AM
#4
avatar of Ful4n0

Posts: 345

I hope is right if I ask here for some advices about AutoHotkeys...

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,
28 Oct 2014, 11:02 AM
#5
avatar of tuvok
Benefactor 115

Posts: 786

the "Suspend" command toggles the script
28 Oct 2014, 12:59 PM
#6
avatar of Ful4n0

Posts: 345

mmmm thanks tuvok, I´ll check my script in order to see that "suspend" thing....

I got my script from internet....not made by me...

thanks!!
28 Oct 2014, 13:59 PM
#7
avatar of Mithiriath
Director of Social Media Badge

Posts: 830 | Subs: 3

Write your script here or maybe in this thread (between Code tag). ^_^
I use Relic Gridkeys and AutoHotkey and I don't have issue with Enter key.
28 Oct 2014, 14:00 PM
#8
avatar of m00nch1ld
Donator 11

Posts: 641 | Subs: 1

Grid keys are the best.
28 Oct 2014, 14:17 PM
#9
avatar of Ful4n0

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:

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


Thanks for the support anyway mithiriath, much appreciated.
28 Oct 2014, 19:32 PM
#10
avatar of Mithiriath
Director of Social Media Badge

Posts: 830 | Subs: 3

Try with :

Code

#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
}
aaa
30 Aug 2015, 11:25 AM
#11
avatar of aaa

Posts: 1487

jump backJump back to quoted post28 Oct 2014, 14:17 PMFul4n0




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
30 Aug 2015, 12:52 PM
#12
avatar of AmiPolizeiFunk
Admin Black Badge
Patrion 15

Posts: 16697 | Subs: 12

I use grid keys supplemented with AutoHotKey. What would we do w/o AHK? :O
30 Aug 2015, 13:38 PM
#13
avatar of Swift

Posts: 2723 | Subs: 1

There's a feature called gridkeys :romeoPls:

And you don't need to be super hardcore to use it.
30 Aug 2015, 17:26 PM
#14
avatar of Plaguer

Posts: 498

It seems that i'm the only one who doesn't use Grid Keys or AHK :foreveralone:
30 Aug 2015, 17:54 PM
#15
avatar of JagdOsprey

Posts: 19

I don't use a lot of hotkeys, for me is enough with X-Mouse Button Control.
31 Aug 2015, 03:38 AM
#16
avatar of Sedghammer

Posts: 179

Would be nice, grid keys with Tac Map and Reinforce tied to mouse button has me covered. Setting up an ambulance macro was a necessity for me too :p
31 Aug 2015, 07:51 AM
#17
avatar of Ful4n0

Posts: 345

jump backJump back to quoted post30 Aug 2015, 11:25 AMaaa


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???

aaa
31 Aug 2015, 10:13 AM
#18
avatar of aaa

Posts: 1487

jump backJump back to quoted post31 Aug 2015, 07:51 AMFul4n0



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
}

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

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