Im trying to create a program in TK, which minimises to the system tray when its closed, and then pops up a form at regular intervals.

I have found out about the activestate perltray thing, however it isnt very useful because it cant run my code in specific time intervals (using sleep), continually (ina for loop with condition $i > $i+1) and still have a menu pop up. It also doesnt run straight away, i have to right click to initiate the loop, and the last problem with it being that it seems to have another window open on my taskbar, which i cant work out!

So i was wondering if there was an alternate method to make it run in the background, as i want (specific intervals repeatedly) but have a tray icon open as well (no doubt i could actuall yuse perltray for this anyhow, if the loop part is sepearte!).

Hope ive been understood! Thank you!

In reply to Regular popup in Tk by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.