• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:06
CEST 15:06
KST 22:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple6Aligulac acquired by REPLAYMAN.com/Stego Research8Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool51Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool What mix of new & old maps do you want in the next ladder pool? (SC2) Aligulac acquired by REPLAYMAN.com/Stego Research
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
ASL21 General Discussion so ive been playing broodwar for a week straight. Pros React To: JaeDong vs Queen BSL 22 Map Contest — Submissions OPEN to March 10 Klaucher discontinued / in-game color settings
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group E [ASL21] Ro24 Group F
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game Nintendo Switch Thread General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread The Chess Thread Russo-Ukrainian War Thread NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Broowar part 2
qwaykee
China Uses Video Games to Sh…
TrAiDoS
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1492 users

Camera Hotkey Setup - Useful AHK

Forum Index > SC2 General
Post a Reply
Intricate1
Profile Joined May 2011
169 Posts
July 13 2011 09:23 GMT
#1
Thought I would share my Camera Hotkey AHK, It's for anyone using multiple Camera Recall Hotkeys at standard spots each match.

The script simplifies the process of binding the locations to a single key, In this case F8.

I Use the 3,4,5,6 and 7 keys as my Camera hotkeys,

Meaning At the start of the match,
Center the camera over the 3 location, Press F8
Center the camera over the 4 location, Press F8
Center the camera over the 5 location, Press F8
Etc,


The script adheres to one action per click and to everyone who screams "what about the off chance I play in a live tournament!" It's not like you couldn't easily go without it for a game or two.

Code -

+ Show Spoiler +




; ##### Copy/Paste Into Notepad - Save As, YourNameHere.AHK #####

n=0
return


F8::
n := n +1

if n=1
send ^3
else

if n=2
send ^4
else

if n=3
send ^5
else

if n=4
send ^6
return

if n=5
send ^7
return

; ^3 = Control+3
; ^4 = Control+4


; Get It? .....

; http://www.autohotkey.com
; http://www.autohotkey.com/docs/KeyList.htm


arbitrageur
Profile Joined December 2010
Australia1202 Posts
July 13 2011 09:40 GMT
#2
This is so helpful, but how do you use this? I'm a computer noob. As in how to install/get it to work?
djengizz
Profile Joined August 2010
Netherlands42 Posts
July 13 2011 09:52 GMT
#3
Since you're combining multiple key presses in one key press in a way that can't be done by rebinding hotkeys isn't this technically illegal?
Nexic
Profile Blog Joined May 2010
United States729 Posts
Last Edited: 2011-07-13 09:59:07
July 13 2011 09:57 GMT
#4
I just use my middle mouse button as an additional control key to reduce stretching/make it easier to bind camera locations, a script/auto-hot key or whatever this is seems unnecessary imo.

personally I use a custom "grid"-like setup except with A = attack move instead of T, and Y/H/N for main/natural/3rd camera locations.
Bojas
Profile Joined December 2010
Netherlands2397 Posts
July 13 2011 10:04 GMT
#5
This might be a very stupid question but aren't macro's like these against the rules?
Intricate1
Profile Joined May 2011
169 Posts
July 13 2011 10:04 GMT
#6
On July 13 2011 18:52 djengizz wrote:
Since you're combining multiple key presses in one key press in a way that can't be done by rebinding hotkeys isn't this technically illegal?


Combining multiple keys into a single key press Is not illegal, Left clicking on a unit, Control+Left Clicking on a unit and Control+Shift+Left Clicking on a unit are all considered 1 action.

Rebinding the "J" Key to Control+Shift+Left Click is legal for example

Phayze
Profile Blog Joined June 2009
Canada2029 Posts
Last Edited: 2011-07-13 10:12:21
July 13 2011 10:09 GMT
#7
Plus, afaik there is really no way for blizzard to detect macro's, there would be so many keypresses and delays it would have to sift through to detect patterns, i dont feel it would be logical to invest time to detecting things like that. To add, keyboards with macro functionality are ---so--- freaking common nowadays that you will probably NEVER see anyone ever punished for using it. Tournaments however are a different story. I personally rebound the camera keys to the macro keys on my blackwidow, just remapped f5 to f8. I know a friend who set control and shift to mouse4 and 5 on his Xai to lessen the use of his pinky (weaker finger, makes sense)
Proud member of the LGA-1366 Core-i7 4Ghz Club
arbitrageur
Profile Joined December 2010
Australia1202 Posts
Last Edited: 2011-07-13 10:12:58
July 13 2011 10:12 GMT
#8

Rebinding the "J" Key to Control+Shift+Left Click is legal for example


Then why was there such anger on TL over the steelseries attempt at marketing keyboard macros to sc2 players if it's legal to bind multiple keys to 1 press????

Then in homestory all commentators were saying it is illegal in sc2.
Nexic
Profile Blog Joined May 2010
United States729 Posts
Last Edited: 2011-07-13 10:20:56
July 13 2011 10:19 GMT
#9
Combining multiple key presses into a single key press is the exact definition of what blizz has said is "illegal"/against the rules.
vyyye
Profile Joined July 2010
Sweden3917 Posts
July 13 2011 10:20 GMT
#10
On July 13 2011 19:04 Intricate1 wrote:
Show nested quote +
On July 13 2011 18:52 djengizz wrote:
Since you're combining multiple key presses in one key press in a way that can't be done by rebinding hotkeys isn't this technically illegal?


Combining multiple keys into a single key press Is not illegal, Left clicking on a unit, Control+Left Clicking on a unit and Control+Shift+Left Clicking on a unit are all considered 1 action.

Rebinding the "J" Key to Control+Shift+Left Click is legal for example


Anything that would require you to press more than one button made to only require one button is illegal in SC2.
djengizz
Profile Joined August 2010
Netherlands42 Posts
July 13 2011 10:24 GMT
#11
On July 13 2011 19:04 Intricate1 wrote:
Combining multiple keys into a single key press Is not illegal, Left clicking on a unit, Control+Left Clicking on a unit and Control+Shift+Left Clicking on a unit are all considered 1 action.

Rebinding the "J" Key to Control+Shift+Left Click is legal for example


Do you have a source for that?

From what i gather from the end user license agreement you're not allowed to use third party tools to alter the game experience in any way.

There are also reports of people getting banned using keyboard macros and Blizzard reps stating macros are not allowed.

Combining multiple key presses into one is the definition of a macro and is not allowed using third party tools (it's only allowed if you can do it by rebinding the hotkeys within the game client and there the options are very limited).
Intricate1
Profile Joined May 2011
169 Posts
July 13 2011 10:27 GMT
#12
On July 13 2011 19:19 Nexic wrote:
Combining multiple key presses into a single key press is the exact definition of 'macros' blizz calls against the rules, just for reference.



This is 100% wrong,

Lets put this to bed right now - The rule is 1 Action Per Click

Go Into The Starcraft Hotkey Editor, Boot It up and go to Idle Worker, Click Set Alternative Hotkey and


Press Control+Shift+Alt+K

This is an example of multiple keys being pressed to create 1 action, that is the rule and as long as only 1 action is performed the hotkey is legal.
djengizz
Profile Joined August 2010
Netherlands42 Posts
July 13 2011 10:52 GMT
#13
On July 13 2011 19:27 Intricate1 wrote:
This is 100% wrong,

Lets put this to bed right now - The rule is 1 Action Per Click

Go Into The Starcraft Hotkey Editor, Boot It up and go to Idle Worker, Click Set Alternative Hotkey and


Press Control+Shift+Alt+K

This is an example of multiple keys being pressed to create 1 action, that is the rule and as long as only 1 action is performed the hotkey is legal.

The difference is that you are using third party software to do this remapping and as stated using third party software to change the game experience in any way is illegal.

Also if i understand your script right you're using one keypress (F8) to assign multiple control groups / camera hotkeys based on how often it's pressed. This is functionality that doesn't even exist in the game client and therefore changes the game experience.
Intricate1
Profile Joined May 2011
169 Posts
July 13 2011 11:24 GMT
#14
On July 13 2011 19:52 djengizz wrote:
Show nested quote +
On July 13 2011 19:27 Intricate1 wrote:
This is 100% wrong,

Lets put this to bed right now - The rule is 1 Action Per Click

Go Into The Starcraft Hotkey Editor, Boot It up and go to Idle Worker, Click Set Alternative Hotkey and


Press Control+Shift+Alt+K

This is an example of multiple keys being pressed to create 1 action, that is the rule and as long as only 1 action is performed the hotkey is legal.

The difference is that you are using third party software to do this remapping and as stated using third party software to change the game experience in any way is illegal.

Also if i understand your script right you're using one keypress (F8) to assign multiple control groups / camera hotkeys based on how often it's pressed. This is functionality that doesn't even exist in the game client and therefore changes the game experience.



http://store.razerzone.com/store/razerusa/en_US/pd/productID.199817100/parentCategoryID.43736600/categoryId.43736700

This is the Razer Marauder StarCraft II, officially licensed gaming keyboard. It Offers On-The-Fly Macro recording, Ill admit Im playing it pretty close to the vest here but I dont think you could argue there is any difference, between the two.

And Finnally and way more importantly

You are Wrong, Each time F8 is pressed the result is ALWAYS a single key on the NumPad.

1st Time - Numpad1
2nd Time - Numpad2
3rd Time - Numpad3

But how is this any different then any Keyboard/Mouse with drivers allowing for remapped keys?
djengizz
Profile Joined August 2010
Netherlands42 Posts
Last Edited: 2011-07-13 11:49:04
July 13 2011 11:43 GMT
#15
On July 13 2011 20:24 Intricate1 wrote:
This is the Razer Marauder StarCraft II, officially licensed gaming keyboard. It Offers On-The-Fly Macro recording, Ill admit Im playing it pretty close to the vest here but I dont think you could argue there is any difference, between the two.

The keyboard is licensed by Blizzard which basically means they are allowed to put some Starcraft stickers on it.
Also a keyboard with macro capabilities is not illegal, just using that functionality within a game of Starcraft is. So using the "officially licensed Razer Marauder StarCraft II" to fire macros when playing Starcraft is also illegal.

You are Wrong, Each time F8 is pressed the result is ALWAYS a single key on the NumPad.

Yes, but you just introduced hotkeys that react differently based on the number of times they are pressed. Again this is functionality that doesn't exists in the game client and you use a third party program to achieve this.
Quadans
Profile Joined June 2011
Germany24 Posts
July 13 2011 11:55 GMT
#16
ehm, im the only know who knows that u can do that same thing in the hotkeys menu?
He Kickd ma brotha in da ass
arbitrageur
Profile Joined December 2010
Australia1202 Posts
July 13 2011 11:57 GMT
#17
No1 has answered how to get this guys config to work. Where do i cut & paste it?
Mordoc
Profile Joined April 2011
United States162 Posts
July 13 2011 12:06 GMT
#18
This is so helpful, but how do you use this? I'm a computer noob. As in how to install/get it to work?


http://www.autohotkey.com/

Download this.

Paste the OPs code into a normal .txt file.

Save it, then run the .txt file as a .ahk file.

A green H should show up in your taskbar (indicates its working).
arbitrageur
Profile Joined December 2010
Australia1202 Posts
July 13 2011 12:21 GMT
#19
Thanks! Is there risk of ban? If not I'll def use it@!
Please log in or register to reply.
Live Events Refresh
Wardi Open
11:00
#81
WardiTV1002
IndyStarCraft 363
Rex142
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko439
IndyStarCraft 363
Rex 142
ProTech123
Railgan 10
StarCraft: Brood War
Calm 7958
Horang2 1851
actioN 436
Hyuk 330
ggaemo 330
Zeus 239
Mind 109
Pusan 99
Sea.KH 92
JYJ 78
[ Show more ]
ToSsGirL 77
PianO 62
Movie 42
Aegong 37
Shinee 32
[sc1f]eonzerg 30
Hm[arnc] 23
Free 19
GoRush 18
Bale 17
soO 17
Rock 17
JulyZerg 16
IntoTheRainbow 14
Sacsri 12
yabsab 12
ajuk12(nOOB) 8
Icarus 5
Terrorterran 4
Dota 2
Gorgc2784
qojqva1470
XcaliburYe389
Counter-Strike
olofmeister5878
fl0m2956
markeloff74
edward65
Heroes of the Storm
Khaldor218
Other Games
singsing1932
B2W.Neo764
hiko316
crisheroes308
Happy241
ArmadaUGS83
Sick66
Organizations
Counter-Strike
PGL11176
Other Games
BasetradeTV1840
StarCraft: Brood War
lovetv 18
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis613
• Stunt612
Other Games
• WagamamaTV408
• tFFMrPink 9
Upcoming Events
Replay Cast
10h 54m
Sparkling Tuna Cup
20h 54m
PiGosaur Cup
1d 10h
Kung Fu Cup
1d 22h
The PondCast
2 days
Replay Cast
3 days
Replay Cast
4 days
CranKy Ducklings
4 days
BSL
5 days
Replay Cast
5 days
[ Show More ]
Sparkling Tuna Cup
5 days
BSL
6 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.