Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
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
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Window Location can only read it if it shows in the "Command Line" column in Task Manager. If it's a fake argument, the program may strip it out when launching, so DisplayFusion wouldn't be able to read it.

Are file A and file B always the same? Or does that change? The latest beta version of DisplayFusion has added scripted functions, so you can actually do this with a scripted function. Let me know if you'd like some help getting that going :)

Thanks!
Oct 27, 2014  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)