Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Script Help

Avatar from Gravatar.com
Sorrylol
11 discussion posts
I was just wondering if it was possible to create a script that would open one file specifically (either .lnk or .exe) and then to open a completely different file approx 2 minutes after and then to minimize the second file either immediately or a few seconds after, and would it then to be possible to make this script into a windows shortcut that can then be activated by double clicking. If so, how might I go about doing this, appreciate all responses!
11 days ago (modified 11 days ago)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It should be possible! Are you wanting it to launch two programs? Or open two specific files?
10 days ago  • #2
Avatar from Gravatar.com
Sorrylol
11 discussion posts
Hello! Thank you for your response. Wanting it to launch two programs, basically using Helios Display Management (a shortcut to it, that automatically brings me to surround mode), as the first program, which roughly takes about a minute or two. The second program that I would then want to open briefly and then minimize is a program called CareUEyes, a screen dimming program, because when I switch to surround mode it doesn't stay enabled unless I open it again.
10 days ago  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok great! That should be possible with a Scripted Function. Could you tell me the command line commands you use for both of those apps?
10 days ago  • #4
Avatar from Gravatar.com
Sorrylol
11 discussion posts
How would i go about finding those out by chance
10 days ago  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If you've got a shortcut to it, right-click the shortcut and choose Properties, then copy what's in the "Target" box
7 days ago  • #6
Avatar from Gravatar.com
Sorrylol
11 discussion posts
Yes I do, sorry for the late reply, here are the command lines for both programs:

Helios:
"C:\Program Files\Helios Display Management\HeliosDisplayManagement.exe" -a SwitchProfile -p "{bd033197-4549-4083-8b24-9452d7f5dfa3}"

CareUEyes:
"F:\Programs\Installations\Programs (Portable)\CareUEyes\CareUEyesPortable.exe"

Appreciate the help.
6 days ago  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, here you go. Try importing this scripted function. I don't have either of those apps running here, so couldn't test it, but it should hopefully work on your machine
• Attachment: Launch Helios and CareUEyes.dfscript [1,153 bytes]
5 days ago  • #8
Avatar from Gravatar.com
Sorrylol
11 discussion posts
Thank you very much! it works really well, I was just wondering two more things by chance, is it possible to close/terminate an already running program with scripts as well? also what about maximizing (i.e. bringing up an already open program that's currently minimized in the taskbar). If so, what would the scripts for these look like as I'd really like to implement some of them.
5 days ago  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You sure can! These are pretty easy. Close a window:

Code



Focus a minimized window:

Code

9 hours ago  • #10
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply