Jump to content

Clipget() Buffer


Recommended Posts

Func send_copy()
    clipput("")
    $getclip = ""
    While $getclip = ""
        Send("{CTRLDOWN}c{CTRLUP}")
        While $getclip = ""
           $getclip = ClipGet()
           Sleep(10)
           Exitloop(100)
        WEnd
    WEnd
EndFunc

Any suggestions on a better/smarter/more efficent way to buffer ClipGet() calls? Thank you for any response you may have.

Oh and one other thing: why is

_ClipBoard_Empty() superior to clipput(""). Thanks!

Link to comment
Share on other sites

Having trouble getting Exitloop to cycle with the [level] option

Perhaps i dont understand how it works?

I imagine it to work like this:

func stuf()

While Stuf

Stuf aint happing

sleep(10)

Exitloop(10)

Wend

EndFunc

(Stuff was tried 10 times and took ~ 100ms to complete loop)

Edited by boji
Link to comment
Share on other sites

The level parameter is to escape out of nested loops. See this example:

While 1
    While 1
        While 1
            While 1
                ExitLoop 4
            WEnd
            ConsoleWrite("I will not print.")
        WEnd
        ConsoleWrite("I will not print.")
    WEnd
    ConsoleWrite("I will not print.")
WEnd

Broken link? PM me and I'll send you the file!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...