Help with a script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
stanthekfcman
Posts: 4
Joined: 13 Jun 2019, 05:54

Help with a script?

20 Jun 2019, 04:44

ok,
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
Moderator Note: Added code tags. ~ sinkfaze

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: niCode, Xtra and 109 guests