launching an external application and folder

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

launching an external application and folder

Post by ferrandjames » Fri May 11, 2012 5:31 pm

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 :)

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: launching an external application and folder

Post by Klaus » Fri May 11, 2012 5:54 pm

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

ferrandjames
Posts: 20
Joined: Tue Mar 01, 2011 11:23 pm

Re: launching an external application and folder

Post by ferrandjames » Fri May 11, 2012 7:43 pm

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

Post Reply