Переназначил хоткей для выбора ранее набранного слова

#include Clipboard_rus_subs.ahk
#include WorkWithModule.ahk

Ctrl_A = ^{SC01E}
Ctrl_L = ^{SC026}
Ctrl_Shift_Z = ^+{SC02C}

;
F6::

	module = %temp%\module.1s
	PutCurrentModuleTextIntoFileFast(module)

	RunWait, perl code_beautifier.pl -f %module%

	FileRead, text, %module%

	SaveClipboard()

	clipboard =
	ClipPutText(text)
	ClipWait
	;Sleep 30
	SendInput +{ins}
	;Sleep 30

	RestoreClipboard()

	Return

; ----------------------------------

;   : ctrl +1
^1::
	module = %temp%\module.1s
	PutCurrentModuleTextIntoFileFast(module)

	SendInput, {home}
; 	Sleep 5
	RunWait, %A_WinDir%\SysWOW64\wscript.exe scripts.js %module% proclist
	if (ErrorLevel > 0)
	{
		nStr := ErrorLevel
		SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
; 		SendInput ^g^%nStr%{ENTER}
		 SendInput ^g%nStr%{ENTER}
	}

	SendInput, {home}
	SendInput, ^{NumpadAdd}

Return

;-----------------------------------------------
;   .: Alt+f
!f::
   module = %temp%\module.1s
   PutCurrentModuleTextIntoFileFast(module)
   SendInput, {home}
;    SendInput, ^+{NumpadAdd} ;
   SendMessage, 0x50,, 0x4090409,, A ;  lat ,
   RunWait, %A_WinDir%\SysWOW64\wscript scripts.js %module% search
   if (ErrorLevel > 0)
   {
	  nStr := ErrorLevel
	  SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
	  SendInput ^g%nStr%{ENTER}
   }
   SendInput, {home}
   SendInput, ^{NumpadAdd}
Return

;-----------------------------------------------
;   .: Alt+r
!r::
   SendInput, {home}
   SendMessage, 0x50,, 0x4090409,, A ;  lat ,
   RunWait, %A_WinDir%\SysWOW64\wscript scripts.js null search-last
   if (ErrorLevel > 0)
   {
	  nStr := ErrorLevel
	  SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
	  SendInput ^g%nStr%{ENTER}
   }
   SendInput, {home}
   SendInput, ^{NumpadAdd}
Return

;-----------------------------------------------------------

;  : ctrl + / (ctrl + .)
^/::
   Send, {home}//
Return

; ---------------------------
;   : ctrl+i
^i::
   SendInput, ^+{NumpadAdd}
Return

;-----------------------------------------

;   Ctrl+y
$^SC015::	SendInput %Ctrl_L%

; ----------------------------------------
;
; ----------------------------------------
runAuthorComments(prmVar)
{
	SendInput, ^{ins}
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript author.js %prmVar%
	ClipWait , 1
	FileRead, text, tmp\actxt.tmp
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
}

!s::	runAuthorComments("new") ; alt+s -
!e::	runAuthorComments("edit") ; alt+e -
!d::	runAuthorComments("del") ; alt+d -

;
; ----------------------------------------

;   Ctrl+z (  )
;$^SC02C::SendInput %Ctrl_Shift_Z%

; '<'  Ctrl-,
$^,::	SendInput <

; '>'  Ctrl-.
$^.::	SendInput >

; '|'  Ctrl-\
$^\::	SendInput |

;       : ctrl+shift+c
^+c::
	Send, {HOME}{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}{INS}{CTRLUP}{END}{ENTER}{SHIFTDOWN}{INS}{SHIFTUP}
return

;-----------------------------------
;      OpenConf
;
;    (  OpenConf)
^Enter::
	SendInput, {F12}
return

;     (  OpenConf)
!left::
	SendInput, ^-
return
;------------------------------------

; Alt+h -
!h::
	SendInput, ^{ins}
	ClipWait , 1
	;module = %temp%\module.1s
	;PutCurrentModuleTextIntoFile(module)
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript generator.js null simple-managment
	ClipWait , 1
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

; Alt+g -
!g::
	SendInput, ^{ins}
	ClipWait , 1
	;module = %temp%\module.1s
	;PutCurrentModuleTextIntoFile(module)
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript generator.js null generator
	ClipWait , 1
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

; Alt+7 -
!7::
	set_locale_ru()
	RunWait, %A_WinDir%\SysWOW64\wscript scripts.js null preprocmenu
	FileRead, text, tmp\module.txt
	SendInput, %text%
; 	ClipWait , 1
; 	ClipPutText(text)
; 	ClipWait , 1
; 	SendInput +{ins}
return

; Ctrl+m -
^m::
	SendInput, ^{ins}
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript scripts_manager.js
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

; Ctrl +w
^w::
	SendInput, ^+{Home}^{ins}{Right}
	FileAppend, %clipboard%, tmp\moduletext.txt
	SendInput, ^+{End}^{ins}{Left}
	FileAppend, %clipboard%, tmp\moduletext.txt
; 	RunWait, wscript scripts.js tmp\module.txt words
	RunWait, %A_WinDir%\SysWOW64\wscript scripts.js tmp\moduletext.txt words
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}

Return

#include Clipboard_rus_subs.ahk
#include WorkWithModule.ahk

Ctrl_A = ^{SC01E}
Ctrl_L = ^{SC026}
Ctrl_Shift_Z = ^+{SC02C}

;
F6::

	module = %temp%\module.1s
	PutCurrentModuleTextIntoFileFast(module)

	RunWait, perl code_beautifier.pl -f %module%

	FileRead, text, %module%

	SaveClipboard()

	clipboard =
	ClipPutText(text)
	ClipWait
	;Sleep 30
	SendInput +{ins}
	;Sleep 30

	RestoreClipboard()

	Return

; ----------------------------------

;   : ctrl +1
^1::
	module = %temp%\module.1s
	PutCurrentModuleTextIntoFileFast(module)

	SendInput, {home}
; 	Sleep 5
	RunWait, %A_WinDir%\SysWOW64\wscript.exe scripts.js %module% proclist
	if (ErrorLevel > 0)
	{
		nStr := ErrorLevel
		SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
; 		SendInput ^g^%nStr%{ENTER}
		 SendInput ^g%nStr%{ENTER}
	}

	SendInput, {home}
	SendInput, ^{NumpadAdd}

Return

;-----------------------------------------------
;   .: Alt+f
!f::
   module = %temp%\module.1s
   PutCurrentModuleTextIntoFileFast(module)
   SendInput, {home}
;    SendInput, ^+{NumpadAdd} ;
   SendMessage, 0x50,, 0x4090409,, A ;  lat ,
   RunWait, %A_WinDir%\SysWOW64\wscript scripts.js %module% search
   if (ErrorLevel > 0)
   {
	  nStr := ErrorLevel
	  SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
	  SendInput ^g%nStr%{ENTER}
   }
   SendInput, {home}
   SendInput, ^{NumpadAdd}
Return

;-----------------------------------------------
;   .: Alt+r
!r::
   SendInput, {home}
   SendMessage, 0x50,, 0x4090409,, A ;  lat ,
   RunWait, %A_WinDir%\SysWOW64\wscript scripts.js null search-last
   if (ErrorLevel > 0)
   {
	  nStr := ErrorLevel
	  SendMessage, 0x50,, 0x4090409,, A ;  lat ,   SendInput
	  SendInput ^g%nStr%{ENTER}
   }
   SendInput, {home}
   SendInput, ^{NumpadAdd}
Return

;-----------------------------------------------------------

;  : ctrl + / (ctrl + .)
^/::
   Send, {home}//
Return

; ---------------------------
;   : ctrl+i
^i::
   SendInput, ^+{NumpadAdd}
Return

;-----------------------------------------

;   Ctrl+y
$^SC015::	SendInput %Ctrl_L%

; ----------------------------------------
;
; ----------------------------------------
runAuthorComments(prmVar)
{
	SendInput, ^{ins}
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript author.js %prmVar%
	ClipWait , 1
	FileRead, text, tmp\actxt.tmp
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
}

!s::	runAuthorComments("new") ; alt+s -
!e::	runAuthorComments("edit") ; alt+e -
!d::	runAuthorComments("del") ; alt+d -

;
; ----------------------------------------

;   Ctrl+z (  )
;$^SC02C::SendInput %Ctrl_Shift_Z%

; '<'  Ctrl-,
$^,::	SendInput <

; '>'  Ctrl-.
$^.::	SendInput >

; '|'  Ctrl-\
$^\::	SendInput |

;       : ctrl+shift+c
^+c::
	Send, {HOME}{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}{INS}{CTRLUP}{END}{ENTER}{SHIFTDOWN}{INS}{SHIFTUP}
return

;-----------------------------------
;      OpenConf
;
;    (  OpenConf)
^Enter::
	SendInput, {F12}
return

;     (  OpenConf)
!left::
	SendInput, ^-
return
;------------------------------------

; Alt+h -
!h::
	SendInput, ^{ins}
	ClipWait , 1
	;module = %temp%\module.1s
	;PutCurrentModuleTextIntoFile(module)
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript generator.js null simple-managment
	ClipWait , 1
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

; Alt+g -
!g::
	SendInput, ^{ins}
	ClipWait , 1
	;module = %temp%\module.1s
	;PutCurrentModuleTextIntoFile(module)
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript generator.js null generator
	ClipWait , 1
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

; Alt+7 -
!7::
	set_locale_ru()
	RunWait, %A_WinDir%\SysWOW64\wscript scripts.js null preprocmenu
	FileRead, text, tmp\module.txt
	SendInput, %text%
; 	ClipWait , 1
; 	ClipPutText(text)
; 	ClipWait , 1
; 	SendInput +{ins}
return

; Ctrl+m -
^m::
	SendInput, ^{ins}
	ClipWait , 1
	RunWait, %A_WinDir%\SysWOW64\wscript scripts_manager.js
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}
return

;
^l::
	SendInput, ^+{Home}^{ins}{Right}
	FileAppend, %clipboard%, tmp\moduletext.txt
	SendInput, ^+{End}^{ins}{Left}
	FileAppend, %clipboard%, tmp\moduletext.txt
; 	RunWait, wscript scripts.js tmp\module.txt words
	RunWait, %A_WinDir%\SysWOW64\wscript scripts.js tmp\moduletext.txt words
	FileRead, text, tmp\module.txt
	ClipWait , 1
	ClipPutText(text)
	ClipWait , 1
	SendInput +{ins}

Return