add Mouse Mover, available under right click menu

This commit is contained in:
David Daily 2020-05-18 16:32:10 -05:00
parent 65b040054a
commit 9b7d00648e
2 changed files with 37 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#Include, func.ahk #Include, func.ahk
Menu, Tray, Icon, shell32.dll, 283 ; Set the tray icon to a keyboard Menu, Tray, Icon, shell32.dll, 283 ; Set the tray icon to a keyboard
Menu, Tray, Add, MouseMover ; Add item to the tray to move the mouse
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; Make sure the settings file exists, if not, create it ; Make sure the settings file exists, if not, create it
@ -62,7 +63,7 @@ If (glovar = 1)
{ {
glovarini := A_MyDocuments "\GloVar.ini" ; Location of the ini that the user modifies glovarini := A_MyDocuments "\GloVar.ini" ; Location of the ini that the user modifies
glovarstart := "#SingleInstance force`n`n:*:$dorg::`n:*:$dus::`n:*:$dnm::`n:*:$dem::`n:*:$xid::`n" glovarstart := "#SingleInstance force`n`n"
SetTimer, GloVar, 2000 ; Check every 2 seconds SetTimer, GloVar, 2000 ; Check every 2 seconds
@ -182,6 +183,9 @@ If (glovar = 1)
!+\::Run Settings.ahk ; Alt+Shift+\ !+\::Run Settings.ahk ; Alt+Shift+\
MouseMover:
Run, msmv.ahk
Return
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; DTAC Solution Opener ; DTAC Solution Opener
@ -282,7 +286,7 @@ If (glovar = 1)
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
;STWA Applied ;STWA Applied
:*:]cms:: :*:]cms::
Send Notes:{Space}{Enter}Explanation:{Space}{Enter}Flowdock:{Space}{Enter 2}Thank you,{Enter}%name%{Enter 2}Tier 2 internal steps:{Space}{CtrlDown}{Home}{CtrlUp}{End} Send STWA applied{Enter 2}Status: Providing information{Enter 2}Comments:{Space}{Enter 2}Thank you,{Enter}%name%{Enter 2}Tier 2 internal steps:{Space}{Up 5}{End}
Return Return
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------

31
msmv.ahk Normal file
View File

@ -0,0 +1,31 @@
#SingleInstance, force
Gui, +AlwaysOnTop +ToolWindow
Gui, Add, Button, x3 y3 w55 h20 gStart vStart +Center, Start
Gui, Add, Button, x3 y3 w55 h20 gStop vStop +Center, Stop
Gui, Show, h28 w60, msmv
GuiControl, Hide, Stop
Return
Start:
GuiControl, Hide, Start
SetTimer, Msmv, 480000
GuiControl, Show, Stop
Return
Stop:
GuiControl, Hide, Stop
SetTimer, Msmv, off
GuiControl, Show, Start
Return
Msmv:
MouseMove, 100, 0
Sleep, 240000
MouseMove, 0, 0
Return
GuiClose:
GuiEscape:
ExitApp ; Closes the app when escape or the exit button is pressed