I need help scripting an AHK

hyllari

Member
Joined
Nov 29, 2021
Messages
6
Reaction score
0
Location
Argentina
Hola tios.
Quería saber si hay alguna forma de que una macro no se dispare al escribir en el chat de SAMP.
Para que os

hagáis una idea de lo que estoy hablando, os dejo este ejemplo de macro: #IfWinActive GTA: SA: MP

Q ::
{
Enviar, {q abajo}
dormir 5
Enviar {q arriba}
dormir 5
Enviar, {c abajo}
dormir 5
Enviar {c arriba}
dormir 5
Enviar, {e abajo}
dormir 5
Enviar, {e arriba}
dormir 5
Enviar , {q abajo}
dormir 5
Enviar, {q arriba}
dormir 5
}
regresar


Necesito saber si hay alguna manera de que al presionar la Q al escribir en el chat no se active la macro y automáticamente escriba QCEQ

perdón por mi inglés
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
to check if the chat is open u need to read internal game stuff (in memory).
to do this easily u can change this script to a cleo, or use SAMP UDF to read game memory in auto-hot-key (but if ur samp version isn't R1 you'll need to update the offsets..)
 

KeyCap

Member
Joined
Nov 2, 2021
Messages
16
Reaction score
0
Location
Germany
I can help you; copy the following toggle plus the code:

F2::
Hotkey, e, toggle
return

#IfWinActive GTA:SA:MP

E::
{
Send, {q down}
sleep 5
Send {q up}
sleep 5
Send, {c down}
sleep 5
Send {c up}
sleep 5
Send, {e down}
sleep 5
Send, {e up}
sleep 5
Send, {q down}
sleep 5
Send, {q up}
sleep 5
}
return

Remember to press F2 which will deactivate the script and you will be able to type normally. If you don't like using F2 you can change it by editing the script.
 
Last edited:

hyllari

Member
Joined
Nov 29, 2021
Messages
6
Reaction score
0
Location
Argentina
[QUOTE = "Saam, publicación: 133883, miembro: 79139"] prueba esto [/ QUOTE]
no funciona :( o tal vez estoy haciendo algo mal
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
[QUOTE = "Saam, publicación: 133883, miembro: 79139"] prueba esto [/ QUOTE]
no funciona o tal vez estoy haciendo algo mal
you need to compile it with x86 arch...
but if you can't understand the forum rules, you'll hardly be able to do this by yourself.
why don't you use a cleo script?
 
Top