Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am new to AutoHotKey, but I think this scenario is best suited to use AutoHotKey. I have to repeatedly paste 2 values in 2 different columns in a application, e.g. I have to paste value1 in cloumn1 and value2 in column2..... so I need a script to paste value1 when I press Q and paste value2 when I press W (as they are close to tab key).

Thanks Kiran.

share|improve this question
    
Are those two values always the same or variable ? –  Lamb Oct 11 '12 at 17:13
    
the 2 values are always same, the application does not allow me to save the row, without filling both the columns. –  Kiranshell Oct 11 '12 at 17:48
add comment

1 Answer

up vote 1 down vote accepted

Simple hotkeys can accomplish this.

q::Send, value1
w::Send, value2

However, you may also want to use #IfWinActive for your application or possibly use some modifiers on your keys just in case you actually need to type q or w in the spreadsheet or in another application.

SetTitleMatchMode, 2
#IfWinActive ahk_class XLMAIN ;Microsoft Excel
    !q::Send, value1 ;Alt + q
    !w::Send, value2 ;Alt + w
#IfWinActive
share|improve this answer
    
Very simple solution, Thanks Elliot!! –  Kiranshell Oct 16 '12 at 13:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.