I had made a thread: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=73262
The suggestions helped me make my script more reliable...for a while.
Then one day I noticed the issue re-occuring. I decided to manually trigger SaveAs and to my surprise the script carried on working from there.
Problem: it seems therefore using send ^+{s} to trigger SaveAs is unreliable. Sometimes the SaveAs menu pops up and other times I will have to manually click it to make it work.
I wanted to use ComObject but I am afraid ComObject will trigger the whole process of saving the file in a folder. Which I don't want.
Code: Select all
^#y::
setkeydelay , -1
WinGet,ID,ID,A
InputBox, complaint, Enter complaint
WinActivate,ahk_id %ID%
send ^+{s} ;shortcut for file-> save as
WinWaitActive, Save As ;
sleep, 1000
ControlSetText,Edit1, %complaint% initial assessment,A
your help is always appreciated
J