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.

Search found 9 matches

by nathan323
Mon Oct 24, 2016 2:48 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Ok thats weird huh.

Here is what I get from copying the macro I have:

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
<Macro Name="VLC - Show Title (forum)" Expanded="True">
<Event Name="vlc_show_title_forum" />
<Action>
Window.FindWindow(u'vlc.exe', None, None, None, None ...
by nathan323
Thu Oct 20, 2016 6:22 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

2016-10-20 17:20:08 MACRO: VLC - Show Title (forum)
2016-10-20 17:20:08 ACTION: Find Window: vlc.exe
2016-10-20 17:20:08 ACTION: TextGrab: GrabText
2016-10-20 17:20:08 INFO: Text grabbed: The Departed.mkv - VLC media player
2016-10-20 17:20:08 ACTION: Python Script
2016-10-20 17:20:08 INFO: The ...
by nathan323
Wed Oct 19, 2016 9:19 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Great, sounds awesome 8)

Ive tried it with files with titles like

The Departed, Birdman, The Wire (S02E04) - Hard Cases

and mkv, mp4, avi
by nathan323
Tue Oct 18, 2016 9:25 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Ah excellent, thanks! I'd added something in python that further edited the title down to hide episode code, then inserted the text into the clipboard on my phone, so I could paste into iMDB app haha.
Yours is great for some quick info. Although the OSD doesn't seem to be working, I can only see ...
by nathan323
Sun Oct 16, 2016 12:30 pm
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Ok got it :p

Code: Select all

eg.globals.grabbedText = eg.globals.grabbedText[:-23]
http://stackoverflow.com/questions/5092 ... e-notation
by nathan323
Sun Oct 16, 2016 12:00 pm
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Ok now I'm getting greedy.

Can I also take out the inevitable ".mp4"? Obviously the problem is, sometimes it's .mkv or .avi - I was thinking something along the lines of:
eg.globals.grabbedText = eg.globals.grabbedText.replace('.*', '')
that would take out anything after the dot..

I've put this ...
by nathan323
Sun Oct 16, 2016 11:30 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Re: Parsing global variable

Excellent!

I do like the little icons, so I went with option 2 :) Thankyou.

But thanks kgschlosser, that really helps get a grasp at what the equivalent python looks like for a macro I'm familiar with, will help to get more comfortable with EG/python.

** for anyone else that wants copy/paste the ...
by nathan323
Sun Oct 16, 2016 6:04 am
Forum: Coding Corner
Topic: Parsing global variable
Replies: 13
Views: 4731

Parsing global variable

Used EventGhost for a while, though just GUI. I am brand new to python.

I have the following macro set up to show media title in VLC in fullscreen.
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
<Macro Name="VLC - Show Title 2" Expanded="True">
<Event Name="vlc_show_title ...
by nathan323
Sat Aug 06, 2016 1:56 pm
Forum: General Support
Topic: Macro not working when keyboard emulation after kb shortcut
Replies: 1
Views: 1365

Macro not working when keyboard emulation after kb shortcut

It seems like I cant create a macro that contains a keyboard shortcut for an Event, then a Keyboard Emulation action./ Is this normal behaviour?
I am newish to prog.

The macro works fine if I Execute Item from right-click menu in Eventghost, but if add keyboard shortcut as an Event and trigger that ...