How to set the position of exe on desktop

For general discussion related FlowStone
Post Reply
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

How to set the position of exe on desktop

Post by jjs »

Hi,

Maybe someone knows how to set the position of an exe on your desktop once it starts?

When i start a exe it always starts on the left upper side, but i want it to start on the right upper corner of my desktop.
Now i have to drag it every time.

Is it a windows setting?
Or can we use Ruby to force it to a certain position on the screen?

Anyone a clue?

Thanks.
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: How to set the position of exe on desktop

Post by Nubeat7 »

hmm there was a similarquestion a while ago with remember fullscreen on different monitors... viewtopic.php?f=2&t=1086&p=3144&hilit=remember+window#p3149 looks like there is not really a way... maybe support can answer this
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: How to set the position of exe on desktop

Post by jjs »

THX Nubeat , but thats not it.

Hopefully an answer or idea will come up with someone.

Thanks!
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: How to set the position of exe on desktop

Post by billv »

Registry.WIndow position parameter???
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: How to set the position of exe on desktop

Post by jjs »

billv wrote:Registry.WIndow position parameter???


That could be a solution, but not user friendly.
There should be a solution that you can set.
In some cases people want some screens on some positions.
And you can't ask them all to change the registry for that.
Also in some other cases people do not have the rights for that, but can run a non-installed executables like these.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: How to set the position of exe on desktop

Post by billv »

jjs wrote:but not user friendly.

Yeh I know, the registry is the last place you want to go, but all i could think of.
If an answer dosn't turn up, maybe try e-mail support direct.
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: How to set the position of exe on desktop

Post by Jay »

ok here is a little workaround for screen positioning of an exported exe or vst

inside the rar is an app called move.exe, a txt file called placement.dat and also a schematic called move.fsm

1st. open the schematic and you will see a module called "move application". paste it into the fist level of your exe/vst.
2nd. export your exe/vst to your required destination.
3rd. copy the move.exe and placement.dat into your exported exe/vst folder,
4th edit the placement dat as follows horizontal position, vertical position, export name (without the extension)

like this - 500
200
big synth

5th. run the exe or vst and it will reposition itself to your coordinates after load.

you can just keep editing the coords until you are happy with the positioning, its a bit rough and ready but i will work on it some more and see how i can improve on it!

move running.rar
(688.28 KiB) Downloaded 1239 times


best regards
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: How to set the position of exe on desktop

Post by jjs »

Great Jay !

i will test asap and let you know if it works ok.

A BIG THANKS !
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: How to set the position of exe on desktop

Post by Jay »

No problem at all m8! im glad it is of use! :)


i will add in screen size/resolution detection and see if i can add an "open on second monitor" feature as well, there are a few other bits that can be implemented like, Run hidden, system tray access etc

will footer about with it some tomorrow!
User avatar
jjs
Posts: 142
Joined: Thu Jun 09, 2011 12:15 pm

Re: How to set the position of exe on desktop

Post by jjs »

Hi Jay,

i've tested it, it works great!

now i searched a bit on the web it seems a claas curses is needed wich is not available in flowstone, if you want to do it from within ruby/FS, if i'm correct.

thanks!

until a internal solution is there, i will use your solution :)
Post Reply