in reply to Re: Capture Keystroke
in thread Capture Keystroke

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

Replies are listed 'Best First'.
Re^3: Capture Keystroke
by repellent (Priest) on Apr 12, 2009 at 21:44 UTC
    Your trend of questioning and research into your program's implementation does overlap the blackhat domain, at a quick glance.

    It's fine to continue asking, but next time, it would be good to state your intentions like you did here to avoid further (superficial) suspicions. Besides, stating your intentions also help you more in that other monks can suggest better solutions to your actual main problem.

    With that said, there's lots of third-party tools that already do what you want to do. Search the web. Why not leverage them? If you're writing it for your own education, then it's best to say so, so that other monks can decide whether to help, given that more info is provided.
      does overlap the blackhat domain

      All of the blackhat domain does overlap the whitehat domain, too. Except the intention. And all those things do overlap other domains.