SA-MP Forums Archive
AutoHotKeys - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: AutoHotKeys (/showthread.php?tid=549729)



AutoHotKeys - TheSnaKe - 08.12.2014

Hello there, am using Autohotkeys but it's not working, i have no idea why, well here is my code.

Код:
Код:
Numpad1::
SendInput t/me laughs. {enter}
return

Numpad2::
SendInput t/me laughs slightly {enter}
SendInput t/do Sweat would drip off of Terry's head {enter}
return

Numpad3::
SendInput t/me laughs slightly changing his vision from the man and truck. {enter}
sleep 1000
SendInput t/do The truck would begin to drive at Steve and he would notice. {enter}
return
Well, how can i use them in game? Do i have TO keep the .txt open while am in game?


Re: AutoHotKeys - Zeel - 08.12.2014

Well, better use some keylogger shits, rather than this.


Re: AutoHotKeys - Aerotactics - 08.12.2014

Top of your script:

Quote:

#IfWinActive, GTA:SA:MP

Save the file as <filename>.ahk

If you have AHK installed to your computer, it should create a new file.

Double click the new file, try the script in game.

If it works, congrats.

To make changes, right-click the new file > edit script.

Then after editing, save.

Double-click the file again, and select "yes" to replace current process.

Rep would be appreciated.


Re: AutoHotKeys - TheSnaKe - 08.12.2014

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
Top of your script:



Save the file as <filename>.ahk

If you have AHK installed to your computer, it should create a new file.

Double click the new file, try the script in game.

If it works, congrats.

To make changes, right-click the new file > edit script.

Then after editing, save.

Double-click the file again, and select "yes" to replace current process.

Rep would be appreciated.
Thank you, it's working, +rep


Re: AutoHotKeys - NGGMars - 08.12.2014

Oops, Great.

I dont know about autohotkeys, i really searched a lot for such a hotkey application. By this topic, i got idea about this application. Also thanks to aerotatics for the solution.


Respuesta: AutoHotKeys - kirk - 08.12.2014

Quote:
Originally Posted by TheSnaKe
Посмотреть сообщение
Hello there, am using Autohotkeys but it's not working, i have no idea why, well here is my code.

Well, how can i use them in game? Do i have TO keep the .txt open while am in game?
Right click on the autohotkey icon to reload or something like that option.


Re: AutoHotKeys - KingHual - 08.12.2014

you could've at least spelled the program's name properly