OneLastWish Posted August 22, 2011 Share Posted August 22, 2011 Alright so I made this really simple script so I don't have to do it manually each time. HotKeySet ("{F1}","mousemovenow") Global $mouse = False While 1 Sleep (5) WEnd Func mousemovenow() $mouse = Not $mouse If $mouse = True Then Sleep (5) While 1 Sleep (650) MouseClick ("Left",656,421,1,1) Sleep (650) MouseClick ("Left",52,627,1,1) If $mouse = False Then ExitLoop EndIf WEnd EndIf EndFunc I have tested the script and it does not move my mouse, I tryed to insert a msgbox in the Func section and it displayed the message as it was suppose to do, but it does not move my mouse, I request help because I do not know how to fix this. Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 (edited) i tested the script and it do move the mouse and click. maby its the problem in a program your trying to automate... on notepad it works fine Edited August 22, 2011 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 I don't know how to run my script in a notepad, it doesn't make sense, the script is correct Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 (edited) you turn the script on in scite (f5 button), you open notepad, you hit F1 while notepad is maximized on your screen (F1 will start your func mousemovenow) don`t forget to add some exit hotkey button before runing script or test on in paint if its easyer for you ^^ Edited August 22, 2011 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 Doesn't seem to work for me :/ Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 OS tupe? more info about what are you trying to automate? 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 Running on Windows XP 32 bits, simply trying to move my mouse to location X, make it click and then go to location Y and make it click. Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 (edited) MouseClick ("Left",656,421,1,1) $data = MouseGetPos() ConsoleWrite("------------------------------------------"&@CRLF&@CRLF) ConsoleWrite("$data.x ="&$data[0]&" $data.y ="&$data[1]&@CRLF&@CRLF) ConsoleWrite("------------------------------------------"&@CRLF&@CRLF) run this code (only this code) in scite with F5, turn off any other programs extra programs that you turned on post here console output Edited August 22, 2011 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 C:\Documents and Settings\User\Bureaublad\test1.au3(6,65) : ERROR: syntax error ConsoleWrite("------------------------------------------"&@CRLF&@CRLF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Tibor\Bureaublad\test1.au3 - 1 error(s), 0 warning(s) this is what pops up. Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 you did not copy it correctly from heare, dont forget ) to put on the end of last line in code @CRLF&@CRLF) 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 (edited) >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\User\Bureaublad\test1.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>20:35:33 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0413 Keyboard:00020409 OS:WIN_XP/Service Pack 3 CPU:X86 OS:X86) >Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3 +>20:35:33 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\User\Bureaublad\test1.au3" ------------------------------------------ $data.x =485 $data.y =417 ------------------------------------------ +>20:35:33 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 1.919 there we go Edited August 22, 2011 by OneLastWish Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 r you shure you turned off anything that you did not need like some game or something similar? did you try restarting PC? 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...
OneLastWish Posted August 22, 2011 Author Share Posted August 22, 2011 Well now I feel kinda stupid, restarting my pc seem to do the trick, haha thanks for all the help Link to comment Share on other sites More sharing options...
bogQ Posted August 22, 2011 Share Posted August 22, 2011 no problem, happend to me 100 times :/ 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...
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