Normal Topic QuickMacro/Paste question (Read 1089 times)
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
QuickMacro/Paste question
Jul 24th, 2011 at 1:25am
Print Post Print Post  
After calling SetCopyBuffer, I need to Paste the data. In trying to find something similar to using “CTRL-V”, I’ve looked into QuickMacro. The programming guide says; “The instruction specified in the string Macro must be formatted as it would appear as one line in a human readable macro file” and “The best approach is often to record a macro that does what you want, then copy and paste the commands out of the resulting macro file“.  I’ve created a macro and copied and pasted as suggested but don’t know what “formatted as it would appear as one line in a human readable macro file” means. I tried different combos for putting it into a string without success.

Here’s what the macro looks like;

MACRO HR
MENUBAR SELECT &Recording On
LEAVE 122 41 322 69 0
KEYDOWN 65507 CTRL
SHORTCUT 65507 CTRL
KEYDOWN "v" CTRL
PUSH 119 14 319 42 65257
RELEASE 119 14 319 42 65257
PUSH 127 69 327 97 65257
RELEASE 127 69 327 97 65257

I'd like to find a way to do this without using @Macro. Any help would be appreciated with this or any other method of “Pasting”, thanks.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: QuickMacro/Paste question
Reply #1 - Jul 24th, 2011 at 1:27pm
Print Post Print Post  
What are you trying to accomplish with this? I ask because there may be a better option than a programmed copy and paste.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: QuickMacro/Paste question
Reply #2 - Jul 24th, 2011 at 2:13pm
Print Post Print Post  
Hi Erika,

I'm using @PrintAForm to print to PDF995.  I capture data from the form which is used to name the file in the PDF995 "Save As" window file name. So, currently I'm having the client just press "CTRL-V" to paste the information from the clipboard into the File Name field in that window. Further, if we could get fancy and also have it select the "Save" button on that window it would be a bonus!

Thank you.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: QuickMacro/Paste question
Reply #3 - Jul 25th, 2011 at 12:52pm
Print Post Print Post  
We can't send keystrokes to a different program, Brandon. Since you are using PDF995, take a look at PDFEdit - http://www.pdfedit995.com. The Autosave feature allows you to specify a default filename to save to, at which point you can use SBasic to rename the saved file to whatever you want.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: QuickMacro/Paste question
Reply #4 - Jul 25th, 2011 at 4:37pm
Print Post Print Post  
Thank you Erika!

I'll give it a try.
  
Back to top
IP Logged