parameters: (self, initialize = False, timeout = 10)
docstring: Returns the skype window if one exists
docstring_summary: Returns the skype window if one exists
docstring_tokens: Returns the skype window if one exists
function: def discover_skype(self, initialize = False, timeout = 10):
  		"""Returns the skype window if one exists"""
  		self.win['skype'] = None
  		for prop in self.win['root'].list_properties():
  			if self.display.get_atom_name(prop) == "_SKYPE_INSTANCE":
  				fullprop = self.win['root'].get_full_property(prop, 0)
  				skypewinid = fullprop.value[0]
  				if self.debug: print "Info: Skype is running with id", skypewinid
  				self.win['skype'] = self.display.create_resource_object('window', skypewinid)
  		if (initialize and self.win['skype'] is not None):
  			if self.debug: print "Info: Initializing"
  			self.send("NAME " + self.appname)
  			#response = []
  			#while len([ x for x in response if x == 'OK' or x.startswith('ERROR 1')]) == 0:
  				#response = self.response_wait(10)
  			# We should wait long enough to let the user confirm the access request
  			response = self.response_wait(timeout)
  			if 'OK' in response:
  				if self.debug: print "Info: Initialized"
  				self.send('PROTOCOL ' + str(self.protocol_version))
  			else:
  				if self.debug: print "Info: Initialization Rejected"
  				self.win['skype'] = None
  		if not self.win['skype']:
  			raise StandardError('Initialization failed: Have you authorized ' + self.appname + ' to connect to Skype?')
  		else:
  			print 'Connected!'
function_tokens: def discover_skype ( self , initialize = False , timeout = 10 ) : self . win [ 'skype' ] = None for prop in self . win [ 'root' ] . list_properties ( ) : if self . display . get_atom_name ( prop ) == "_SKYPE_INSTANCE" : fullprop = self . win [ 'root' ] . get_full_property ( prop , 0 ) skypewinid = fullprop . value [ 0 ] if self . debug : print "Info: Skype is running with id" , skypewinid self . win [ 'skype' ] = self . display . create_resource_object ( 'window' , skypewinid ) if ( initialize and self . win [ 'skype' ] is not None ) : if self . debug : print "Info: Initializing" self . send ( "NAME " + self . appname ) #response = [] #while len([ x for x in response if x == 'OK' or x.startswith('ERROR 1')]) == 0: #response = self.response_wait(10) # We should wait long enough to let the user confirm the access request response = self . response_wait ( timeout ) if 'OK' in response : if self . debug : print "Info: Initialized" self . send ( 'PROTOCOL ' + str ( self . protocol_version ) ) else : if self . debug : print "Info: Initialization Rejected" self . win [ 'skype' ] = None if not self . win [ 'skype' ] : raise StandardError ( 'Initialization failed: Have you authorized ' + self . appname + ' to connect to Skype?' ) else : print 'Connected!'