• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:36
CEST 21:36
KST 04:36
  • 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
Serral wins EWC 202542Tournament Spotlight: FEL Cracow 202510Power Rank - Esports World Cup 202580RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15
Community News
Weekly Cups (Jul 28-Aug 3): herO doubles up5LiuLi Cup - August 2025 Tournaments3[BSL 2025] H2 - Team Wars, Weeklies & SB Ladder10EWC 2025 - Replay Pack4Google Play ASL (Season 20) Announced58
StarCraft 2
General
Clem Interview: "PvT is a bit insane right now" Serral wins EWC 2025 TL Team Map Contest #5: Presented by Monster Energy Would you prefer the game to be balanced around top-tier pro level or average pro level? Weekly Cups (Jul 28-Aug 3): herO doubles up
Tourneys
WardiTV Mondays $5,000 WardiTV Summer Championship 2025 Sparkling Tuna Cup - Weekly Open Tournament LiuLi Cup - August 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
External Content
Mutation # 485 Death from Below Mutation # 484 Magnetic Pull Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars
Brood War
General
BW General Discussion How do the new Battle.net ranks translate? Which top zerg/toss will fail in qualifiers? Google Play ASL (Season 20) Announced Nobody gona talk about this year crazy qualifiers?
Tourneys
[ASL20] Online Qualifiers Day 2 [Megathread] Daily Proleagues Cosmonarchy Pro Showmatches [ASL20] Online Qualifiers Day 1
Strategy
Simple Questions, Simple Answers [G] Mineral Boosting Muta micro map competition Does 1 second matter in StarCraft?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Total Annihilation Server - TAForever Beyond All Reason [MMORPG] Tree of Savior (Successor of Ragnarok)
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Bitcoin discussion thread 9/11 Anniversary
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
The Link Between Fitness and…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
Customize Sidebar...

Website Feedback

Closed Threads



Active: 758 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
Next event in 4h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
UpATreeSC 289
IndyStarCraft 248
BRAT_OK 148
Hui .93
StarCraft: Brood War
Sea 6836
Mini 897
EffOrt 619
Shuttle 599
firebathero 316
Soulkey 252
ggaemo 114
TY 73
Yoon 14
Stormgate
B2W.Neo819
TKL 195
JuggernautJason27
DivinesiaTV 21
Dota 2
syndereN265
capcasts10
League of Legends
Dendi1737
Reynor96
Counter-Strike
fl0m3505
pashabiceps1105
flusha232
kRYSTAL_58
Super Smash Bros
hungrybox532
Heroes of the Storm
Liquid`Hasu457
Other Games
Grubby3030
KnowMe302
Fuzer 118
Trikslyr52
QueenE46
Sick25
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 24 non-featured ]
StarCraft 2
• davetesta45
• Hinosc 26
• Reevou 5
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
• intothetv
StarCraft: Brood War
• HerbMon 25
• Azhi_Dahaki23
• blackmanpl 14
• FirePhoenix6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3373
• masondota21778
• WagamamaTV410
League of Legends
• Nemesis4676
• TFBlade1324
Other Games
• imaqtpie1667
• Shiphtur310
Upcoming Events
PiGosaur Monday
4h 24m
WardiTV Summer Champion…
15h 24m
Stormgate Nexus
18h 24m
uThermal 2v2 Circuit
20h 24m
The PondCast
1d 14h
WardiTV Summer Champion…
1d 15h
Replay Cast
2 days
LiuLi Cup
2 days
uThermal 2v2 Circuit
2 days
RSL Revival
3 days
[ Show More ]
RSL Revival
3 days
uThermal 2v2 Circuit
3 days
CSO Cup
3 days
Sparkling Tuna Cup
4 days
uThermal 2v2 Circuit
4 days
Wardi Open
5 days
RotterdaM Event
5 days
RSL Revival
6 days
Liquipedia Results

Completed

ASL Season 20: Qualifier #2
FEL Cracow 2025
CC Div. A S7

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
HCC Europe
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025

Upcoming

ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
BSL 21 Team A
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
WardiTV Summer 2025
uThermal 2v2 Main Event
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
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 © 2025 TLnet. All Rights Reserved.