Custom window (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
/custom_window "Title" can be used to create one of the macro-holding windows from this post; note there's no command to destroy one of these yet, so you still need to text-edit the file to get rid of it, for now.  
/custom_window "Title" can be used to create macro-holding windows; note there's no command to destroy one of these yet, so you still need to text-edit the file to get rid of it, for now.  


Before using the command, create a text file named custom.window  
Before using the command, create a text file named custom.window  

Revision as of 06:45, 2 June 2022

/custom_window "Title" can be used to create macro-holding windows; note there's no command to destroy one of these yet, so you still need to text-edit the file to get rid of it, for now.

Before using the command, create a text file named custom.window

Inside the text file type:


Window MyWindow 0 0 200 100

Open 1

End


Save the text file in the following folder in all lowercase letters:

COH folder/data/customwindows/

Create the folders if they don't exist.

Now go into the game, and in the chat box type /custom_window MyWindow

A small box will appear in the upper left corner of the screen. Click on it and the custom window will open.

Drag and drop any macro from your power trays into the custom window and a button will be created with the macro's commands.

Drag the custom window to any location on your screen. Grab the edges of the custom window to resize it.

Note: You can change "MyWindow" into any name you want. If the name includes blank spaces, enclose the name in quotes. For example, "My Custom Window".

Additional custom windows can be created using the custom_window slash command. Simply use a different name for the new custom window.

TIP: The custom.window text file requires some very specific formatting to work. It's best to use the custom_window command in game before you attempt to edit the file manually, which in turn will reset the text file you created into the correct format. Then you can use a text editor and just copy/paste the formatting within the corrected file if you want to edit the file manually. Be aware that if the text file is incorrectly formatted, that the custom_window command will completely overwrite it, re-set it, and delete any data already inside the file.


This process was first detailed by @Leandro here https://www.cohtitan.com/forum/index.php?topic=11080.msg186612#msg186612