literal Window Title?
Posted: 08 Mar 2018, 14:13
Window Title, Class and Process
#1
Cash Register Express
ahk_class WindowsForms10.Window.8.app.0.30495d1_r14_ad1
ahk_exe CRE2004.exe
VS
#2
Window Title, Class and Process
Cash Register Express -- Station: 01 -- Cashier: 100199 -- 3/8/2018 11:10 AM
ahk_class WindowsForms10.Window.8.app.0.30495d1_r14_ad1
ahk_exe CRE2004.exe
My code:
BUT, this +F12 key is still working on the Cash Register Express -- Station: 01 -- Cashier: 100199 -- 3/8/2018 11:10 AM, window
How can I only make this code execute with #1, not #2 (or any other window)
#1
Cash Register Express
ahk_class WindowsForms10.Window.8.app.0.30495d1_r14_ad1
ahk_exe CRE2004.exe
VS
#2
Window Title, Class and Process
Cash Register Express -- Station: 01 -- Cashier: 100199 -- 3/8/2018 11:10 AM
ahk_class WindowsForms10.Window.8.app.0.30495d1_r14_ad1
ahk_exe CRE2004.exe
My code:
Code: Select all
; Login Button
+F12::
IfWinExist, Cash Register Express
{
WinActivate, Cash Register Expres
Send, 77{Enter}
Send, 77{ENTER}
}
Else
{
; do nothing
}
Return
How can I only make this code execute with #1, not #2 (or any other window)