dttttttkkkkkkkkkk

Trying to make a rapid fire mouse

11 posts in this topic

I need a script that makes your mouse fire fast. I'm having a very hard time trying to make one myself. I need it to have a toggle off key such as the "Page Up" key, and only fire when the left mouse button is clicked. A toggle won't work for me. Does anyone have an existing script they use as of 2017? Thank you for your help! Just to clarify this needs to have a toggle switch and only be active when I press left mouse button.

Share this post


Link to post
Share on other sites



What have you tried so far? where are you having troubles?


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

I"m a big nub when it comes to PC and scripts. I have a format but it only does toggle and no switch key. Here is mine so far....

 

#include <Misc.au3>

$hDll = DllOpen("user32.dll")

MsgBox(0, "Info", 'Press "Left Click" key for rapid fire')

While 1
_IsPressed("01", $hDll)
            MouseClick("left")
            sleep(38)
     ;  Until _IsPressed("01", $hDll) = 1
    Sleep(100)
WEnd

Func OnAutoItExit()
    DllClose($hDll)
EndFunc

Share this post


Link to post
Share on other sites
#include <Misc.au3>
Global  $Active = 0
HotKeySet("{PGDN}", 'Off')
$hDll = DllOpen("user32.dll")

MsgBox(0, "Info", 'Press "Left Click" key for rapid fire')

While 1
If _IsPressed("01", $hDll) Then
    $Active = 1
    Do
            MouseClick("left")
            sleep(38)
    Until $Active = 0
EndIf
    Sleep(100)
WEnd

Func Off()
    $Active = 0
EndFunc

Func OnAutoItExit()
    DllClose($hDll)
EndFunc

Like this?


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

I got this error

*

AutoIt error

Line 19 (place in files)

If_Ispressed("01",$hDII)Then

If^error

Error: unknown function name.

*

Side note: I appreciate the help you're giving me

Share this post


Link to post
Share on other sites

put a space after the If

 


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

There's one space after the If and it still gives me the error message. 

Share this post


Link to post
Share on other sites

I've been trying to change the 19 line to start working but I can't figure it out. Do you have a second script that may work?

Share this post


Link to post
Share on other sites

I don't see why, it works here, did you paste it exactly as i posted? got the include?

#include <Misc.au3>


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

#10 ·  Posted

careca,

You report the thread as a possible gamebot - and yet offer considerable assistance without waiting for a response. Contradictory or what?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

43 minutes ago, Melba23 said:

careca,

You report the thread as a possible gamebot - and yet offer considerable assistance without waiting for a response. Contradictory or what?

M23

@carea, as we already discussed in PM: Either report when considered against our rules or assist the OP.
This is  valid for all members as the proper approach.

@dttttttkkkkkkkkkk, The likelyhood this is not to automate a game is pretty slim, so let me know in case I am wrong or else please read the forum rules before continuing posting in our forums. 

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.