Code: Select all
; Cash Key 2.0
+F11::
SetTitleMatchMode, 2
IfWinExist, Cash Register Express -- Station
{
Clipboard=
Send, +{Left 6}
Send, ^{Ins}
cl1=
clipwait,1
cl1 := clipboard ; Cash amount entering
Send, {Backspace}
if Cl1=
{
Send, !p
Send, !c
Clipboard = 1111
return
}
else
; Customer presses Credit Debit button
Clipboard=
send,!p
send, {left 8}
sleep 1000
send, {DEL}
sleep 1000
send, +{right 8}
sleep 1000
Send, ^{Ins}
cl2=
clipwait,1
cl2 := clipboard ; Total Invoice
; Send, {Backspace}
clipboard=
; Cancel back to Invoice Screen
if (cl1 >= cl2)
{
sleep 2000
; send, parta
send, %cl1%
sleep 2000
Send, !c
cl1=
cl2=
return
}
else
{
; send, partb
send, %cl1%
send, !c
sleep 500
Send, ^{Ins}
Am i not writing them correctly via my cl1:=clipboard code?
Thank you in advance for any direction