Return to Snippet

Revision: 37609
at December 14, 2010 00:34 by axs221


Initial Code
;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <[email protected]>
;
; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


^F5::
Send, {right}^{left}{shift down}^{right}{shift up} ; Select word if not selected already
Send, ^xSELECT TOP 10 * FROM ^v{shift down}{ctrl down}{left}{left}{left}{left}{left}{left}{shift up}{ctrl up}{F5}^v
return

^+F5::
Send, {right}^{left}{shift down}^{right}{left}{shift up} ; Select word if not selected 
Send, ^xsp_MShelpcolumns ^v{shift down}{ctrl down}{left}{left}{shift up}{ctrl up}{F5}^v
Sleep, 400
Send, {F6}{right}{right}{right}
return

^j::
Send, {end}{shift down}{home}{shift up}^c{end}{enter}^v
return

Initial URL

                                

Initial Description
Ctrl F5 will select * from highlighted table. Ctrl Shift F5 will sp_columns. Ctrl J will copy current line to next line.

Initial Title
AutoHotkey SQL Server hotkey to select from highlighted table

Initial Tags

                                

Initial Language
Other