Although I do not use DOS GUI-style programs such as WordPerfect for DOS, I guess this is progress if your script does not even work in Notepad on Windows. I would close all scripts and simply run the following one by itself. Activate the Notepad window. See whether both hotkeys work.
Code: Select all
#Requires AutoHotkey v1.1.33
F3::MsgBox 123
F4::Send 123
MsgBox is a simple way to determine whether the script is running and you are triggering a hotkey. If nothing happens with your Send command when Notepad is the active window, then it suggests that one of the issues from the cited page (Send failures) is present.
What is your AHK version?
What is your Windows version?
Are you running Notepad as administrator or as an elevated window?
Have you disabled antivirus to test?
Are other programs using the same (global) hotkey?