Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

OSE (On Screen Explorer)

Questions and comments specific to a particular plugin should go here.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: OSE (On Screen Explorer)

Post by molitar »

Pako, worked great but I had to modify the command line option some.. so before starting mpc I added a python command... eg.result = '"' + eg.path + '"' + ' /play'' . The path has to be in quotes and /play has to follow it to start playing automatically.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: OSE (On Screen Explorer)

Post by molitar »

Pako I got some strange problem with OSE now.. Here is how the eg.results file is saving as.

D: Incomplete\Bleach 275+\Bleach - 180 [DB].avi

Note that is not a \ so file is not playing.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

That's interesting. But how can I fix this, if I do not have enough information from you.
I mainly need to know what the right file path. If I will be able to simulate the same problem,
it should be easy to find bug.
Pako
You know flattr ? You can Image
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: OSE (On Screen Explorer)

Post by molitar »

Pako wrote:That's interesting. But how can I fix this, if I do not have enough information from you.
I mainly need to know what the right file path. If I will be able to simulate the same problem,
it should be easy to find bug.
Pako
it should be D:\Incomplete\Bleach 275+\Bleach - 180 [DB].avi not D: Incomplete\Bleach 275+\Bleach - 180 [DB].avi. I'm not sure if this is an error with EventGhost when it captures the path or OSE. that is the value I am getting when I do a print of the eg.result but what is interesting the only way I got path out correctly was to do the events like this.

eg.path = '"' + eg.result + '"' + ' /play'
print eg.path

Start Application: C:\Program Files\Combined Community Codec Pack\MPC\mpc-hc.exe (Command Line Options) {eg.path}

I was than able to get the path out with D:\ and not the funky D: character. Now this is with windows in Japanese Locale mode so not sure if that is what is causing the first backslash to be some funky character or what. Now if I tried eg.result I got that funky character in place of the backslash.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

molitar wrote: Now this is with windows in Japanese Locale mode ...
Yes, if you have the Japanese locale, this may be the cause of the problem.
In that case, it will be difficult for me to fix the bug (I do not know if there is a bug in the plugin OSE).
Please try the following test:
OSEtest.jpg
OSEtest.jpg (10.04 KiB) Viewed 8887 times
And send a message that appears in the log.
I get this:

Code: Select all

u'D:\\Incomplete\\Bleach 275+\\Bleach - 180 [DB].avi'
Pako
You know flattr ? You can Image
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: OSE (On Screen Explorer)

Post by zian »

I LOVE this plug-in.

I would like it even more if a file could be deleted from the scroll window.

Also...
If it could be made to show in full screen... or at least if everything behind the scroll window could be blacked out.

Thanks for the very cool plug-in that I have been wanting for quite some time.
eventghost.net
Be there or be square.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

zian wrote:I LOVE this plug-in.
That made me very happy. Sometimes I have a feeling that my time spent on it (not just on the OSE plugin) was completely unnecessary.
zian wrote:I would like it even more if a file could be deleted from the scroll window.
Yes, I understand, and should not be hard, this feature to add.
zian wrote:If it could be made to show in full screen... or at least if everything behind the scroll window could be blacked out.
I please you to explain in other words, with regard to my bad English (short and simple sentences, examples, pictures etc.).
Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

The new version (0.2.3) has incorporated a new feature - Delete file.
OSE.DeleteFile.jpg
OSE.DeleteFile.jpg (6.58 KiB) Viewed 8843 times
I reflected on the confirmation dialog, but I did not use it. It would be unduly complicated.
However, accidentally deleted file can be restored because the file is only moved to the Recycle bin.
Pako
You know flattr ? You can Image
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: OSE (On Screen Explorer)

Post by molitar »

Ok I got it working but note I had to add "/Play" to the result to make it read and work correctly for directory. Doubt I will use the delete feature myself but nice addition to OSE. Now you will notice in how I execute the directory I also have a show for display 1 or display 2 based on if it's fullscreen or not.

Your code you gave me before still works good for it but I have to get new values if I move the windows display around any. Just too bad Python just doesn't have no direct calls to get a windows state. All I did was create it as it's own macro and whenever I do volume changes or show any OSD including OSE I make a call to the macro to check if fullscreen or not.

Code: Select all

from win32gui import GetWindowPlacement

FindWin = eg.WindowMatcher(None, None, u'MediaPlayerClassicW' , None, None, None, True, 0.0, 0)
hwnd = FindWin()

def GetWindowStatus(hwnd):
    showList  = (None, "Normal", "Minimized", "Maximized")
    placement = GetWindowPlacement(hwnd)
    #unrem the below line to display the placement values that you need for the if placement[4] line
    #print placement
   
    if placement[4] == (1680, 1048, 3600, 2128):
        return "Fullscreen"
    else:
        return showList[placement[1]]

eg.globals.WindowsState = GetWindowStatus(hwnd[0])
print "Windows State = " + eg.globals.WindowsState
Attachments
Play directory.jpg
Play directory.jpg (30.53 KiB) Viewed 8839 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

@molitar:
I'm sorry but I did not understand your post.
You expect from me any advice?
Pako
You know flattr ? You can Image
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: OSE (On Screen Explorer)

Post by zian »

Pako wrote:The new version (0.2.3) has incorporated a new feature - Delete file.
Sweeeet!!!
I'll give it a try and LOVE OSE even more.
Thanks (((Pako)))

ps...
I'll try to put my 2nd wish/request (full screen "mode" for OSE) in simpler terms and repost in after a while.

pss...
Thanks (((Pako)))
eventghost.net
Be there or be square.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: OSE (On Screen Explorer)

Post by molitar »

Pako wrote:@molitar:
I'm sorry but I did not understand your post.
You expect from me any advice?
Pako
No I was showing what I had to do to make directory play work. I had to take the result and add the value of \Play and it worked.. also taking the result and adding the value the directory corrected itself to d:\ and not that funky square character. Also was thanking you for the code earlier that allowed me to have some work around to determining that mpc is in full screen to change the display value. It's kind of a round about method but it does work to a degree.
kalia
Experienced User
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: OSE (On Screen Explorer)

Post by kalia »

Pako,

This is a great plugin. Thank you.

I have been using OSM (which is a good plugin) for a long time now, but I could never figure out how to use OSE until now.

Could you add the feature to "Delete Folder" also.

Thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

I just returned from vacation.
kalia wrote:Could you add the feature to "Delete Folder" also.
I'll look at it and hopefully it will be soon.
Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: OSE (On Screen Explorer)

Post by Pako »

The new version (0.2.4) has incorporated a new feature - Delete folder.
Pako
You know flattr ? You can Image
Post Reply