AHK running one script
A few weeks ago Cut shortcut (Ctrl+X) stopped working. Copy and Paste shortcuts continued to work fine. Selecting text, right-clicking and choosing Cut from the context menu works fine. This has persisted and occurs in all applications that I have now tried (and I've tried very many). Disabling Startup applications in turn has identified that the compiled AHK script appears to be causing the problem.
If I run up normally the compiled script keys.exe is loaded automatically. The first action I take is to load Notepad and check to see if Cut is working and it is not. If I then Exit AHK from the System Tray (right-click) and restart Notepad then Cut works. I can repeatedly Run / Exit the AHK exe and confirm that it is producing an enable / disable action and I am sure I am making no other changes in the meantime.
I am not clear how to check the AHK version, but if I right-click on the script text and run the compile GUI it tells me that I am using v1.1.33.09. If that is not what is needed please advise how to provide the AHK version.
Can anyone offer any guidance please?
Clive
Script ----->
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive ahk_exe CaptureOne.exe
; Full screen preview
F11::
send {Ctrl down}tb;'/{Ctrl up}
return
; New adjustment layer, change to Linear gradient
!l::
send {Alt down}e{Alt up}
send l
return
; New adjustment layer, change to radial gradient
!r::
send {Alt down}e{Alt up}
send r
return
; New adjustment layer, change to healing mask
!h::
send {Ctrl down}h{Ctrl up}
send h
return
; Brush Size, Hardness
`::
SEND, {Ctrl down}{Alt down}
SendInput, {RButton down}
KeyWait, %A_ThisHotkey%
SEND, {Ctrl Up}{Alt Up}
SendInput, {RButton up}
Return
; Brush Opacity, Flow
+`::
SEND, {Shift down}{Ctrl down}
SendInput, {RButton down}
KeyWait, %A_ThisHotkey%
SEND, {Shift Up}{Ctrl Up}
SendInput, {RButton up}
Return
#IfWinActive
; Verify session
^x::
^!v
FileRead, pasteContent, template.txt
Clipboard := pasteContent
Send, ^V
; clipboard := "D:\Capture One\CO Session\Roadcone Session\Roadcone Session.cosessiondb"
; clipwait, 2
; Send, %clipboard%
Send, {Enter}
Send, {Enter}
Return