Skip to contentSkip to conversation

Question about X

DISCUSSION Alphex Kaanoken 2 participants 2 messages Nov 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
I'm want to get the last inputed string in focused window - and modify it if it's contain errors.
I'm try to do it with sending key events to focused window (like Shift+left|right arrows), and see it and modify with this method too, but it doesn't work ;-( or work very buggy =(

How I can do it with other method?

Thanx

#1 lore raw

On Wed, 2004-11-24 14:36:56 +0300, Alphex Kaanoken <[email protected]> wrote in message <[email protected]>:

Quoted 6 lines

Hi all,
I'm want to get the last inputed string in focused window - and modify it if it's contain errors.
I'm try to do it with sending key events to focused window (like Shift+left|right arrows), and see it and modify with this method too, but it doesn't work ;-( or work very buggy =(

Source code for that?

Quoted 1 line

How I can do it with other method?

Well, I'd modify the application to check the values upon pressing the "OK" button. If the input format doesn't match your expectation, just mark all the field's contents and position the cursor somewhere in this input field.

MfG, JBG

Signature · 4 lines
Jan-Benedict Glaw       [email protected]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));