ttt480 Posted November 21, 2018 Posted November 21, 2018 Now the script reacts to the presence of words in the clipboard Global $sClip, $sCurClip, $sText = "text" While 1 $sClip = ClipGet() If $sClip <> $sCurClip Then If StringInStr($sClip, $sText) Then MsgBox(0, "", "TEXT !!!") $sCurClip = $sClip EndIf Sleep(250) WEnd How to make the script respond to any change in the clipboard ?
Subz Posted November 21, 2018 Posted November 21, 2018 Don't understand your question, what do you want to happen to changes in the clipboard, you had already shown how to respond to any changes in the clipboard, here is a slightly modified version. Global $sClip, $sCurClip While 1 $sClip = ClipGet() If $sClip <> $sCurClip Then If IsString($sClip) Then MsgBox(4096, "Clip Info", $sClip) $sCurClip = $sClip EndIf EndIf Sleep(250) WEnd ttt480 1
Zedna Posted November 22, 2018 Posted November 22, 2018 Look here at example: https://www.autoitscript.com/autoit3/docs/libfunctions/_ClipBoard_SetViewer.htm Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now