Jump to content

How to send Keystrocks in c++ <biginner>

- - - - -

  • Please log in to reply
6 replies to this topic

#1
SankaSL

SankaSL

    Newbie

  • Members
  • Pip
  • 8 posts
Im trying to make a progam to open acrobat files using adobe acrobat reader and save them in a txt, automaticaly.
what i want my program to do is
open the pdf
send <alt + tab> //to move to the acrobat tab
send <alt + f> //to open file
send <down arrow 4 times> //to select 'save as text' option
send <enter> // to save

can some one please help me on how to do this,
Thanx in advance

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
I take it this would be in Windows?
sudo rm -rf /

#3
SankaSL

SankaSL

    Newbie

  • Members
  • Pip
  • 8 posts
Yea in windows.

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Google is your friend.
send keystrokes to application - Google Search
sudo rm -rf /

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
AutoIt would possibly be the best choice for this task.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#6
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
I tried to do it manually but Acrobat Reader would not save the PDF file as text.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.

#7
abzero

abzero

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 217 posts
Or you could use the free pdf reading API (IText) and extract the text yourself?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users