2012-06-09, 21:37
(2012-06-09, 21:28)Bstrdsmkr Wrote: The notification location is skin dependent so you can't move it without editing the skin
ActivateWindow isn't working because it's cached so it's showing the last known state (so technically it's working). If you're just trying to update the last window you were in before you started playback, use the builtin "Container.Refresh"
Also, instead of waiting 5 seconds for the delete to finish, use something like:
Code:while xbmcvfs.exists(file):
xbmc.sleep(1000)
That way you can account for things like deleting items from a busy NAS drive that might take more that 5sec.
Finally, you can also check the Season and Episode infolabels to be more certain it's a TV Show vs a movie
Thanks! Actually I think I figured out that trying to activate a different window and give it focus while the script is still running from the current window just ain't goin to happen. So, I deleted those lines and just put an <onclick>PreviousMenu</onclick> after the script in the button control and it works. I will take you up on your 2nd suggestion "while xbcvfs.exist(file)...".
Another good suggestion! I am learning something new every day.