Page 3 of 3

Re: Macros: Autohotkey Superthread

Posted: August 24th, 2009, 9:23 am
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.

Re: Macros: Autohotkey Superthread

Posted: October 11th, 2009, 2:49 pm
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)

Re: Macros: Autohotkey Superthread

Posted: October 11th, 2009, 3:27 pm
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.

Re: Macros: Autohotkey Superthread

Posted: October 11th, 2009, 4:00 pm
by Tyrone_Phillips
There is......
sleep (insert #of MS here)

Re: Macros: Autohotkey Superthread

Posted: January 24th, 2010, 8:27 am
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

Re: Macros: Autohotkey Superthread

Posted: January 24th, 2010, 8:44 am
by John_Pendergast
Typical you. :D

Re: Macros: Autohotkey Superthread

Posted: February 1st, 2010, 10:00 am
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

Re: Macros: Autohotkey Superthread

Posted: February 1st, 2010, 11:10 am
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

Re: Macros: Autohotkey Superthread

Posted: February 1st, 2010, 12:05 pm
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

Re: Macros: AHK Superthread - Random

Posted: February 15th, 2010, 5:39 am
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)

Re: Macros: Autohotkey Superthread

Posted: May 14th, 2010, 5:07 pm
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

Re: Macros: Autohotkey Superthread

Posted: June 6th, 2010, 5:01 am
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:

Re: Macros: Autohotkey Superthread

Posted: June 6th, 2010, 9:24 am
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

Re: Macros: Autohotkey Superthread

Posted: June 10th, 2010, 6:23 am
by John Torino
Won't work at all with Windows 7 64-bit.

EDIT: Got it to work..

Re: Macros: Autohotkey Superthread

Posted: July 4th, 2010, 7:00 am
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?

Re: Macros: Autohotkey Superthread

Posted: July 4th, 2010, 7:17 am
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

Re: Macros: Autohotkey Superthread

Posted: July 4th, 2010, 7:21 am
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.

Re: Macros: Autohotkey Superthread

Posted: July 4th, 2010, 7:46 am
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?