Skip to main content

How I geeked my Metastock with AutoHotKey

One thing about Metastock that drives me crazy is lack of keyboard shortcuts. And if there are any; I am not aware of any of them. So, finally, I decided to geek myself out of this headache.

1. Downloaded and installed a software called AutoHotKey (http://www.autohotkey.com/download/)
2. Noted down the screen co-ordinates of the "clicks" I wanted to convert into keyboard shortcuts
3. Updated the default script file with a very simple one line commands for executing the clicks
4. Now, the keyboard shortcuts work well, I dont have to click

The syntax of the script:

#IfWinActive ahk_class MetaStockMainWnd
#z::Click 892,651
#IfWinActive

Where MetaStockMainWnd defines the active window where the 'clicks' should be made. If this window is not active, these keyboard commands will not work. so, these commands will work only if the Metastock window is active. "#z" stands for Windows + Z. The coordinates are for the zoom-reset button.

My starting script is as follows:

#IfWinActive ahk_class MetaStockMainWnd
#z::Click 892,651
#x::Click 910,651
#C::Click 927,651
#V::Click 950,651
#N::Click 966,651
#P::Click 15,99
#L::Click 15,150
#k::Click 14,121
#o::Click 14,171
#d::Click 264,61
#IfWinActive

Keyboard shortcuts and mnemonics:

[In Metastock buttons in order from left to right]

Zoom reset - Windows + Z (for Undo Zoom)
Zoom Out - Windows + X
Zoom In - Windows + C (for Closer look)
Previous - Windows + V (for pre_V_ious)
Next - Windows + N (for Next)
Scrip selector - Windows + S (for Scrips)

Other clicks:

Pointer - Windows + P (for Pointer)
Line - Windows + L (Line!)
Crosshair - Windows + K (for Krosshairs)
Horizontal - Windows + O (for O_rizontal line)
Data window - Windows + D (for Data)

Limitations of this script:

AutoHotKey's Click function works based on screen cooridinates. I have configured it to my screen resolution (1024x768). If your co-ordinates are different the results will be different.
The keys can be configured using the script file. It's a 1-second job.

A serious limitation:

One serious limitation of this is, which I have not tested though, if another window pops up while the computer executing the order, the 'click' will be made in that window. To me it simply means, this should not be used simlutaneously with the live trading/banking screen.

Comments

Popular posts from this blog

Cognitive rules of business presentations

In his recent book, Clear and to the Point, Kosslyn explained that the four rules of PowerPoint are: The Goldilocks Rule, The Rudolph Rule, The Rule of Four, and the Birds of a Feather Rule. Here's how they work. The Goldilocks Rule refers to presenting the "just right" amount of data. Never include more information than your audience needs in a visual image. As an example, Kosslyn showed two graphs of real estate prices over time. One included ten different numbers, one for each year. The other included two numbers: a peak price, and the current price. For the purposes of a presentation about today's prices relative to peak price, those numbers were the only ones necessary. The Rudolph Rule refers to simple ways you can make information stand out and guide your audience to important details -- the way Rudolph the reindeer's red nose stood out from the other reindeers' and led them. If you're presenting a piece of relevant data in a list, why not mak...

Value of dollar - Part 1

A Simple Perspective Will Do The date is 2000-05-28. Don't you get tired of all the bad news bears reminding you of all these instabilities, excesses, and 'potential' tensions in the global economy? After all, hasn't it always been like that? Yes it has, but not in money it hasn't. Increasingly, investors find it harder to know where to put their savings. What about Government Bonds? Wrong. Their recent record of capital losses have wiped out your guaranteed yields, probably because the stock market keeps crowding them out, and this even in a strong dollar and low inflation environment. Furthermore, there is no reliable liquidity and potentially poor quality debt in the corporate sector. Foreign assets? Wrong. Most of the world's economies are riskier, have been under performing, and also, there is this thing called currency risk. Like how is the average person gonna cope with currency...

Depreciation of British Pound 1900-2000

When the Bank of England was formed the powers to create money was finally transferred to private hands. The creation of Fed in US, was just a part of this cycle. Though it is a common knowledge US Dollar has depreciated nearly 100% since the creation of Federal Reserve, the same is the case of all the currencies across the globe. For example, below is the UK Parliament data that highlights the depreciating value of Pound.