Sentfile01
6 discussion posts
Thanks for the reply Keith. All tho i don't get this to work, see attached image.
Says "
Compile Failed.
Line 0: Source file 'C:\Windows\TEMP\k25il1ym.0.cs' could not be found
Line 0: No source files specified"
I don't see this in the script, where do i choose what program i want to open in the taskbar?
Like if i want to have 2 minimized programs to open like Chrome and Spotify, don't i need to choose where i want them to open? Like what monitor and location?
I'm really new to DP so sorry for the dumb questions
Thanks again.
Kind regards
Sentfile01
• Attachment [protected]: 2016-10-13 19_28_37-Settings • DisplayFusion Pro 8.0.png [26,695 bytes]
That error usually occurs if your user doesn't have permissions to write to the C:\Windows\Temp folder. Try checking the permissions on that folder to make sure your use has Modify or Full Control permissions on it.
The sample I posted will find the Google Chrome window:
windowHandle = BFS.Window.GetWindowByText("*Google Chrome");
Restore it:
BFS.Window.Restore(windowHandle);
And move it to the left half of the monitor:
BFS.Window.MoveToLeftMonitorHalf(windowHandle);
You can tweak it for other applications by editing the first line to use the window title of the application you want it to affect. And with the last line, if you want it to move to the right monitor have, you can change it to BFS.Window.MoveToRightMonitorHalf(windowHandle);
Sentfile01
6 discussion posts
Ah, got it working now! Ok, thanks for the info. Is there any way i can chose on what monitor this should be working on? I got 3x monitors/taskbars and sometimes same applications minimized on taskbar on all monitors.
Also, lets say i got 2x Chrome windows open or 2x File explorer open but minimized. Is it possible to run this so both open? Like 1 on the right side and the other on the left side. When i try it now just one opens and then nothing happens.
Thanks for the help
Oct 13, 2016 (modified Oct 13, 2016)
•
#5
You could do those with Scripted Functions as well, but each one would be a separate script, and therefore a separate hotkey or titlebar button. Would you like a couple of sample scripts for those scenarios?