Omg, Old_Gray_Bear ur fantasie is not good. The world is full of bad guys but may be not so much as u imagine! Im writing a programm with a gui frontend (Tk) where users can store their own keystroke and later in this program they can use this keystroke to control their own desktop functions. Thats all! Nothing bad. But its ok i will do it by myself. I know modules like Term::ReadKey and the function like SendKeys("BlahBlah")will help me but the Problem is under Term::ReadKey i cant get all special keys like F1-F12, Del, Pageup, Pagedown, Arrows, Print etc. to store this value in a scalar to give out later the same keyvalue with SendKeys.. By the way another possibility were to bind a keystroke to a Tk-element like:
$textbox->bind("<Return>", sub{$Entryfiel->delete('0.0','end');$Entryf +ield->insert("end", "Return");});
but dont wanna do it in this way for every key. Thats really circuitous, so i try to find a better/smart way. Ok many thanks i will try it by myself and im sure i find a way may be in a week but i will find it.. Best regard, michbach

In reply to Re^2: Capture Keystroke by michbach
in thread Capture Keystroke by michbach

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.