this is a gf grinding bot that searches if ur in combat or not and depending on that it atacks. and i need help .lol
also
i made a picxelbased auto MP-HP- and summon hp, i want it to be memory based but have no clue on how to do so!
here is what i got so far
i want to controlsend the keys to the game when its inactive but it doesnt work!
in the functions the ones for attacks, it takes its time to go through every single one of the attacks, i want it to search if the monster is selected then attck,if its still alive attack,and if the monster is not selected end the func instead of reading the attacks that follows, confusing me...Quote:
WinWaitActive("Grand Fantasia")
Global $UnPaused
HotKeySet("{F12}", "TogglePause")
HotKeySet("{F11}", "Terminate")
;===================HOTKEYS======================= =========================
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
;==================ATTACKS======================== =========================
Func tabatk() ; NEED HELP WITH THIS HERE
Sleep(500)
Send("{TAB}")
Sleep(1000)
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 1
If Not @error Then
Send(3)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 2
If Not @error Then
Send(4)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;3
If Not @error Then
Send(2)
Sleep(1000)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1); 4
If Not @error Then
Send(5)
Sleep(8500)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;5
If Not @error Then
Send(4)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;6
If Not @error Then
Send(2)
Sleep(1000)
EndIf
Sleep(750)
EndFunc
Func no_tabatk()
Sleep(1000)
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 1
If Not @error Then
Send(3)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ; 2
If Not @error Then
Send(4)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;3
If Not @error Then
Send(2)
Sleep(1000)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1); 4
If Not @error Then
Send(5)
Sleep(8500)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;5
If Not @error Then
Send(4)
Sleep(1750)
EndIf
$coord = PixelSearch(639,14,729,26,0xFF0000,1) ;6
If Not @error Then
Send(2)
Sleep(1000)
EndIf
Sleep(750)
EndFunc
;====================MAINLOOP===================== =
while 1
$coord = PixelSearch(639,14,729,26,0xFF0000,1)
If Not @error Then
no_tabatk()
Else
$coord = PixelSearch(639,14,729,26,0xFF0000,1)
If @error Then
tabatk()
EndIf
EndIf
Send(7)
Sleep(1850)
WEnd
also
i made a picxelbased auto MP-HP- and summon hp, i want it to be memory based but have no clue on how to do so!
here is what i got so far
lol i think am asking for too much but one last thing, i swear its the last!! lolQuote:
Global $UnPaused
HotKeySet("{HOME}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
;=========Functions=============================== ==========
Func TogglePause()
$UnPaused = NOT $UnPaused
While $UnPaused
ToolTip("Sending...",0,0)
WEnd
EndFunc
Func Terminate()
Exit 0
EndFunc
;===============================CHECK============= ======================
While 1
$coord = PixelSearch(144,34,144,34,0xFFAEA5,1) ; hp value for
If @error Then
Send("{-}")
EndIf
$coord = PixelSearch(144,47,144,47,0xB5BEFF,1) ; mp value for
If @error Then
Send("{=}")
EndIf
$coord = PixelSearch(250,29,250,29,0x6B5844,1) ; hp value for summon/ lich, use skill
If Not @error Then ; if u dont need it delete this
Send("0")
EndIf
Sleep(1000)
WEnd
i want to controlsend the keys to the game when its inactive but it doesnt work!
&Quote:
;just a test
While 1
$handle = WinGetHandle("classname=DJO_CLASS", "")
If @error Then
MsgBox(4096, "Error", "Could not find the correct window")
Sleep(2000)
Else
ControlSend($handle, "", "", "{TAB}")
ControlSend($handle, "", "", "2")
Sleep(1500)
EndIf
WEnd
both dont work, :confused: any help i will greatly appreciate.:handsdown:Quote:
; get window handle
$sTitle = "Grand Fantasia"
WinWait($sTitle)
$hWin = WinGetHandle($sTitle)
ControlSend($hWin, "", "", "{ENTER}this still doesnt work, lol{ENTER}",0)