PHP and windows API(KeyStroke)

Discussion in 'PHP' started by mehdiali, May 9, 2008.

  1. #1
    Hi everyone
    there are a lot of windows in front of me whit this title :
    untitled-Notepad,
    about:Blank-Microsoft,
    Digital Point Forums-Post New Thread-Opera
    Windows Media Player
    and ... .
    Now i want to creat a program that
    first : select "Digital Point Forums-Post New Thread-Opera" and
    Ctrl+a(select all) then Ctrl+c(copy)
    second : select untitled-Notepad and at last Ctrl+v(past).

    the name of Ctrl+v , Enter , F1 , and like these are keystroke and in some
    language program there are some API that use for these program.
    they simulate Keyboard.

    you can see a good one in :
    http://www.codeproject.com/KB/dialog/keystroke.aspx
    however in C++ .

    Now, what about PHP ?

    thank you in advance
     
    mehdiali, May 9, 2008 IP
  2. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm going to go out on a limb here and say this can't be accomplished. PHP is all parsed server side so the user can't really "interact" with it.
     
    Altari, May 9, 2008 IP
  3. mehdiali

    mehdiali Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    how about javascript ?
     
    mehdiali, May 9, 2008 IP
  4. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah AJAX could probably get you what you're looking for.
     
    Altari, May 9, 2008 IP
  5. mehdiali

    mehdiali Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    would you please get more information.
    some keywords.
    thanks
     
    mehdiali, May 9, 2008 IP