![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Hello Wizards, 
		
		
		
		
		
		
		
		
	
	How can I interact with vizinfo when using wiimote ? viz.FOREVER  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			You can use the following code to simulate a mouse press/release in windows: 
		
		
		
		
		
		
		
		
	
	Code: 
	import win32api import win32con #Simulate left mouse button pressed win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0,0) #Simulate left mouse button released win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0,0)  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Forgot to mention one important thing. You will also need to simulate mouse movement using the following code: 
		
		
		
		
		
		
		
		
	
	Code: 
	win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE,int(65535*x),int(65535*(1.0-y)),0)  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Yo !! Wizards !! 
		
		
		
		
		
		
		
		
	
	I simply cannot make that thing work... Are you sure it'll work inside a OpenGL rendered Window ? viz.FOREVER !! D.  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				Some piece of code...
			 
			
			
			Here's some codes: 
		
		
		
		
		
		
		
		
	
	Code: 
	def onTimer(num): global wm_pX global wm_pY global mess1 global mess2 global mess3 global crosshair if num == 0: wm_pX = wiimote.posIR[0] wm_pY = wiimote.posIR[1] crosshair.setPosition(wm_pX, wm_pY) win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE, int(wm_pX * 1680), int((1-wm_pY) * 1050), 0) if num == 1: if wiimote.state == 16: win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, int(wm_pX * 1680), int((1-wm_pY) * 1050), 0) time.sleep(0.05)  | 
| 
		 
			 
			#6  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				Source Code
			 
			
			
			Hello Wizards, 
		
		
		
			It's me again... This problem is driving me loco... I've attached the source code to the message... viz.FOREVER !!! D.  | 
| 
		 
			 
			#7  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Yo !! 
		
		
		
		
		
		
		
		
	
	It's working now... The problem was with the mouse pointer... viz.FOREVER !!! D.  | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Sending sound to Wiimote ? | djdesmangles | Vizard | 1 | 07-31-2008 12:26 PM | 
| wiimote and sensor bar | masaki | Vizard | 1 | 03-06-2008 04:07 PM | 
| "Vizard Lite" graphic obscuring vizinfo pups | halley | Vizard | 0 | 05-30-2006 11:07 AM | 
| vizinfo in HMD mode | enkeli | Vizard | 8 | 03-01-2006 04:47 PM | 
| vizinfo | vadrian | Vizard | 1 | 11-05-2004 03:40 PM |