I've been succesfully scripting using AHK in SAP for a while now with fairly good success. The biggest down side is I have to introduce an enormous amount of sleeps or the script gets ahead of SAPs inputs and SAP won't cache input commands. I have had good success with SetTitleMatchMode, 1 so that it only matches the beginning of windows titles.
Currently though I am trying to script a very basic input using shift+tab and no matter what I do the window won't accept any hotkey combinations that include tab. if I introduce a long pause I can even manual conduct the input during the sleep successfully. I can use other shift commands fine and other tab commands fine in the same window. I have other scripts that use shift-tab without trouble in the system as well. Why won't this window recognize shift+tab from a script?
Here's a portion of my code
Code:
WinWait, Change ,
IfWinNotActive, Change , , WinActivate, Change ,
WinWaitActive, Change ,
Send, {TAB 5}
Sleep, 200
Send, {DOWN 8}
Sleep, 200
Send, {F2}
Sleep, 200
Send, +{TAB}
Sleep, 5000
Send, {Space}
Send, repair_text.txt
Sleep, 500