boji Posted July 15, 2009 Share Posted July 15, 2009 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 More sharing options...
boji Posted July 15, 2009 Author Share Posted July 15, 2009 (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 July 15, 2009 by boji Link to comment Share on other sites More sharing options...
monoceres Posted July 15, 2009 Share Posted July 15, 2009 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 More sharing options...
boji Posted July 16, 2009 Author Share Posted July 16, 2009 Sweet, thank you. Link to comment Share on other sites More sharing options...
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