Autohotkey Send method not working
So I made a git repository were I versionned all my mods installation,
what I want to do is make a script which loads every revision one by one
then for each revision loads every save one by one and take a screenshot.
However I'm having problem communicating with the git bash. this code :
#SingleInstance Force
#Persistent
#UseHook
Home::
revision := "a65d52958af020caa42e2243ec466d14b6cf2689"
loadRevision(revision)
Return
loadRevision(revision) {
Run, "C:\Program Files (x86)\Git\bin\sh.exe" "--login" "-i"
Sleep 1000
Send
cd{Space}C:`\Program{Space}Files{Space}(x86)`\The{Space}Elder{Space}Scrolls{Space}V{Space}Skyrim
sleep 200
Send {Enter}
Sleep 200
Send git{Space}checkout{Space}%revision%
Sleep 200
Send {Enter}
Sleep 120000
IfWinExist, "Git Bash"
WinClose
}
is producing this result :
https://dl.dropboxusercontent.com/u/91396766/ahk.PNG
Any idea why? I'm using a French windows 7 X64 and I have an AZERTY
keyboard. Thanks.
No comments:
Post a Comment