I'm using Java apps which have in class and exe the same parameters.
When I used window spy, I found also wintitle - but this is not stable 'cause monitors process, so found data:
Code: Select all
ahk_class SunAwtFrame
ahk_exe javaw.exe
Code: Select all
VIC20 PAL: 1 108 405 / 1 000 000 RPM:0.0 50.36Hz (19ms)
C64 PAL: 985 248 / 1 000 000 RPM:0.0 50.124Hz (5ms)
C128 PAL: 985 248 / 1 000 000 RPM:0.0 50.124Hz (19ms)
Code: Select all
Relaunch64
Code: Select all
#If !WinActive
I need to let Relaunch64 work with functions which are in condition disabled - I was using condition:
Code: Select all
!WinActive("ahk_exe javaw.exe")
So, I tried to search in help.
I found SetTitleMatchMode and multiple parameters:
SetTitleMatchMode I selected mode 1 - title must begin with %string%
Ok, then I created condition for C128 only to test it and used:
Code: Select all
#If WinExist(C128* ahk_exe javaw.exe)
#If WinExist(C128* "ahk_exe javaw.exe")
#If WinExist(C128 ahk_exe javaw.exe)
#If WinExist(C128 "ahk_exe javaw.exe")
#If WinExist(C128* ahk_class SunAwtFrame)
#If WinExist(C128 ahk_class SunAwtFrame)
#If WinExist(C128 "ahk_class SunAwtFrame")
#If WinExist(C128* "ahk_class SunAwtFrame")
Really don't undestand if has to be used
C128 with asterisk like in DIR command or if has to be class or exe in quotes...
Can anybody explain me where I do mistake?
Thank you for each help.
Miro