small script

Get help with using AutoHotkey and its commands and hotkeys
Mightykiller
Posts: 56
Joined: 09 Oct 2017, 13:34

small script

10 Nov 2019, 15:27

this script reads game memory for a value using RHCP memory lib.
and it only does action if the game window is active


now my problem is this i need the checkbox if enabled to wait for the value from the memory script to match the value in the "KickList" and then if game is not active it will activate it and does the action.


Code: Select all

Gui Add, Text,vslot1 x106 y113 w336 h23
Gui  Add, CheckBox, vBackground x103 y65 w250 h23, Kick detected users while in Background
Gui Show, w1000 h630, Project

IniRead,KickData,%A_ScriptDir%\Settings.ini,KickList
KickList = %KickData%


settimer, Data, -1
Data:
loop 
{
sleep 350
If Stop = 1
Break
else
{
if Stop = 0
base := TargetProcess.getModuleBaseAddress("Storm.dll")
slot1 := TargetProcess.readString(base + 0x00055538, 0, "utf-8", 0x118, 0x15C, 0x44,  0x1EC, 0x0)

GuiControl,,slot1,%slot1%

}

ifwinactive, ahk_exe game.exe
{
; Action
If slot1 in %KickList%
{
    sendinput {Tab}
    sendinput {BackSpace}
    sleep 100
    SendInput {Raw}!Kick 1  (%slot1% is on the ban list)
    SendInput {Enter}
    sleep 350
}
}
}
return

s::
Stop = 1
return

r::
Stop = 0
return

Return to “Ask For Help”

Who is online

Users browsing this forum: ben95, grumegargler, joefiesta, MannyKSoSo, micchanahk, toddhere and 115 guests