help variable
Posted: 16 Apr 2021, 20:46
when I write the name in the gui it doesn't work, it only works if I write directly in the code = x
Full code:
part that I think was wrong
please help me ![I'm so happy I could shoop a rainbow! :superhappy:](./images/smilies/superhappy.gif)
Full code:
Code: Select all
#Include <classMemory>
#SingleInstance,Force
#NoEnv
#WinActivateForce ; need to test it
#include gdip.ahk
SetTitleMatchMode, RegEx
#Warn All, Off ; #Warn eables warnings to assist with detecting common errors, while "all, off" makes them all disabled
#Persistent
pToken := Gdip_Startup()
SendMode InputThenPlay
global food
Gui Add, Edit, x72 y64 w71 h21 vnome1,
Gui Add, Edit, x72 y84 w71 h21 vnome2,
Gui Add, Edit, x72 y104 w71 h21 vnome3,
Gui Add, Edit, x72 y124 w71 h21 vnome4,
Gui +LastFound +AlwaysOnTop
Gui Show, w400 h200, Elder Bot - LOGar Maker V.1.1
4::
Random, rand4, 600000, 840000
Random, rand5, 100000, 300000
SetTimer afk, %rand4%
SetTimer, online, %rand5%
return
3::
Reload
return
2::
SetTimer casa, 500
Random, rand3, 70000, 600000
SetTimer, comer, %rand3%
return
casa:
Loop 11 ; Para criarmos 10 arrays
{
OFFSET_ATUAL := A_Index ; Salvamos o valor da iteração atual do loop externo para poder usá-lo dentro do loop interno abaixo.
Offset%OFFSET_ATUAL% := [0xC, 0xF4] ; Iniciamos com o modelo básico da array
Loop % A_Index ; E aí vamos fazer um loop pelo número da iteração atual
{
Offset%OFFSET_ATUAL%.InsertAt(1, 0x0) ; Para inserir tantos elementos 0x0 quanta for a iteração atual (por exemplo, na 5a iteração, inseriremos 5 elementos 0x0)
}
}
mem := new _ClassMemory("ahk_exe client_dx.exe")
if !isObject(mem)
msgbox failed to open a handle
namechar := mem.readString(mem.BaseAddress + 0x55AE84 , 15, utf-8)
Loop 11
{
ReadEOClient%A_Index% := mem.readString(mem.BaseAddress + 0x55B11C, 15, "utf-8", Offset%A_Index%*)
GuiControl,,char%A_Index%, % ReadEOClient%A_Index%
}
;~ monster%A_Index% := mem.WriteString(mem.BaseAddress + 0x55A11C, "novo", "UTF-8", Offset%A_Index%*)
loop,11
If (StrLen(ReadEOClient%A_Index%) > 2)
if ((ReadEOClient%A_Index% = "%name1%")
OR (ReadEOClient%A_Index% = "%name2%")
OR (ReadEOClient%A_Index% = "%name3%")
OR (ReadEOClient%A_Index% = "%name4%") )
{
}
else
{
WinSetTitle ,RetroCores, , Client
FormatTime, TimeString, T12, Time
GuiControl,,char12, %TimeString%
dormir()
Sleep,3000
Pause
}
return
desloger(){
loop,5
{
ControlSend,, {Ctrl Down}q{Ctrl Up},Client
}}
return
dormir(){
{
global client_id := "Client"
DllCall("Data\mousehook64.dll\RightClick", "AStr", client_id, "INT", 766 , "INT", 254 -25)
Sleep,300
}}
return
login(){
{
ControlSend,, {Enter},Client
Sleep, 2000
global client_id := "Client"
DllCall("Data\mousehook64.dll\LeftClick", "AStr", client_id, "INT", 284 , "INT", 348 -20)
Sleep,300
}}
return
comer(){
loop,1
{
global client_id := "Client"
DllCall("Data\mousehook64.dll\RightClick", "AStr", client_id, "INT", 1283 , "INT", 300)
Sleep,300
}}
return
afk:
loop,3
{
Random, var, 0, 4
afkl := mem.read(mem.BaseAddress + 0x55AE00, "int", 0x3C)
afk := mem.write(mem.BaseAddress + 0x55AE00, var, "int", 0x3C)
Sleep,500
afk := mem.write(mem.BaseAddress + 0x55AE00, afkl, "int", 0x3C)
Sleep,500
}
return
online:
If (StrLen(namechar) > 2)
{
}
else
{
login()
}
return
GuiClose:
ExitApp
return
part that I think was wrong
Code: Select all
loop,11
If (StrLen(ReadEOClient%A_Index%) > 2)
if ((ReadEOClient%A_Index% = "%name1%")
OR (ReadEOClient%A_Index% = "%name2%")
OR (ReadEOClient%A_Index% = "%name3%")
OR (ReadEOClient%A_Index% = "%name4%") )
![I'm so happy I could shoop a rainbow! :superhappy:](./images/smilies/superhappy.gif)