topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 4:53 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Clipboard Key Command Evaluator - use with Autohotkey  (Read 5062 times)

springro

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 41
    • View Profile
    • Donate to Member
DONE: Clipboard Key Command Evaluator - use with Autohotkey
« on: November 25, 2006, 09:20 AM »
Hard to summarize in the title, but a simple idea.
Looking for a method to allow Autohotkey like control, but using text from the clipboard.  A simple way to create quick keyboard based macros.

So, something like the below could be used on many pages for a login.

       Name{TAB}Password{TAB}{ENTER}

NOTE: the {TAB} and would appear like that in the text string, not an actual tab until it is pasted.

You ask WHY?  If you're using Autohotkey, why don't you just create a new macro?
 1. Easier to teach somebody that isn't real good with a computer.  Simple access to automation/programming.
 2. Using the clipboard you can easily update a text sequence in a different program (Excel, other macro, etc).  Another method option is if you use a clipboard buffer, many options can be easily stored.  I'm a fan of Clipcache plus and would be able to quickly pull up routines from a keyboard shortcut that have been named and stored there.
 3. Good for testing routines that you would create in Autohotkey, or other

Set up with an option to run with an alternate hotkey (Alt-V) or always with paste function.

Thoughts?

Thanks,
Rob

« Last Edit: December 01, 2006, 05:28 PM by springro »

brett

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
  • Australia
    • View Profile
    • Donate to Member
Re: IDEA: Clipboard Key Command Evaluator - use with Autohotkey
« Reply #1 on: November 27, 2006, 06:04 AM »
Hi rob

Written in Autohotkey , this should do your request.
Copy macro text string to clipboard
Press 'ALT-v'

#Persistent
return
!v::
sendplay,%Clipboard%

Here is the same but with a message box as a pre check.
#Persistent
return
!v::
WinGetActiveTitle, Title
msgbox, 4,,send the text string `n`n%Clipboard%`n`nto the application called `n`n%Title%
IfMsgBox Yes
send,%Clipboard%
else
return

and a link to the key modifiers
http://www.autohotkey.com/docs/commands/Send.htm


..dB..
doublebogey

and the exe for those that dont have autohotkey



« Last Edit: November 27, 2006, 06:06 AM by doublebogey »

springro

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 41
    • View Profile
    • Donate to Member
Re: IDEA: Clipboard Key Command Evaluator - use with Autohotkey
« Reply #2 on: November 27, 2006, 06:10 AM »

Thanks for the quick answer!

Very simple solution.
Autohotkey has so many features, it's hard to come up with these items when you don't program in it often.

Sincerely,
Rob


skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Clipboard Key Command Evaluator - use with Autohotkey
« Reply #3 on: November 27, 2006, 07:06 PM »
 :) May I suggest my own AutoClip? It supports scripts for automation.

Skrommel