Post
by gregster » 25 May 2021, 09:47
Your line Send {Right %RGT%}} is currently unreachable, doesn't get executed. Also, it has one } too much in it (other than your line presented in your original post).
You could remove the return after Gui, Submit, assuming that after closing the GUI, the correct control element or GUI gets active...
Also, especially (but not only) if you want to use the hotkey repeatedly and not only once, you should create the GUI at the top of the script, and reduce the hotkey subroutine code to just Gui, Show....
Otherwise, you'll get an error from second hotkey usage onwards.