Falling 0 Posted March 18, 2005 Shell "C:\Program Files\Client\Client.exe" What do i need to add to this to make the .exe open up on top of windows instead of opening minimized? Share this post Link to post Share on other sites
bshoenhair 0 Posted March 18, 2005 Shell "C:\Program Files\Client\Client.exe" What do i need to add to this to make the .exe open up on top of windows instead of opening minimized?<{POST_SNAPBACK}>In Visual basic with AutoItX or in AutoIt ?Do you want to set it topmost or not to open minimized ? Share this post Link to post Share on other sites
Falling 0 Posted March 18, 2005 In Visual basic with AutoItX or in AutoIt ?Do you want to set it topmost or not to open minimized ?<{POST_SNAPBACK}>Umm not sure what you ment. But here is the solution:Dim K As Double K = Shell("C:\Program Files\cleint\Client.exe", vbNormalFocus)It's odd with Vb6 because you can also just do something like this:Shell "C:\Program Files\LocalServer\LocalServer.exe" which will open the exe. But for openin something in a certain way you have to use that function call.Here is a new question though:How do i get the system trey to auto-refresh itself? if i use the Shell "taskkill /im LocalServer.exe" it leaves a ghost of the icon in the system tray. Share this post Link to post Share on other sites
bshoenhair 0 Posted March 18, 2005 Look Herehttp://www.autoitscript.com/forum/index.ph...7404&hl=refresh Share this post Link to post Share on other sites