Jump to content

Gracefully close process that hides in tray when window closed?


VAN0
 Share

Recommended Posts

I'm trying create a launcher which would gracefully "quit" Origin application when it's window was closed instead of hiding it to tray.

Currently the GUI of Origin is not accessible with Au3Info, it only shows:

<snip>

Which is almost useless even to detect the window itself (I have other applications that give this exact info)

The tray icon has menu, perhaps that would be a way quit application gracefully?

<snip>

Or is there a way send fake "windows is shutting down" signal to the application?

 

Here is what I've come up so far:

<snip>

Thank you!

 

Edited by Melba23
Code and images removed at OP's request
Link to comment
Share on other sites

There's UIA automation that could in theory open the icon menu and clicl close, but i find it too slow and messed up.

I would just go with good old process close and be done with it.

Why do you care about origin closing soft?

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • Moderators

VAN0,

The "Origen" to which you linked appears to be a gaming platform - is this the case?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

@careca, I just don't like it's icon stay in tray when process was killed.

@Melba23, mmm it's a launcher for games...I'm not trying to hack it or anything, just trying fix something EA fu'ed up long time ago, in order to spy on users (I see no other explanation, why it can't be quit without going through menus)

Link to comment
Share on other sites

  • Moderators

VAN0,

Quote

it's a launcher for games

And so I am afraid falls foul of the Forum rules - thread locked.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

OP and all the "wannabee" Mods (is the weather bad where you are or is there nothing on TV this afternoon?) who have contacted me about the reasons for my having locked this thread,

Firstly, thank you all for being polite and reasoned in your arguments. It makes a pleasant change to receive communications written in such a tone rather than the invective-laced insults we so often receive.

However, in this case the thread will remain locked for the following reason. The OP's stated aim was to "create a launcher" which is a self-evident breach of the Forum rules which specifically forbid this type of script. The fact the OP wished to interact with the Origin GUI at some point is therefore secondary and completely moot. I hope you can see the logic behind this distinction and would ask that you refrain from any further queries.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Developers

On top of what was stated by Melba23: 

We do appreciate the fact you all are so involved and care for us to do our job correctly, but we don't need/want to receive PM's questioning our decisions.
Just live, like we do, with the fact that we will make mistakes and will correct these actions when needed without receiving a PM from multiple members that aren't involved in the topic. :) 

Thanks,
Jos

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

Just so everyone knows we are in agreement I will pile on. Well-intentioned or not, none of us needs to be bombarded with PMs about why you feel a post should be opened. None of us is perfect, but we are the ones tasked with ensuring the forum adheres to the rules set forth by the site owner. We all do our best at this task based on our love of the language and a desire to keep it's reputation unsullied. Please show some respect for that fact and, if you disagree with us (assuming you are not the OP) agree to disagree and move on. If, after discussing an edge case among ourselves as we often do, we are incorrect, Jon will certainly set us straight.

Edit: This would include, as an afterthought, not creating some word wall in Chat either to voice your opinion for or against what has been stated in this thread.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...