Script fails if Ctrl is not released between uses Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
TaketaD

Script fails if Ctrl is not released between uses  Topic is solved

18 Jul 2018, 15:45

Hello all,

I've got a super simple script that I've got pretty much working. Unfortunately I've hit a snag where the script fails to run if Ctrl is not released between uses. I'm guessing '^e' means the script looks for the key-down of both Ctrl and 'e', rather than looking for a Ctrl-modified 'e'? I don't really foresee it being an issue, but better safe than sorry, right?

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.

^e::
Send, ^c
sleep 100
outputSF := Round(clipboard*43560)
Send, %outputSF%
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 218 guests