Jump to content

X button does not work


muchki
 Share

Recommended Posts

At line 39 add the while loop in a separate function example:

;               use this for realtime testing
;               https://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm
;~ Start monitoring the clipboard on script start-up
_MonitorClipBoard()
Func _MonitorClipBoard()
    While 1
        Local $pingclip
        Local $origional
        Local $firstFourInClip = StringMid(ClipGet(), 1, 4)
        Local $http = "http"
        If $firstFourInClip = $http And $origional <> ClipGet() Then
            ExitLoop TrimItDown() ;~ Remember to exit the loop
        Else
            Sleep(200)
        EndIf
    WEnd
EndFunc

After GUIDelete() put the _MonitorClipBoard function example:

...
            Case $idButton_Exit
                Send("{Esc}")
                ExitLoop
        EndSwitch
    WEnd
    GUIDelete()
    _MonitorClipBoard()
EndFunc   ;==>TrimItDown

Hope that makes sense.

Edited by Subz
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...