I need your help in my script.
Im using several scripts of this one, (with different names ofcourse) to help me in a game.
So far, i used my keyboards keys to run/pause the scripts, but due to the number of scripts, i need to stop using them in order for scripts to work.
The only solution was to buy an additional keypad, and the starting keys to be from that keypad.
According to readme, the command which sends proper key from keypad is the AHI.SendKeyEvent(keyboardId, GetKeySC("a"), 1)
I have modified the script (the original script ive found it on internet after some search. i just modified a bit according to my needs) with this command.
While i have no errors, the only working key is the F7. It seems the command which sends the proper key from key pad is not working. Please helppppp.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent ;Interception hotkeys do not stop AHK from exiting, so use this
#include Lib\AutoHotInterception.ahk
#SingleInstance, Force
#MaxThreadsPerHotkey 9900
global AHI := new AutoHotInterception()
keyboardId := AHI.GetKeyboardId(0x0E8F, 0x0041)
Return ;<-- forced end of autoexecute section
F7::
WinActivate, gamename ahk_class triuiScreen
Return
AHI.SendKeyEvent(keyboardId, GetKeySC("71"), 1)
::
ENDRun := !ENDRun
If (!ENDRun)
Return
While (ENDRun)
{
WinActivate, ahk_class tooltips_class32
Sleep, 333
SetDefaultMouseSpeed, 8
WinActivate, gamename ahk_class triuiScreen
Sleep 30
SendEvent {Click 1213, 722, down}{click 1222, 906, up}
;Sleep 5000
Sleep, 7600
}
Return