Sign in to follow this  
Followers 0
boji

Clipget() Buffer

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Sweet, thank you.

Share this post


Link to post
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
Sign in to follow this  
Followers 0