Problem with AutoHotKey.

kool

Well-Known Member
Joined
Jun 4, 2016
Messages
90
Likes
0
Points
6
5
#1
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
Likes
0
Points
56
#2
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.
 
OP
OP
kool

kool

Well-Known Member
Joined
Jun 4, 2016
Messages
90
Likes
0
Points
6
5
#3
Still doesn't work ?

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