you leave the character in the game, turn on the macro and go about your business, you are not kicked off the server. Tested in pet sim 99
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program