• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - Need an Auto Key Pusher or mouse clicker

mq2rulze

Member
Joined
Feb 18, 2011
RedCents
69¢
I need to go AFK while I puch the letter "Q" every 9 seconds. How can I do this?

As an alternative, a left click of the mouse every 9 seconds will work also.


Auto click and key push programs on the internet don't work... no idea why... but EQ ignores them.


Please help and TYVM!!!
 
It will end the currently running macro.

You can only have one macro running at a time.

Macros can be made to do slightly more complicated things(ahem KISS :)) but neos example is a great start to macro writing.
 
Here is a slightly more complex example of a macro:

you can specify the type of key to press and delay and how long to keep pressing
for example /presskey q 9 3600 would press q every 9 seconds for an hour.

Rich (BB code):
| presskey.mac by playj 2015
| presses specific key for some time
| usage /presskey key timeinseconds ex. /presskey Q 5 600 will press Q every 5 seconds for 10 minutes
| defaults are key 1, delay 5seconds, duration 1 hour
Sub Main

/declare MyKey string     outer 1
/declare MyDelay int outer 50
/declare MyTimer timer outer 36000

|still needs a check if first parameter is empty
/varset MyKey ${Param0}
/if (${Param1}) /varcalc MyDelay ${Param1}*10
/if (${Param2}) /varcalc MyTimer ${Param2}*10

/echo going to press ${MyKey} every ${Param1} seconds for ${Param2} seconds
:Loop
	/keypress ${MyKey}
	/delay ${MyDelay}
	/if (${MyTimer} == 0) /end
/goto :Loop

/return

Some notes about this code: it could use a check for an empty string for first parameter, otherwise you are required to enter the key that you need to press, ie /presskey keyname is presently required .
I could never get around for finding a check for empty string in MQ.

Also, Timers are usually used with Events and DoEvents but that is slightly more complicated. http://www.macroquest2.com/wiki/index.php/Custom_Events See Timer Events
 
Tinytask can work, very simple macro program. 3rd party so use at your own risk. It can record a period of time of keyboard/mouse movements and clicks and play them back in one loop, a specific amount of loops, or infinitely, and those recorded tasks can be saved and used again some other day. I used to use it for spell casting and FD. However I would say if there is a solution through MQ2, then use that since it is a more embedded process.
 
I know this is an old-ish thread... but I wanted to use this code and clean it up a bit:

Rich (BB code):
| presskey.mac by playj 2015
| Minor data validation and goto removal - 2016 - Incognito
| presses specific key for some time
| usage /presskey key timeinseconds ex. /presskey Q 5 600 will press Q every 5 seconds for 10 minutes
| defaults are key 1, delay 5 seconds, duration 1 hour
| Incognito Note - If using this to skillup a skill managed by MQ2Melee (i.e. Feign Death) MQ2Melee will intercept
| execution and return to evaluate the current iteration of the while loop. In the case of FD, it will auto-stand 
| on FD failure and rentry will display time left on the timer by returning to execute the echo cmd, the line
| before the while loop. Good to know so you can plan ahead and see where re-entry occurs.

Sub Main

/declare MyKey string outer 1
/declare MyDelay int outer 50
/declare MyTimer timer outer 36000
/declare MacTime int outer 

	/if (${Defined[Param0]}) /varset MyKey ${Param0}
	/if (${Defined[Param1]}) /varcalc MyDelay ${Param1}*10
	/if (${Defined[Param2]}) /varcalc MyTimer ${Param2}*10
	/varset MacTime ${Math.Calc[${MyTimer}\10]}

	/if (!${Defined[Param0]} || !${Defined[Param1]} || !${Defined[Param2]}) {
		/echo Using one of more default parameters
		/echo To avoid defaults use Format: /mac presskey Key-to-Press Pause-in-Seconds Mac-Duration-Seconds 
	}

	/echo Going to press ${MyKey} every ${Math.Calc[${MyDelay}\10]} seconds for ${Math.Calc[${MyTimer}\10]} seconds

	/while (${MyTimer} != 0) {
		/keypress ${MyKey}
		/delay ${MyDelay}
	}
	/echo Mac has run for ${MacTime} seconds

/return
 
I recently had to go back and look for something that would automatically keypress. It's fun when you're used to running/editing these complex macros and you have to go back to something like this!
 
Request - Need an Auto Key Pusher or mouse clicker

Users who are viewing this thread

Back
Top
Cart