Bert L
7 discussion posts
Beginner / trial user here. The ability of Window Location items to be customized base on command line arguments is really neat, but I have a small question:
Can Window Location detect comments at the end of a command line? I have experimented a bit without success.
As an example of why this would be useful, suppose in some situations I want file A to open in the primary monitor and file B in the secondary monitor, but in other situations I want the reverse. I would like to write one script that opens file A using a fake argument, e.g. -primaryMonitor, and opens file B with -secondaryMonitor, and then a second script that does the reverse. However, -cmd- doesn't seem to like it when I add fake arguments to commands. I thought I might get around this by adding the "argument" as a comment, so cmd would not complain and only DisplayFusion would see it. So, for example:
start notepad++.exe -primaryMonitor A.txt
(cmd / notepad++ complain because there's no -primaryMonitor argument or switch)
vs
start notepad++.exe A.txt &:: primaryMonitor
(displayfusion doesn't seem to notice the comment)
Alternatively, perhaps I'm going about this in an entirely wrong way, so please let me know if there's a better way to achieve this aim.
Oct 24, 2014 (modified Oct 24, 2014)
•
#1