Problem with AutoHotKey.

kool

Active member
Joined
Jun 4, 2016
Messages
89
Reaction score
0
First time using AHK.I tryed to create basic script using SAMP UDF and AHK and it doesn't work.
Doesn't work IG...
Can somebody help ?

SCRIPT :

#IfWinActive gta_sa.exe

Sendmode input 
#UseHook
#NoEnv
#SingleInstance, force
#include SAMP.ahk

Numpad0::
; showDialog (Vagina, Pussy, Boobs, Lambo 1, Lambo 2)
showdialog (0, "Hello", "test123123")
return
 

Momo92

Active member
Joined
Aug 21, 2013
Messages
42
Reaction score
0
I would do it like this:
Code:
#NoEnv
#UseHook
#SingleInstance, Force
#Include SAMP.ahk

; // declare global vars here

return

#If WinActive("GTA:SA:MP") && !isInChat() && !isDialogOpen()
; // the following hotkeys will only be triggered if SA:MP is the active window and the chat/dialogs are not open

Numpad0::
	showDialog(0, "Caption", "Text`nLine2", "Ok", "Cancel")
return
Also make sure to download the latest version of the UDF, install the newest version of AHK_L and convert the script using ANSI 32-bit. Might be that you have to start the exe with admin rights.
 

kool

Active member
Joined
Jun 4, 2016
Messages
89
Reaction score
0
Still doesn't work ?

[img=512x512]http://i.imgur.com/2HdLYGm.png[/img]
 
Top