var screen;
Function Screen_shot()
{
screen+=1;
screenshot("Scrsh",screen);
}
.
.
on_h=screen_shot;
.
Function main
{
...

...
}