AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to copy if you can't use ^c

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Labouche10



Joined: 28 Nov 2007
Posts: 17
Location: Missouri, USA

PostPosted: Sun Jan 06, 2008 6:11 am    Post subject: How to copy if you can't use ^c Reply with quote

I just started using a telnet terminal emulation program which I now realize actually uses VB to record macros. I used AutoHotKey on our previous software to screen scrape data and perform a large number of repetitive tasks. I actually had to send a mouseclickdrag, !e then !c as the program did not have support for a ^c command. This was highly unreliable when executed quickly and so was quite slow. It wasn't much faster than actually doing the work yourself. This new program does not support a ^c command either but I have noticed that it does have macro recording capabilities. While recording a macro I noticed that the code used was:

Sub Macro1
'<Desc = recorded 1/5/2008 11:53:17 PM>
On Error Resume Next
With ActiveSession
.Copy
End With
End Sub

Which appears to be standard vb code (I think anyway). Since I cannot use ^c is there another way to send the exact same command to this window as the visual basic ".Copy" command would? (I hope actually is pretty standard vb code)

Ultimately I would prefer to not use a shortcut key assigned to the macro either. In my experience of working with these programs I think a more direct method like sendmessage or something similar would be more reliable.

I also did try using window spy and the actual text inside the emulator sessions screen does not show up under fast/slow control or window text.

Thanks in advance for any help. I'm stuck!! Mad
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ManaUser



Joined: 24 May 2007
Posts: 906

PostPosted: Sun Jan 06, 2008 6:33 am    Post subject: Reply with quote

It seems strange that any program elaborate enough to include macros have wouldn't an option to do something as simple as binding ^c to copy.

But if that's so, then activating copy via WinMenuSelectItem might at least be a step up from the !ec method.
Back to top
View user's profile Send private message
Labouche10



Joined: 28 Nov 2007
Posts: 17
Location: Missouri, USA

PostPosted: Sun Jan 06, 2008 7:14 am    Post subject: Reply with quote

I hear you on that. I can't figure it out for the life of me either.

Thanks! I haven't actually noticed or used this command. I can see that I will use it quite a bit in the future. That is working OK but I haven't tested its reliability over time. I do wish though that Laszlo, SKAN, or Chris or another experienced autohotkey user could shed some light on the postmessage command, etc that would perform this ".Copy" function on a window. It may be something worthwhile to have as a reference in the forum. Others may be able to use it as well. I know that in this case if I knew that method I would prefer to use it.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Labouche10



Joined: 28 Nov 2007
Posts: 17
Location: Missouri, USA

PostPosted: Sun Jan 06, 2008 8:38 am    Post subject: Reply with quote

Actually figured out the postmessage code and tried it but it doesn't work. Looks like the menu command will have to do. Thank you again for your help.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group