1. Daniel Felzke
  2. RMS Auto Settle EDC Batches

Commits

Daniel Felzke  committed 5f5915a

Initial Release

  • Participants
  • Branches default

Comments (0)

Files changed (1)

File AutoSettleEDCBatch.ahk

View file
+#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
+SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
+SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
+
+; Variables
+CashierNumber = Number
+CashierPassword = Password
+
+; Run Store Operations Manager
+Run "C:\Program Files\Microsoft Retail Management System\Store Operations\SOMANAGER.exe"
+
+; Login
+WinWaitActive,Login,,20
+if ErrorLevel
+{
+    Exit
+}
+
+Send %CashierNumber%
+Send {tab}
+Sleep 1000
+Send %CashierPassword%
+Send {Enter}
+
+; Open the EDC Batch Screen
+WinWaitActive,Store Operations Manager,,20
+if ErrorLevel
+{
+    Exit
+}
+Send !ue
+
+; Settle EDC Batch
+WinWaitActive,Settle EDC Batch,,20
+if ErrorLevel
+{
+    Exit
+}
+Send !s
+
+WinWaitActive,Settle Transactions,,20
+Send {Enter}
+
+WinWaitActive,Success,,120
+Send {Enter}
+
+; Exit Application
+Sleep 3000
+Send !{F4}
+
+Exit