Hey guys. I'm coding for my game, and at the suggestion of Babar I'm simplifying the control scheme

I'm trying to figure out how to set it so that holding down the left mouse click opens up a GUI verbcoin (which has the options Look and Interact)
This is what I've got, under the 'function on_mouse_click(MouseButton button) {' command (I've commented out the original eMouseLeft script)
else if (mouse.IsButtonDown(eMouseLeft)){
SetTimer(1, 40);
if (IsTimerExpired(1)) {
gVerbcoin.Visible = true;
mouse.Mode = eModeInteract;
mouse.UseModeGraphic(eModePointer);
}
else {
SetTimer(1, 0);
ProcessClick(mouse.x, mouse.y, eModeWalkto);
}
}
And I've written ' int timer=0;' at the top of the global script to set the value prior.
At the moment it just goes straight to the else command. I haven't got timer commands to work yet, so it's very likely that.