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.

assign different eg.results in same python script

If you have a question or need help, this is the place to be.
Post Reply
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

assign different eg.results in same python script

Post by skribb »

Code: Select all

eg.plugins.Winamp.GetPlayingStatusNow()
eg.globals.WINAMPSTATUS == eg.result

eg.plugins.Winamp.GetPlayingSongTitle()
eg.globals.title == eg.result
Doing this makes both variables contain the first result, i.e the winamp status.

How do I assign the two results to variables correctly? Same thing happens if I do a single = instead of ==
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: assign different eg.results in same python script

Post by krambriw »

One possible example

Code: Select all

eg.globals.WINAMPSTATUS = eg.plugins.Winamp.GetPlayingStatusNow()
eg.globals.title = eg.plugins.Winamp.GetPlayingSongTitle()
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: assign different eg.results in same python script

Post by skribb »

Åh, perfekt :D
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
Post Reply