Need to help to debug scripts -- Assign shortcuts to Trend Lines, Hrizontal Lines,etc

I’ve found this Japanese blog that mentions scripts which allows users to assign keyboard shortcuts for trend lines, horizontal lines, Fibo, etc, however, there seems to be a bug in the code; it won’t compile.

can someone help me with this ?

fxwinner.blog76.fc2.com/blog-entry-132.html

FOR Trend Lines.

#import "user32.dll"
int GetParent(int);
#import
#include
void start()
{
int hwnd = GetParent(GetParent(GetParent(WindowHandle(Symbol(),Period()))));
PostMessageA(hwnd, WM_COMMAND,33257,0);
}

Horizontal – change the last numbers to 33244,0
CrossHair – change the last numbers to 33233,0
Fibo. Ret. – change the last numbers to33237,0

Thanks!