Skip to content

I'm a bit confused on getting [[Clipboard]] working when specifying a Script #259

Answered by lintalist
TFWol asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the feedback I can confirm your findings.

This works just to confirm you can access the AutoHotkey clipboard variable in scripts:

Part1: This is a Clipboard test
Script: MsgBox,, Clipboard contents at script start, % Clipboard


Indeed when using [[clipboard]] there is a logic error - It checks if it should process the [[clipboard]], but only does so when scripts aren't present or deactivated here:

lintalist/lintalist.ahk

Lines 896 to 904 in 0ad4909

If (Text1 = "") and (Text2 = "") and (Script = "")
Return ; nothing to paste or run
If (Script = "") or (ScriptPaused = 1) ; script is empty so we need to paste Text1 or Text2
{
If (InStr(Text1, "[[Cli…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TFWol
Comment options

Answer selected by TFWol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants