Looks like we came up with the same basic idea for this.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
Global $sendkeysCBVar, $JiggleMouseCBVar
$Form1 = GUICreate("Form1", 143, 178, 192, 124)
$JiggleMouseCB = GUICtrlCreateCheckbox("Jiggle Mouse", 24, 48, 97, 17)
$SendKeysCB = GUICtrlCreateCheckbox("SendKeys", 24, 72, 97, 17)
$RunBT = GUICtrlCreateButton("RunBT", 32, 112, 75, 25)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $RunBT
If GUICtrlRead($JiggleMouseCB) = $GUI_CHECKED Then
Adlibregister("mouseJigllo", 10000) ; move the mouse every 10 seconds
Else
AdlibUnRegister("mouseJigllo") ; stop moving the mouse
EndIf
If GUICtrlRead($SendKeysCB) = $GUI_CHECKED Then
SendKeys()
EndIf
EndSwitch
WEnd
Func mouseJigllo()
MouseMove(50, 50, 100)
MouseMove(80, 60, 100)
EndFunc ;==>mouseJigllo
Func SendKeys()
WinActivate("LDEP")
WinWait("", "", 10)
Send("!f")
WinWait("", "", 10)
Send("p")
WinWait("", "", 10)
EndFunc ;==>SendKeys