WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-14-2008, 08:12 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Just call the corresponding code when the wiimote button is pressed/released and you should now be able to interact with all GUI elements and other applications that are running on your system.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending sound to Wiimote ? djdesmangles Vizard 1 07-31-2008 11:26 AM
wiimote and sensor bar masaki Vizard 1 03-06-2008 03:07 PM
"Vizard Lite" graphic obscuring vizinfo pups halley Vizard 0 05-30-2006 10:07 AM
vizinfo in HMD mode enkeli Vizard 8 03-01-2006 03:47 PM
vizinfo vadrian Vizard 1 11-05-2004 02:40 PM


All times are GMT -7. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC