| View previous topic :: View next topic |
| Author |
Message |
rogal
Joined: 23 Dec 2007 Posts: 51 Location: Austin
|
Posted: Sun Apr 27, 2008 8:47 pm Post subject: use variable in #IfWinActive wintitle |
|
|
Hi there.
Is there any way to use variable as wintitle in #IfWinActive?
when I tried #IfWinActive, %variable%
ahk says
| Code: | ---------------------------
LaTeX_dock.ahk
---------------------------
Error at line 4 in #include file "Hotstrings.ahk".
Line Text: #IfWinActive, ahk_class %Host_Window_ahk%
Error: Literal commas and percent signs must be escaped (e.g. `%)
The program will exit.
|
Do I have to use literal string only? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Sun Apr 27, 2008 9:10 pm Post subject: Re: use variable in #IfWinActive wintitle |
|
|
| rogal wrote: | | Do I have to use literal string only? |
As on date: Yes! |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 453
|
Posted: Sun Apr 27, 2008 9:24 pm Post subject: |
|
|
| You can make the window criteria dynamic by using ahk_groups as explained in the documentation. |
|
| Back to top |
|
 |
|