Hi elitepvpers i want to make a bot that will work with the game window minimized so that i can do anything else while the bot is running but i have some troubles D:
The script only click Start button, its a begining
[Only registered and activated users can see links. Click Here To Register...]
When the button is clicked the game start:
[Only registered and activated users can see links. Click Here To Register...]
The game : S4League
Here is my script:
The problems are...
Anti Hacking Program Block keystrokes so i'm suposed to use _isPressed, to set hotkeys, and _WinAPI_Mouse_Event() to make the bot work when the character is ready.
but...
_WinAPI_Mouse_Event doesn't work when the window is minimized
ControlClick would be good but i think is blocked too... because it doesn't do anything...
Don't Tested: _SendMessage/PostMessage cause i don't know how to make them work with these...
Until Now the only thing which is working is clicking Start button when window is minimized it just click elsewhere
Question:
Is there any way to combine ControlClick function with _WinAPI_Mouse_Event ??
What the bot should do?:
it should click start , then send mouseclicks to make the character autoattack all of these with the window minimized
Its a beta version so i don't make an effort to continue loop when finish,
until i solve this problem...
The script only click Start button, its a begining
[Only registered and activated users can see links. Click Here To Register...]
When the button is clicked the game start:
[Only registered and activated users can see links. Click Here To Register...]
The game : S4League
Here is my script:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <Misc.au3>
$i = 0
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Minimize Bot", 239, 131, 196, 124)
$Button1=GUICtrlCreateButton("Click Ready",56,40,123,49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
global $startx,$starty
AdlibRegister("_Winsize",1000)
Func _Winsize()
if WinExists("S4 Client") Then
$size = WinGetClientSize("S4 Client");Returns size of the window
$_sizex = $size[0]
$_sizey=$size[1]
$_TotalSize=$_sizex & "," & $_sizey
Switch $_TotalSize
Case "1024,752" ;two posible resolution one in window mode and other in fullscreen
$startx=944
$starty=519
Case "1024,768"
$startx=947
$starty=504
EndSwitch
EndIf
EndFunc
Func _Attack()
While (not _IsPressed("60"));NUMPAD0
_WinAPI_Mouse_Event(0x0002)
Sleep(100)
_WinAPI_Mouse_Event(0x0004)
Sleep(500)
WEnd
Exit 0
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
WinSetState("S4 Client","",@SW_MINIMIZE)
Sleep(100)
ControlClick("S4 Client","","","left",2,$startx,$starty);click Ready button
Sleep(500)
_Attack()
EndSwitch
WEnd
Anti Hacking Program Block keystrokes so i'm suposed to use _isPressed, to set hotkeys, and _WinAPI_Mouse_Event() to make the bot work when the character is ready.
but...
_WinAPI_Mouse_Event doesn't work when the window is minimized
ControlClick would be good but i think is blocked too... because it doesn't do anything...
Don't Tested: _SendMessage/PostMessage cause i don't know how to make them work with these...
Until Now the only thing which is working is clicking Start button when window is minimized it just click elsewhere
Question:
Is there any way to combine ControlClick function with _WinAPI_Mouse_Event ??
What the bot should do?:
it should click start , then send mouseclicks to make the character autoattack all of these with the window minimized
Its a beta version so i don't make an effort to continue loop when finish,
until i solve this problem...