so i am a beginner and i tried to make a auto save script for word because it wasn't working for some reason here is the source code if you could give me any help or feedback to get this script working.
Code: Select all
;for word
IfWinActive, ("ahk_exe WINWORD.EXE")
{
CoordMode, Pixel, Relative
Loop {
restart1: ;used incase the colour doesn't match
Sleep, 5000
PixelGetColor, colour, 1600, 100
IfEqual, colour, 0x9A572B
{ ;has colour
MsgBox,0,AutoSave,Time to save your work..., 3
Sleep, 3000
Send ^s
} MsgBox,,autosave, Might be a good idea to save your work.
goto restart1
} Until, WinWaitClose, ("ahk_exe WINWORD.EXE")
}
return