Sure. You could either have it always happen when next/prev page is pushed, or have it just happen when one or the other next page is pushed, or have a key combo like alt+next/prev page. You just need to send the alt-g keystroke in the script. For example, put this line in a script called \hotkeys\NEXTR.sh (to enable this when using the right next page key only):
Code:
send_keys WAIT ALT G
You could make more files if you want to map the same action to more keys, i.e. put the same code into \hotkeys\NEXTL.sh etc.