Scroll Wheel Zoom

Post new mods and scenarios here.
Post Reply
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

Scroll Wheel Zoom

Post by junk2drive »

Markshot wrote this a while back at the wargamer. I was searching for autohotkey posts and realised that this should work for CCME. Zoom is controlled by + and - on the keyboard in CCME.

http://www.wargamer.com/forums/tm.aspx? ... autohotkey
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Scroll Wheel Zoom

Post by junk2drive »

Here is the script, enjoy!
#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.

WheelDown::-


WheelUp::=

Escape::
ExitApp


There should be a way to have it active only when the game is active in a window but I haven't figured that out yet.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
Magpius
Posts: 1723
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: Scroll Wheel Zoom

Post by Magpius »

(oops)re-read your posts; old message redundant. I'm working through autohotkey now to see how I go.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
Budas
Posts: 9
Joined: Thu Apr 28, 2011 11:57 am

RE: Scroll Wheel Zoom

Post by Budas »

I've used this utility and it works well.  I think you'll find that the copy script should be edited.  Wheel up is entered as '=' when it should be '+'.
 
The thing that didn't work for me was that the option to write a new script did not appear when pressing the right key at the desktop.  I got round this by simply editing the script which comes with the utility.
 
Bud
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Scroll Wheel Zoom

Post by junk2drive »

The manual may say + and - but you don't have to press shift + = to get + to zoom. I tried that :)

Anyway I tested it before posting and it works.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Scroll Wheel Zoom

Post by junk2drive »

Right click and empty spot like you do for setting your monitor and from the New popout select Autohotkey
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
Budas
Posts: 9
Joined: Thu Apr 28, 2011 11:57 am

RE: Scroll Wheel Zoom

Post by Budas »

This is odd. I've been using this for some while now - it's been v.v. useful. However I don't get Autohotkey in the menu after right clicking - no idea why. Also '=' does not work for me either. 
 
It's also maybe worth saying that whilst the script is running, the scroll up and down function doesn't work - sounds obvious but it took me ages to realise that if you aren't using it for zoom purposes, there is a menu item to suspend the script. 
 
I suppose most folks would realise that, but then I'm old.  I'm also very nervous today - in the UK this is 'Survival Sunday'.  Five teams, including mine, face relegation from the Premier League.  For the majority of people this is only football; for me it is life itself. Bet you're glad to know all that [:D]
 
Bud
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Scroll Wheel Zoom

Post by junk2drive »

In My Documents I have AutoHotkey.ahk and on my desktop I have AutoHotkey.exe and the script I made ccmescroll.ahk

I right click my ccmescroll.ahk and select Run Script. That puts a tray icon for the script. Start the game and it works.

Could be USA keyboard vs UK? My + is on the = key that is on the upper right next to backspace.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
Budas
Posts: 9
Joined: Thu Apr 28, 2011 11:57 am

RE: Scroll Wheel Zoom

Post by Budas »

Really strange.  Like you I have the .ahk in My Docs and the exe on desktop but not the script.  I got this about a year ago - could be longer - maybe I have a different version.  I remember when I first got it being a bit frustrated with it for a while.
 
As I said I got around it by simply customising the script which came with the utility and bunged in hot keys to suit my needs.
 
It is a nifty little program which comes in very handy - certainly works well with CC.
 
Bud
tinajane
Posts: 3
Joined: Tue Jun 07, 2011 1:58 am

RE: Scroll Wheel Zoom

Post by tinajane »

I got around it by simply customising the script which came with the utility and bunged in hot keys to suit my needs. [:@][;)]Cartier Love BraceletCartier Ringsartier wedding rings
User avatar
Wolfe1759
Posts: 798
Joined: Sun Jan 20, 2008 6:34 pm
Location: Shropshire, UK

RE: Scroll Wheel Zoom

Post by Wolfe1759 »

We've got our first spambot, we're not forgotten.

Or could he be the developer - only joking [:'(]
"In War: Resolution. In Defeat: Defiance. In Victory: Magnanimity. In Peace: Goodwill." - Winston Churchill
User avatar
Fred98
Posts: 4019
Joined: Fri Jan 05, 2001 10:00 am
Location: Wollondilly, Sydney

RE: Scroll Wheel Zoom

Post by Fred98 »

As soon as Erik posted we got a spambot.
 
Hmmm.
 
-
 
 
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Scroll Wheel Zoom

Post by junk2drive »

I made a similar script for another game and found this trick

Escape::
ExitApp

Add the above to your script and you can press Esc when you are done with the game to close the script.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
Post Reply

Return to “Mods and Scenarios”