Page 1 of 1

launching an external application and folder

Posted: Fri May 11, 2012 5:31 pm
by ferrandjames
Hello, I started in the windows, I have an application that I want to test it myself, so I basic questions:
1 - how to always open the application in full screen, maximize
2 - how to open an application outside that it is in program files (example: toto.exe)
3 - how to open a folder (My Documents) without knowing the username

thank you in advance :)

Re: launching an external application and folder

Posted: Fri May 11, 2012 5:54 pm
by Klaus
Hi ferrandjames,

1. sorry, no clever idea but setting the rect of your stack.
You will need to subtract the height of the window title bar (about 24- 28 pixel, not sure)
and check "the working screenrect" for the correct dimensions.
Check "screenrect" in the dictionary for more info...

For 2. and 3. please check "specialfolderpath" in the dictionary and this cool webpage for a lot more
of "specialfolderpath" code that you can use:
http://www.sonsothunder.com/devres/live ... ile010.htm

2. Something like:
...
put specialfolderpath(38) & "/toto.exe" into tExe
launch tExe
...
3.
...
launch document specialfolderpath("home")
## Yes "launch document XXX" will also open folders :)
...

Best

Klaus

Re: launching an external application and folder

Posted: Fri May 11, 2012 7:43 pm
by ferrandjames
thank you Klaus, you are really top, it works ...

Just one last question, is it possible to set the foreground application and prevent the taskbar from the Start Menu can be opened ..
And is it possible to log off windows with a button ???

cordially