Program to keyboard

This is a discussion on Program to keyboard within the Linux Programming forums, part of the Platform Specific Boards category; I've started to try and make a program to interact with a web browser's text box that would take out ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Program to keyboard

    I've started to try and make a program to interact with a web browser's text box that would take out one step of a previously designed program.

    This previously designed program, designed in c++, would output Pi to a text file, and I could then copy the numbers generated elsewhere. Would it be possible to shorten this set of steps and output directly to a text box in whatever's currently open?

    This isn't anything I have any reason to release and is just a learning experience, so it doesn't have to look pretty. If I would need to create something in another language and execute it, that's okay, but if it can be done directly in C or C++, that would obviously be a lot nicer to code (well, assuming it's standard library).

    Thanks

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    XSel by Conrad Parker
    This program (source available) allows a command line program to interact with the X clipboard. So you could reduce quite easily the effort you need to perform to being just ctrl-v

    As for the final step, I don't know.
    Perhaps digging through the above source code will give you some ideas as to what APIs are worth reading up on.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to execute other program within c program?
    By KoYoungSuk in forum C Programming
    Replies: 7
    Last Post: 06-07-2010, 05:08 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21