Hi!
Just discovered DisplayFusionCommand.
If I understood correctly, currently the available commands are only global in nature (i.e. close all windows, wallpapers stuff etc).
I feel like there's a huge unrealized potential though; targeting a function to a specific window, or at the very least,
to the last window used. This is because running -hotkeyrun Maximize Window, maximizes my cmd window.
I'll explain why I think that would upgrade the CMD functionality tremendously:
1. My main use of DF is for running functions on windows. Move around screen, always on top, transparency etc. This is impossible with DF Command.
2. I would have loved to remember all the hotkeys for all the functions that I like, but my memory isn't good enough. A perfect solution would be being able to just run functions through the terminal, i.e.
DisplayFusionCommand.exe -hotkeyrun "Maximize Window"
maximizes last window used
DisplayFusionCommand.exe -hotkeyrun "MoveLeftBottom"
moves last window to the bottom left corner of screen
etc.
3. An additional, very simple script could simplify things even further - accepting flags and arguments. Imagine the following:
self explanatory
size is a function that gets an int argument, and changes the size of the last used window to 80% of what it had been
same as above, but for the first window whose title includes "Notepad"
dfc move=(25,25,25,25) "Notepad"
moves the first 4 "Notepad" windows each to a different corner of the screen
dfc alwaysontop MyCustomizedScript
can call several independent functions
There's a hacky solution that I could build in the meanwhile, if only I knew how to write a BFS script that gets the last window used
If someone could direct me, that would be great and I'd upload my solution within the following days.
That would include an exe that handles cmd args, wraps them nicely so BFS API could understand them, and sends things to DisplayFusionCommand.exe -hotkeyrun % varies based on args %.
To clarify what I need: something that simulates Alt+Tab (focus last window).
Thanks a lot!
Gilad
/edit
I uploaded a completely fake GIF that shows how the end result could look
There's a .mp4 if the GIF doesn't work for some reason.