p00pies Posted January 20, 2010 Share Posted January 20, 2010 this is what I'm attempting and I dont know why it will not work. Func moving() MouseMove(123, 456, 10) Sleep(2000) MouseClick("Left") Endfunc The script will run but the mouse will not move or click on anything. Any assistance or guideance will be helpfu Thank You Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2010 Share Posted January 20, 2010 You forgot one vital thing. AutoIt will not just execute whats in moving() unless you tell it to. moving () Func moving() MouseMove(123, 456, 10) Sleep(2000) MouseClick("Left") EndFunc ;==>moving Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
p00pies Posted January 20, 2010 Author Share Posted January 20, 2010 Ive just tried what you said and it still does not work. Below is all that I have in the script and all Im trying to do is get it to click on my start button. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.2.0 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here Moving() Func Moving() MouseMove(50, 785, 10) Sleep(2000) MouseClick("Left") Sleep(70000) EndFunc ;==>Moving Link to comment Share on other sites More sharing options...
p00pies Posted January 20, 2010 Author Share Posted January 20, 2010 My bad it finally worked and thats because I noiced that I had 4 other instances of the sae script running. Thank you Brett 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