# Window layout and customize commands

**URL:** https://tech-community.robotics.abb.com/t/window-layout-and-customize-commands/8820
**Category:** RobotStudio
**Tags:** help
**Created:** [May 8, 2019, 1:00pm UTC](https://tech-community.robotics.abb.com/t/window-layout-and-customize-commands/8820 "2019-05-08T13:00:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Robotdude](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Robotdude](https://tech-community.robotics.abb.com/u/Robotdude)
#### Post date: [May 8, 2019, 1:00pm UTC](https://tech-community.robotics.abb.com/t/window-layout-and-customize-commands/8820/1 "2019-05-08T13:00:08Z")

</div>

Okay, i seem to have a problem with theese two.

First i run dual monitors and have my own “setup” of the differents windows and tabs on screen. Silly thing is that i cant seem to find anywhere to save like a preset or layout.

Second, when i customize new button bindings the program dosent save them. So i have to set them again after i restart RS. Only solution ive found is to set the commands then export them to desktop and import them upon starting RS.

Been browsing trough the program for a few hours today but cant seem to find anything that fix this

/Mike

---

<div class="post-metadata">

### Author: ![Robotdude](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Robotdude](https://tech-community.robotics.abb.com/u/Robotdude)
#### Post date: [May 8, 2019, 1:01pm UTC](https://tech-community.robotics.abb.com/t/window-layout-and-customize-commands/8820/2 "2019-05-08T13:01:04Z")

</div>

forgot to mention that im running the latest version of RS

---

<div class="post-metadata">

### Author: ![SierraWhiskeyHotel](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@SierraWhiskeyHotel](https://tech-community.robotics.abb.com/u/SierraWhiskeyHotel)
#### Post date: [May 13, 2019, 8:04am UTC](https://tech-community.robotics.abb.com/t/window-layout-and-customize-commands/8820/3 "2019-05-13T08:04:39Z")

</div>

I assume you are working with Visual Studio because you mentioned button bindings etc.

There is an easy command in RobotStudio API to save window configuration: _UIEnvironment.SaveWindowConfiguration(saveconfig);_

saveconfig is the name of a TextWriter Stream to a file. Here you can save the window configuration to a .txt file. Will look something like this:

_\<?xml version="1.0" encoding="utf-8"?\>_  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
_…_
