Macros: Autohotkey Superthread

Questions and advice for new players

Moderators: Forum Moderators, Server Moderators

Forum rules
Newbie Forum is a moderated OOC forum.

Inflammatory bullshit, thread de-railing, or any other disruptive posts may result in punitive action.
User avatar
Don_Collin
keep your distance i'm a carrier
Posts: 149.0
Joined: June 19th, 2009, 10:37 pm

Re: Macros: Autohotkey Superthread

Post by Don_Collin »

Thanks Juke and others. The script ((/mget and /mdeliver)) makes mat running so much faster. I also figured out how to put a ((/me)) in it.
[Sean_Dice]: /me unzipz Sauls pants.[Sean_Dice]: /me takes ahold of Sauls great big penis.
[Saul_Silver]: They call me big bob.[Sean_Dice]: /me deepthroats it.
[Sean_Dice]: Augh, augh, augh, augh, augh.[Saul_Silver]: you give shitty head. stop. now.
[Sean_Dice]: ok sorry.
User avatar
Tyrone_Phillips
Abuses Ads for Free
Posts: 650.0
Joined: August 28th, 2009, 6:45 pm
Game Name(s): Tyrone_Phillips
Location: Boulder, Colorado (USA)

Re: Macros: Autohotkey Superthread

Post by Tyrone_Phillips »

I followed the guide to anti-spam on AHK, but it just failed me....heres my code

Code: Select all

Numpad0:: SendInput t/usepot{Enter}
return
Any idea why It did not work?
And could i please get the warning removed, i followed the gude (just adding return)
Image

"[1/4/13] * @RPTV (~[email protected]) Quit (Quit: sorry bro mom has to check email)"
Jim Kader
Posts: 144.0
Joined: September 10th, 2009, 9:27 am
Game Name(s): Jim_Kader

Re: Macros: Autohotkey Superthread

Post by Jim Kader »

tyrone_phillips wrote:I followed the guide to anti-spam on AHK, but it just failed me....heres my code

Code: Select all

Numpad0:: SendInput t/usepot{Enter}
return
Any idea why It did not work?
And could i please get the warning removed, i followed the gude (just adding return)
I don't use this stuff atm, but I see there's no sort of sleep or wait command in there.
.: Jim 'Silver' Kader // Director of Skydagger Firm :.
.: Info // Advertisement // Application // Media
:.
Image
User avatar
Tyrone_Phillips
Abuses Ads for Free
Posts: 650.0
Joined: August 28th, 2009, 6:45 pm
Game Name(s): Tyrone_Phillips
Location: Boulder, Colorado (USA)

Re: Macros: Autohotkey Superthread

Post by Tyrone_Phillips »

There is......
sleep (insert #of MS here)
Image

"[1/4/13] * @RPTV (~[email protected]) Quit (Quit: sorry bro mom has to check email)"
WISE_SHITOWL
I just can't stop posting worthless shit!
Posts: 275.0
Joined: April 15th, 2009, 8:24 am
Location: Sweden: In a room somewhere

Re: Macros: Autohotkey Superthread

Post by WISE_SHITOWL »

Code: Select all

Numpad9::
SendInput t/me winks {Enter}
sleep 500
SendInput t/me unzips his pants{Enter}
sleep 500
return
This is how I set my binds up,if that was what you needed help with.. :P
very good grammer.[/quote]
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: Macros: Autohotkey Superthread

Post by John_Pendergast »

Typical you. :D
John Pendergast
WISE_SHITOWL
I just can't stop posting worthless shit!
Posts: 275.0
Joined: April 15th, 2009, 8:24 am
Location: Sweden: In a room somewhere

Re: Macros: Autohotkey Superthread

Post by WISE_SHITOWL »

Hey, I'd need some help with my AHK..

As I'm using the Ahk which was used in the Op's post, I can't figure out what I should type for setting the '' Backward key '' on the mouse to like the tazer command.

Code: Select all

??????::
Send t/tazer{Enter}
sleep 200
return
very good grammer.[/quote]
John_Woody
super kawaii ^_^!!!!!!!!
Posts: 197.0
Joined: April 22nd, 2008, 7:56 pm
Game Name(s): John_Woody
Location: Germany

Re: Macros: Autohotkey Superthread

Post by John_Woody »

Double click the ahk tray icon. Then go to view, then click "Key history and script info". Next you press that "Backward key" a few times, then hit f5 to refresh, then you should be able to see what you gotta put into your script
WISE_SHITOWL
I just can't stop posting worthless shit!
Posts: 275.0
Joined: April 15th, 2009, 8:24 am
Location: Sweden: In a room somewhere

Re: Macros: Autohotkey Superthread

Post by WISE_SHITOWL »

Thanks I found out that it was '' XButton1 '' or '' XButton2 ''.

So if any cop have this kind of mouse, with these kind of keys you could use something like this;

Code: Select all

XButton1::
SendInput t/tazer{Enter}
SendInput t/me makes a tazer gun sound while shooting his tazer at the suspect/SAS{Enter}
Sleep 200
return
very good grammer.[/quote]
Izmael
Posts: 54.0
Joined: October 2nd, 2008, 5:48 am
Game Name(s): JP_Mack John_McCloud
Location: Czech republic
Contact:

Re: Macros: AHK Superthread - Random

Post by Izmael »

-A kind of random:
Numpad2::

if (scrach = "1")
{
Sendinput t/piss{enter}t/me Pissing out all his cash.{enter}
sleep 1000

}
if (scrach = "2")
{
Sendinput t/Dance 4{enter}t/me Dancing like a bitch.{enter}
sleep 1000

}
if (scrach = "3")
{
Sendinput t/Smoke 1{enter}t/me Light's up the blunt and smokes out his brain.{enter}
sleep 1000

}
Random, scrach, 1, 3

return


This script will make shortcuts on numpad2 and everytime randomly choose one of the options,just copy this-paste in your ahk script and edit how you need ..

-You can also edit amounth of randoms,just copy commands lines below and paste them more times under them selfs and edit "X" to 1,2,3,4,5.....

if (scrach = "X")
{
Sendinput t/Fucku{enter}t/s Son of a bitch{enter}
sleep 1000
}

-just dont forget edit line "random, scrach,1 , Y " where "Y" says how much randoms will be used
i'm using em for /mget /mdeliver or randomly shouting shits on drivers,enemies etc.

Have funn :o)
Ron
Posts: 687.0
Joined: March 29th, 2009, 11:52 am

Re: Macros: Autohotkey Superthread

Post by Ron »

Do you want to hold down a key without even holding it down?
Well here's a solution, simple work of AHK.

Code: Select all

F12::
   send {F12 down}
   sleep 2000
   send {F12 up}
return
You can ofcourse remove that sleep if you want, and put it like this.

Code: Select all

F12::
   send {F12 down}
return

F11::
   send {F12 up}
return
Enjoy
spurt of splooge to the eye
Angelo Giovanni
Posts: 67.0
Joined: July 8th, 2009, 4:39 pm

Re: Macros: Autohotkey Superthread

Post by Angelo Giovanni »

Kaze wrote:Here is a hotkey that toggles the HUD on or off with F10 so you don't have to hold it down for screens or whatever.

Code: Select all

*F10::
if HiddenStuff <> 1
{
    SendInput {F10 down}
    HiddenStuff = 1
}
else
{
    SendInput {F10 up}
    HiddenStuff = 0
}
return
Ron_Jakobs wrote:Do you want to hold down a key without even holding it down?
Well here's a solution, simple work of AHK.

Code: Select all

F12::
   send {F12 down}
   sleep 2000
   send {F12 up}
return
You can ofcourse remove that sleep if you want, and put it like this.

Code: Select all

F12::
   send {F12 down}
return

F11::
   send {F12 up}
return
Enjoy
:neck:
Image
Cos' thats the way the cookie crumbles
Okay now, bye bye then!
John_Pendergast
Posts: 693.0
Joined: March 28th, 2009, 11:50 pm
Location: Hungary

Re: Macros: Autohotkey Superthread

Post by John_Pendergast »

Anyone interested in that?



Erhm... anyone else?


OK, looks like it was totally unnecessary to make that post after 20+ days of delay
John Pendergast
John Torino
Posts: 82.0
Joined: September 7th, 2009, 12:59 pm

Re: Macros: Autohotkey Superthread

Post by John Torino »

Won't work at all with Windows 7 64-bit.

EDIT: Got it to work..
I apologize.
Antwuan_Dixon
Posts: 181.0
Joined: August 23rd, 2009, 10:47 am

Re: Macros: Autohotkey Superthread

Post by Antwuan_Dixon »

yo,

i am not so smart with this stuff, but i'm trying to make my script.
and i got this for some rp thing:

Code: Select all

!3::
sendinput t/me breaks window{enter}
sendinput t/robman{enter}
sleep 1000
sendinput Q
return

you see the last ''sendinput Q'' i want the program to automaticly press the Q button so the animation will stop.
but it's not stopping, anyone who knows how i can fix this?
Jeremy_Clarckson
Posts: 261.0
Joined: January 6th, 2009, 11:08 am
Game Name(s): Jeremy_Clarkson
Contact:

Re: Macros: Autohotkey Superthread

Post by Jeremy_Clarckson »

Do it like this

Code: Select all

!3::
sendinput t/me breaks window{enter}
sendinput t/robman{enter}
sleep 1000
sendinput t/stopani{enter}
return
Image
Antwuan_Dixon
Posts: 181.0
Joined: August 23rd, 2009, 10:47 am

Re: Macros: Autohotkey Superthread

Post by Antwuan_Dixon »

yea i tried that one too, but the textmessage ''press q to stop animation'' stays on my screen, so that's why i want to do it with the Q button.
Jeremy_Clarckson
Posts: 261.0
Joined: January 6th, 2009, 11:08 am
Game Name(s): Jeremy_Clarkson
Contact:

Re: Macros: Autohotkey Superthread

Post by Jeremy_Clarckson »

I'm not sure about this, but why not change the whole line with an {enter} or {space}, usually those stop the anim. Try that maybe?
Image
Post Reply