<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: How do I know if a M4L function call or command has completed?</title>
		<atom:link href="http://cycling74.com/forums/topic/how-do-i-know-if-a-m4l-function-call-or-command-has-completed/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/how-do-i-know-if-a-m4l-function-call-or-command-has-completed/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 18:54:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/how-do-i-know-if-a-m4l-function-call-or-command-has-completed/#post-39764</guid>
					<title><![CDATA[How do I know if a M4L function call or command has completed?]]></title>
					<link>http://cycling74.com/forums/topic/how-do-i-know-if-a-m4l-function-call-or-command-has-completed/#post-39764</link>
					<pubDate>Sat, 30 Jun 2012 22:37:06 +0000</pubDate>
					<dc:creator>basvlk</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all,<br />
I need a &#8216;delete clip&#8217; function which ofcourse doesn&#8217;t exist. I use the shell object to send the &#8216;delete&#8217; key to application live &#8211; which works well but I must be 100% that in LIVE there is indeed just a clip selected before I send the &#8216;delete&#8217; key. (For example if a track was selected in Live, and i sent the delete key, it would all end in tears and unimpressed audiences)</p>
<p>So I do some checks before I send the delete key command, in Max for Live. This is what it does:<br />
1) Checks that a clip is selected (by verifying the &#8216;detail_clip&#8217; Id is not &#8220;Id 0&#8243;)<br />
2) focus the view on &#8216;session&#8217; (by calling a function)<br />
3) They I wait (currently 300ms)  &#8211; but I want to get rid of this step</p>
<p>Next send the delete key.</p>
<p>I want to be 1000% sure that the right view is in focus, and just a clip selected. So now I just give it a lot of time and hope it&#8217;s enough for the execution of the commands. But much rather I&#8217;d have the feedback from Live &#8216;yes.. this action has been executed&#8217; so I can make the whole delete function a lot faster.[</p>
<p>is there a way to know when the function has been executed so I can proceed??</p>
<p>hope this makes sense!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

