jamesjimartin Posted August 8, 2012 Share Posted August 8, 2012 (edited) I've had a look in the forums but I cant seem to solve this issue that I'm having.... Is there a way to send mouseclicks to a VM running on your machine. I've been using Autoit in a VirtualBox Win 7 machine on OSX and no joy. I've also tested on a Windows 7 Machine with VMware Player. Any hints or tips? Thanks guys. EDIT: Just to clarify. I have a script that I want to run solely in a VM and provide mouseclicks in the VM only so no interaction at all with the host machine Edited August 8, 2012 by jamesjimartin Link to comment Share on other sites More sharing options...
bogQ Posted August 8, 2012 Share Posted August 8, 2012 (edited) as far as i know autoit inside Virtual PC dont have problems with XP as its OS. Don't know about win 7 version or any version on VMwareedit: just quick note that Virtual PC is name of program http://www.microsoft.com/windows/virtual-pc/support/virtual-pc-2007.aspx so that i don't get confusedif your using win7 as primary OS then please read http://www.microsoft.com/windows/virtual-pc/download.aspx but i don't think there will be any problems of installing old Virtual PC 2007 on win 7 and running XP on it. Edited August 8, 2012 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
jamesjimartin Posted August 8, 2012 Author Share Posted August 8, 2012 I'll try Installing XP tonight as the Virtual Machine OS and see if that works okay. Will get back with more details later. Link to comment Share on other sites More sharing options...
water Posted August 8, 2012 Share Posted August 8, 2012 (edited) I'm running Windows 7 in a VirtualBox on Ubuntu. The following script shows the correct result even if the mouse isn't controlled by the VM. MouseMove(10, 100) MsgBox(0, "Test 1: Mouse position", "x: " & MouseGetPos(0) & @CRLF & "y: " & MouseGetPos(1)) MouseMove(700, 700, 0) MsgBox(0, "Test 2: Mouse position", "x: " & MouseGetPos(0) & @CRLF & "y: " & MouseGetPos(1)) When using VirtualBox you can specify if the keyboard and mouse are "captured". For the mouse you have to activate "Mouse integration" and the mouse will be moved. Edited August 8, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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