Keyboard shorcut Autohotkey for pasting stuff in windows command prompt

This is very crude fix. Get Autohotkey. Install it and run a script that might be something like a following script. I won’t recommend running identical script since this is based on mouse positions I got out of AutoSriptWriter on my screen and might depend somewhat on the window positionings. (You might need to adjust the mouse cordinates to your own window positions. Run AutoSriptWriter to get your mouse sequence.)

Here is what I got while running irb:

It works with Ctrl+Shift+V

^+V::

WinWait, C:\WINDOWS\system32\cmd.exe - irb,
IfWinNotActive, C:\WINDOWS\system32\cmd.exe - irb, , WinActivate, C:\WINDOWS\system32\cmd.exe - irb,
WinWaitActive, C:\WINDOWS\system32\cmd.exe - irb, 

MouseClick, right,  360,  16
Sleep, 100
MouseClick, left,  399,  154
Sleep, 100
MouseClick, left,  505,  187
Sleep, 100

return

Better ways to do this? (switching to Linux I should say..)

Advertisements

About learnprogramruby

My name is Jukka Ylitalo. I live in Finland Helsinki metropoly area. I'm a philosophy major, media artist and a travelling lecturer on "digital design". At the moment one of the things I want to do is to learn program ruby.
This entry was posted in Autohotkey, Programming, Ruby. Bookmark the permalink.

One Response to Keyboard shorcut Autohotkey for pasting stuff in windows command prompt

  1. Pingback: Hello web site! with Ruby | Learning to Program Ruby Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s