Jump to content

MouseClick


Recommended Posts

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

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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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) :mellow: don`t forget to add some exit hotkey button before runing script :)

or test on in paint if its easyer for you ^^

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

OS tupe? more info about what are you trying to automate?

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

>"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 by OneLastWish
Link to comment
Share on other sites

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

no problem, happend to me 100 times :/

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...