AutoHotkey Community

It is currently May 26th, 2012, 7:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: New Clipboard Challenge
PostPosted: July 7th, 2009, 2:36 pm 
Offline

Joined: July 7th, 2009, 3:10 am
Posts: 3
I'm working with an application that disables ^c and ^v functionality. I assume it is in effort to prevent the use of macros. However, the application does allow me to enter data using the Send command.

Is there a way to set a variable within AHK to equal the data on the Clipboard, then to Send %var% the data into the uncooperative application?

I have read and reread nearly every post on the boards involving clipboard issues, but they all seem to use the window paste from the clipboard in the end. After many hours of researching, I've become desperate enough to ask for help, something I do not take lightly. Any help would be greatly appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 3:18 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
Are the places you're trying to send data to Edit controls?

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 3:20 pm 
You wanna tell us that you checked the AHK help for ClipBoard ?? :x

Code:
!F1::ClipBoard := "Listen son, you should RTFM!"
!F2::Send, %ClipBoard%


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 5:35 pm 
Offline

Joined: January 7th, 2009, 7:03 pm
Posts: 43
Code:
F1::var := Clipboard
F2::Send, %var%


Not as fast as a paste, but it works


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 5:36 pm 
Offline

Joined: January 7th, 2009, 7:03 pm
Posts: 43
This is one of the main uses I have for AHK. You can do anything with ahk that a normal user can do. For mangly CMS systems, take a screenshot, cut up some images. and do image search's to find coordinates to use mousemove's to click on the input fields, then use the send %var% to put the data into them.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 6:17 pm 
Offline

Joined: July 7th, 2009, 3:10 am
Posts: 3
RTFM: Yes, I have read the manual...those 15 lines assume ^v and ^c work for you in you app. If you read my question, you'd see your flame is pointless.

DevX: Thanks for the info. I tried your method to no avail. I'm obviously new to using AHK. Most of my experience has been C++, but this is what I've been asked to make work. Looks like it will be much easier when I get my hands around it.

I like your image search idea.

I may end up pasting information into a cell on excel and using the COM functions. They are more inline with the C++ syntax I'm used to. But, I hate to give up. I think these is easy and I'm just missing something.

Like I said earlier...the application accents data via the AHK Send command, it ignores all MS Clipboard commands.


Thanks for the help. Very appreciate.!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 6:27 pm 
Offline

Joined: July 7th, 2009, 3:10 am
Posts: 3
DevX!

Got it working! Thank you very much! :D


EDIT: I've gone back and reread the Clipboard Help now that I got it working to see if I missed anything. Nothing in the help file tells you how to set a variable to the contents of what is already on the clipboard.


Last edited by MacroBoy on July 7th, 2009, 6:36 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 6:28 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
What type of application are you working with? It's possible that one of the Control commands might work in lieu of copy/paste/Clipboard (ControlSend, ControlClick, ControlGetText, ControlSetText, etc.).

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, joetazz, perlsmith, Retro Gamer and 70 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group