Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Window Opener App?


  • Please log in to reply
3 replies to this topic

#1 EncoMan

EncoMan

  • Members
  • 35 posts
  • OFFLINE
  •  
  • Local time:01:42 AM

Posted 24 January 2017 - 03:46 AM

This may be obvious, but many very bright people think I'm asking about apps that start with Windows.
I create scripts that control everything, including which programs start with Windows.

I've got an app that starts in the system tray (notification area).  It's a small applet, with no startup
options.  If you want the main window to open the only option is to right-click the tray icon and select
"Parameters."  I have no idea why the author chose the word "parameters" to open the program window.

I want to add this applet to a script, but it's useless to me unless the window opens immediately after it
starts.  The help file doesn't list any command line options.  Since "parameters" is an item in the tray icon
context menu, I tried the same word on a shortcut target line.

It would look something like this:

"C:\Program Files\Program Name" /parameters > or > "C:\Program Files\Program Name" -parameters

It doesn't work.

NirCmd (from NirSoft) has a long list of window commands.  I tried several, but I can't force this applet to
open a window after it starts.

I need a tray launcher that will wait for my applet to start and immediately open its main window.  Maybe
something like a Firefox add-on that would give this applet command options it does not natively possess.

Googling produces a long list of free apps that minimize any window to the tray.  In effect, I need the exact
opposite!  I want my "tray only" app to open a window right after it starts.


Edited by EncoMan, 24 January 2017 - 03:48 AM.


BC AdBot (Login to Remove)

 


#2 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,128 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:06:42 AM

Posted 24 January 2017 - 05:37 AM

Hi,

 

I suggest you take a look to Autoit https://www.autoitscript.com/site/autoit/ it's a free script language that can interact with Windows, etc. and also with the applications on the Tray.

 

Example of code https://www.autoitscript.com/forum/topic/98670-how-to-operate-a-icon-in-system-tray/?do=findComment&comment=717268 search the Autoit forum and you will find several suggestions how to do it and if it doesn't work ask for help there.


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#3 EncoMan

EncoMan
  • Topic Starter

  • Members
  • 35 posts
  • OFFLINE
  •  
  • Local time:01:42 AM

Posted 26 January 2017 - 12:51 AM

Thanks SleepyDude.

 

I used Sysinternals Process Explorer and found a solution.

Select Properties for any running process.  Under the "Image" tab there is a command line.  Usually, it's not
very helpful.  I looked at everything under the "Strings" tab.  It's a huge list!  Most of the items are not
command parameters.

Finally, I found the word "Parameters."  "Parameters" is the item you select in the tray icon context menu to
open the program window.  However, it was listed differently under the Process Explorer "Strings" tab.

It was spelled like this:

Parameters...

Notice the three periods (...) after Parameters.

This command opened the program window:

"C:\Program Files\Program Name" /parameters...

I don't know anything about the author of this program, but he has a strange sense of humor!  I've never seen
the word "parameters" used to open a window.  If I hadn't found that "..." under Process Explorer Strings this
app would have been impossible to use in a script.


Edited by EncoMan, 26 January 2017 - 12:54 AM.


#4 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,128 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:06:42 AM

Posted 26 January 2017 - 04:26 AM

Hi,

 

Very nice you have found a solution. Many programs will not accept parameters so doing like you did will not work in many cases.


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users