SendPlay {Click 200}is as fast as we'll get, but maybe someone else will point out something faster.

The definitive autofire thread!
Started by
nimda
, Mar 11 2011 02:46 AM
130 replies to this topic
I suspect:
#31
-
Posted 16 May 2011 - 03:24 AM

F12:: StartTime := A_TickCount Loop 200 { DllCall("mouse_event", "uint", 2, "int", 0, "int", 0) DllCall("mouse_event", "uint", 4, "int", 0, "int", 0) } ElapsedTime := A_TickCount - StartTime MsgBox %ElapsedTime% ReturnTry this.
#32
-
Posted 16 May 2011 - 01:39 PM

Both
SendPlay {Click 200}and
Loop 200 { DllCall("mouse_event", "uint", 2, "int", 0, "int", 0) DllCall("mouse_event", "uint", 4, "int", 0, "int", 0) }are so fast I wonder if Polarbear's game can keep up with them. :twisted:
#33
-
Posted 16 May 2011 - 04:16 PM

Thanks guys
Also just realised if you spam it in p2p games it makes everyone's game freeze lol.

#34
-
Posted 17 May 2011 - 08:17 PM

Hello.
I'm using this:
If I click LMB while holding down ctrl, alt or shift, it only sends a mousedown event, then hangs. It works fine otherwise. How do I fix it?
EDIT:
I figured that ctrl+click is different than normal click and made another shortcut for ^LButton. It works but it's kind of ugly. Any other ideas?
EDIT2:
I'm using version 1.0.48.03.
EDIT3:
I'm using this:
#SingleInstance #MaxThreadsPerHotkey 1 SendMode Input `::Suspend ~$LButton:: While GetKeyState("LButton", "P") { Click Sleep, 80 } return
If I click LMB while holding down ctrl, alt or shift, it only sends a mousedown event, then hangs. It works fine otherwise. How do I fix it?
EDIT:
I figured that ctrl+click is different than normal click and made another shortcut for ^LButton. It works but it's kind of ugly. Any other ideas?
EDIT2:
I'm using version 1.0.48.03.
EDIT3:
#SingleInstance #MaxThreadsPerHotkey 1 SendMode Input `::Suspend ~$LButton:: While GetKeyState("LButton", "P") { Click Sleep, 80 } return ~$^LButton:: While GetKeyState("LButton", "P") { Click Sleep, 80 } returnI can now crouch (holding ctrl) and start autofiring. Maybe the bug is only for my version.
#36
-
Posted 16 June 2011 - 02:54 AM

I cannot reproduce the bug. holding control while clicking works normally for me while running that script.
Edit: you changed some stuff.
Have a look at the * modifier on the hotkeys page.
Edit: you changed some stuff.
Have a look at the * modifier on the hotkeys page.
#37
-
Posted 16 June 2011 - 02:58 AM

Cheers, exactly what I needed. I made the shortcut ~$*LButton:: and it works perfectly now. Another issue I have is that GetKeyState doesn't seem to work all the time, i.e. I keep autofiring even if I don't have the button pressed, thus wasting ammo. It does stop with the next physical click though... Hm.I cannot reproduce the bug. holding control while clicking works normally for me while running that script.
Edit: you changed some stuff.
Have a look at the * modifier on the hotkeys page.
#38
-
Posted 16 June 2011 - 04:16 AM

Sounds like the game's fault... :?:
#39
-
Posted 16 June 2011 - 04:18 AM

Hello, thanks for this guide. It was very helpful for me, since I am complete AHK noob.
I have little annoying problem with "the self sender" macro.
So I have this simple script which I use while playing RIFT so my fingers will not drop dead when I turn 40. When I hold and keep Spacebar or F key pressed, this script emulates like I press and release those keys very fast, in other words autofire mode. The problem is, that sometimes those keys getting stuck in autofire mode even after I release those buttons. I need to press and release stuck key to stop autofiring. This happens not very often and so it's hard to reproduce. Sorry for my English, not my first language.
Here is the script which I use:
I have little annoying problem with "the self sender" macro.
So I have this simple script which I use while playing RIFT so my fingers will not drop dead when I turn 40. When I hold and keep Spacebar or F key pressed, this script emulates like I press and release those keys very fast, in other words autofire mode. The problem is, that sometimes those keys getting stuck in autofire mode even after I release those buttons. I need to press and release stuck key to stop autofiring. This happens not very often and so it's hard to reproduce. Sorry for my English, not my first language.
Here is the script which I use:
#NoEnv #UseHook SetTitleMatchMode, 3 #IfWinActive, RIFT SendMode Input ctrl & Shift::Return LWin::Return Space:: While GetKeyState("Space","p"){ Send {Space down} Sleep 100 Send {Space up} Sleep 100 } return f:: While GetKeyState("f","p"){ Send {f down} Sleep 100 Send {f up} Sleep 100 } return
#40
-
Posted 20 June 2011 - 03:55 PM

Hi,
I read all 3 pages of this post but i can't make this work yet
I would like to press down one time my MButton and make that in games it was like i keep pressing down it....
Then when i repress the MButton make that in game i stop pressing down it
Thanks a lot to all help me!
I read all 3 pages of this post but i can't make this work yet
I would like to press down one time my MButton and make that in games it was like i keep pressing down it....
Then when i repress the MButton make that in game i stop pressing down it
Thanks a lot to all help me!
#41
-
Posted 28 July 2011 - 05:22 PM

All you need is "The Toggle"
The Toggle: (Press once to start, again to stop, etc like the simple pause)
Code:toggle = 0 #MaxThreadsPerHotkey 2 F8:: Toggle := !Toggle While Toggle{ Click Send a sleep 100 } return
#42
-
Posted 28 July 2011 - 06:07 PM

Ok, thanks a lot!
Last question..
I would to make one click of my Right mouse button doing an instant double click of MButton
How can i do that?
thank again....
Last question..
I would to make one click of my Right mouse button doing an instant double click of MButton
How can i do that?
thank again....
#43
-
Posted 28 July 2011 - 06:48 PM

loop 2 Click Middle
#44
-
Posted 28 July 2011 - 06:56 PM

aboutscript ⋰ apps ⋱ scripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run
I expressed myself wrong
I would keep pressing Right Mouse Button and i would that script keep pressing "W" and click 2 times fast the Middle mouse button
Can you write the entire script please?
I'm a noob in scripting and i would be very grateful.
Thanks!
I would keep pressing Right Mouse Button and i would that script keep pressing "W" and click 2 times fast the Middle mouse button
Can you write the entire script please?
I'm a noob in scripting and i would be very grateful.
Thanks!
#45
-
Posted 28 July 2011 - 07:27 PM
