Jump to content

can some help me with this script - (Locked)


Go to solution Solved by argumentum,

Recommended Posts

Posted

i want to make a script that when i click my middle button , it sends mouseclick left to this 985 284 coordinate  and send E and send R
im just new to autoit

_lsPressed (04)
mouseclick($left,985,284,1.0) thats how far my code is and its not working properly

any help plss thank u


 

  • Solution
Posted
#include <Misc.au3>

HotKeySet("{ESC}", "Terminate") ; just in case you want to exit this way
Func Terminate()
    Exit
EndFunc   ;==>Terminate

Exit Example()
Func Example()
    Local $iX = 985, $iY = 284
    While Sleep(100) ; otherwise the CPU is going nuts
        If _IsPressed("04") Then  ; 04 Middle mouse button (three-button mouse)
            Do
                Sleep(100) ; wait intill is released
            Until Not _IsPressed("04")
            MouseMove($iX, $iY)
            ToolTip("..and here we are on " & $iX & " / " & $iY & " at " & _
                    @HOUR & ":" & @MIN & ":" & @SEC & @LF & "Press ESC to exit this demo.")
            AdlibRegister(ToolTipOff, 1000) ; to show you that we're done
            ; but you do your thing here
        EndIf
    WEnd
EndFunc   ;==>Example

Func ToolTipOff()
    AdlibUnRegister(ToolTipOff)
    ToolTip("")
EndFunc   ;==>ToolTipOff

..this should get you started

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
56 minutes ago, argumentum said:
#include <Misc.au3>

HotKeySet("{ESC}", "Terminate") ; just in case you want to exit this way
Func Terminate()
    Exit
EndFunc   ;==>Terminate

Exit Example()
Func Example()
    Local $iX = 985, $iY = 284
    While Sleep(100) ; otherwise the CPU is going nuts
        If _IsPressed("04") Then  ; 04 Middle mouse button (three-button mouse)
            Do
                Sleep(100) ; wait intill is released
            Until Not _IsPressed("04")
            MouseMove($iX, $iY)
            ToolTip("..and here we are on " & $iX & " / " & $iY & " at " & _
                    @HOUR & ":" & @MIN & ":" & @SEC & @LF & "Press ESC to exit this demo.")
            AdlibRegister(ToolTipOff, 1000) ; to show you that we're done
            ; but you do your thing here
        EndIf
    WEnd
EndFunc   ;==>Example

Func ToolTipOff()
    AdlibUnRegister(ToolTipOff)
    ToolTip("")
EndFunc   ;==>ToolTipOff

..this should get you started

how can i able to work it on my activate windows

how  to use it on the active windows im currently use at

 

  • Developers
Posted
26 minutes ago, hitter said:

how can i able to work it on my activate windows

how  to use it on the active windows im currently use at

So, start with explaining what you need this for before we continue, please.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
21 minutes ago, Jos said:

So, start with explaining what you need this for before we continue, please.

@Jos when i press the middle button, it zoom in of the current function of the middle button inside my game 
i dont know whats wrong , could u help pls thanks

 

 

  • Developers
Posted

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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