hitter Posted July 13 Posted July 13 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 argumentum Posted July 13 Solution Posted July 13 #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 hitter 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Nine Posted July 13 Posted July 13 Please read forum rules, especially the part about game automation... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
hitter Posted July 13 Author Posted July 13 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 Jos Posted July 13 Developers Posted July 13 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.
hitter Posted July 13 Author Posted July 13 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 Jos Posted July 13 Developers Posted July 13 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.
Recommended Posts