Sign in to follow this  
Followers 0
MechanicalAnimal

Simple mouse and hotkey script query for first time user

3 posts in this topic

Hi all,

Firstly I'd like to say I am really liking the interface & support of autoIT so far, as I picked it up about an hour ago.

What I am looking for is a script to simply perform a series of mouse clicks (with delays), and map that to a secondary mouse button, to be used in a full-screen environment such as a game.

Searching the forums I've found:

which could've been useful but I received the following error

>Exit code: 1 Time: 0.229

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\windoze\Documents\My Games\scripts\scriptz.au3"  
C:\Users\windoze\Documents\My Games\scripts\scriptz.au3 (4) : ==> Cannot parse #include.:
#include GUIConstantsEx.au3
>Exit code: 1   Time: 0.229

Which seems to indicate it can't find this package to include.

The autoIT docs does not include the pointer for the relevant mouse button (should be called something like mouse button 4, or the one that goes "back" on the browser by default), so searching further I found the www.autoitscript.com/forum/topic/90492-hotkey-udf/ which states its ability to solve my issue by mapping more keys, but I would not know what to do with a UDF let alone incorporate this particular one for my simple query!

This is quite overwhelming for someone that has not dabbled in scripting before, especially as my function as described below is simple:

right/left click down

delay

right/left click up

delay

shift down

delay

shift up

etc., to be used for a game.

Can someone please write me the syntax required to perform such a task, or direct me to tutorials in which I could learn how to create that, complete with looping to a mapped hotkey.

Many thanks

Share this post


Link to post
Share on other sites



MechanicalAnimal,

to be used for a game

Welcome to the AutoIt forum. ;)

Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now and then you will understand why you will get no help and this thread will shortly be locked. :)

See you soon with a legitimate question I hope. :D

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

looks like they opened another "can of gamers" somewhere or maybe Beerman can come up with another theory that the Moon..... :)


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.
Sign in to follow this  
Followers 0