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.

using Findwindow with a eg.globals variable or a python scri

If you have a question or need help, this is the place to be.
Post Reply
baruchno
Posts: 8
Joined: Thu Sep 03, 2009 10:03 pm

using Findwindow with a eg.globals variable or a python scri

Post by baruchno »

Hello ,

I tried to use find window with the argument ({(eg.globals.LastTask)})

but it was converted to :

Window.FindWindow(u'({(eg.globals.LastTask)}).exe', u'', None, None, None, None, False, 0.0, 0)

doest any one know how to use a variable in findwindow command

or the python script equivalent ?

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

Re: using Findwindow with a eg.globals variable or a python scri

Post by Pako »

You can try it like this:

Code: Select all

eg.WindowMatcher(u'%s.exe' % eg.globals.LastTask, u'', None, None, None, None, False, 0.0, 0)
Pako
Post Reply