[oldgaming] Ctrl+f send problem Topic is solved

Ask gaming related questions
Despot Aspid
Posts: 7
Joined: 05 Jan 2024, 23:41

[oldgaming] Ctrl+f send problem

06 Jan 2024, 06:59

Hello! I'm new noob.

In C&C Generals Ctrl+f = Set formation for selected units.
I try [Ctrl+f] bind on [f]
like this

Code: Select all

f::Send("^f")                               ;do not work
f:: Send("{Ctrl down}f{Ctrl up}")   ; not work either
Where is my mistake?

(Sorry for my Enlish)

[Mod edit: Added [code][/code] tags.]
User avatar
mikeyww
Posts: 27335
Joined: 09 Sep 2014, 18:38

Re: [oldgaming] Ctrl+f send problem

06 Jan 2024, 07:33

Test in Notepad first. See if it works there.
Despot Aspid
Posts: 7
Joined: 05 Jan 2024, 23:41

Re: [oldgaming] Ctrl+f send problem

06 Jan 2024, 07:36

I found an solution, its work, but lokking ugly.

Code: Select all

f:: {
	Send ("{Blind}{Ctrl down}")	; Set formation for selected units (speed as slowest unit in group)
	Send "f"
	Sleep(100)
	Send ("{Blind}{Ctrl up}")	
}
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
User avatar
mikeyww
Posts: 27335
Joined: 09 Sep 2014, 18:38

Re: [oldgaming] Ctrl+f send problem  Topic is solved

06 Jan 2024, 08:00

Perhaps:

Code: Select all

#Requires AutoHotkey v2.0

f:: {
 SetKeyDelay , 100
 SendEvent '^f'
}
Despot Aspid
Posts: 7
Joined: 05 Jan 2024, 23:41

Re: [oldgaming] Ctrl+f send problem

06 Jan 2024, 08:26

Thanks! Now its work and looki much better!

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 6 guests