Binary Fortress
Binary Fortress Software
CheckCentral
ClipboardFusion
CloudShow
CloudShow Manager
DisplayFusion
FileSeek
HashTools
LogFusion
Notepad Replacer
Online Base64 Decoder
Online Base64 Encoder
Online JSON Formatter
ShellSend
TrayStatus
VoiceBot
WallpaperFusion
Window Inspector
More Apps...
DisplayFusion
CheckCentral
CloudShow
ClipboardFusion
FileSeek
TrayStatus
VoiceBot
WallpaperFusion
Display
Fusion
by Binary Fortress Software
Download
Download
Change Log
Download Beta
Beta Change Log
License (EULA)
Features
Free vs Pro
More
Screenshots
Scripted Functions (Macros)
Languages
Help
Help Guide
FAQ
Discussions
Contact Us
Find My License
Mailing Address
Advanced Settings
Purchase
Login / Register
WARNING: You currently have Javascript disabled!
This website will not function correctly without Javascript enabled.
Title
Message
OK
Confirm
Yes
No
Prompt for Window Position Profile
Return to DisplayFusion Scripted Functions (Macros)
Description
This script will show a list of all of your Window Position Profiles, and allow you to select one to load.
Language
C#.net
Minimum Version
9.6.1+
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Mar 4, 2020
Date Last Modified
Mar 24, 2020
Scripted Function (Macro) Code
Copy
Select All
using System; using System.Drawing; using System.Collections.Generic; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Get the list of all functions string[] allFunctions = BFS.DisplayFusion.GetFunctions(); // Build a new list with only the Window Position Profile functions List<string> wppFunctions = new List<string>(); foreach (string function in allFunctions) { if (function.Contains("Load Window Position Profile")) { string wppName = function.Replace("Load Window Position Profile: ", ""); wppFunctions.Add(wppName); } } // Show the list so the user can choose one string selectedProfile = "Load Window Position Profile: " + BFS.Dialog.GetUserInputListViewWithFilter("Choose the Window Position Profile to load", wppFunctions.ToArray()); //BFS.Dialog.ShowMessageInfo(selectedProfile); // Load the selected profile BFS.DisplayFusion.RunFunction(selectedProfile); } }