Bot For Excavation QTE

03/26/2022 21:42 Littledagger#31
3440x1440 (real Widescreen) - no Minigame Bonus.


Quote:
;2560x1440 monitor with Force Widescreen option enabled
Global $g_bPaused = False
Global $Color1 = 0x1675B0 ;Blue
Global $Color2 = 0xEA9305 ;Orange

HotKeySet( "{PAUSE}", "TogglePause") ;Pause the program
HotKeySet( "+!{ESC}", "Terminate") ;Close the program

While 1
FindPixels()
WEnd

Func FindPixels()
$Search1 = Pixelsearch(1429, 961, 2004, 990, $Color1, 100)
if @error = 0 then
$Search2 = Pixelsearch($Search1[0], 985, $Search1[0], 1011, $Color2, 50)
if @error = 0 then
Sleep(25) ;Delay before the space press. Delay depends on your excavation tool. This works for minigame difficulty decrease 3.
Send("{SPACE}")
Sleep(1000) ; Pause after success to prevent spamming spacebar
ENDIF
ENDIF
EndFunc


Func TogglePause()
$g_bPaused = Not $g_bPaused
While $g_bPaused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc ;==>TogglePause

Func Terminate()
Exit
EndFunc ;==>Terminate
03/28/2022 00:28 Timmy812#32
Quote:
Originally Posted by Littledagger View Post
3440x1440 (real Widescreen) - no Minigame Bonus.
is the pausing/unpausing laggy for you? having a hard time with that
03/29/2022 13:07 Littledagger#33
Quote:
Originally Posted by Timmy812 View Post
is the pausing/unpausing laggy for you? having a hard time with that
actually not. It sometimes fail tho, so it only get 2 out of 3, but in very rare cases.
03/29/2022 14:47 Reisgem#34
Quote:
Originally Posted by TheBlindLeader View Post
Had the same issue at first. It takes a short time to start up and it seems you have to press "Pause" once to activate it. I usually wait like 10 seconds, press "Pause" once and a few seconds later the tooltip appears in the top left. After that the script works.

And in case anybody here wants to make Herzlos95's script work for the old-school 1920x1080 (16:9) here are the values that work for me:

Code:
Func FindPixels()
   $Search1 = Pixelsearch(741, 720, 1168, 739, $Color1, 100)
   if  @ error = 0 then
	  $Search2 = Pixelsearch($Search1[0], 744, $Search1[0], 760, $Color2, 50)
	  if  @ error = 0 then
		 Sleep(25) ;Delay before the space press. Delay depends on your excavation tool. This works for minigame difficulty decrease 3.
		 Send("{SPACE}")
		 Sleep(1000) ; Pause after success to prevent spamming spacebar
	  ENDIF
   ENDIF
EndFunc
Just replace the corresponding lines in his original code with the above ones. And remove the space between both @ error, had to add it so epvp doesn't fuck up the code.

The Sleep(25) works for my Minigame Difficulty -2 tool. If you have a -1 or -3 you might need to adjust that value up or down.

Again, credit goes to @[Only registered and activated users can see links. Click Here To Register...], I just adjusted the values for my own use and wanted to share for others on 1920x1080.
worked like a charm, for those who dont have minigame difficulty on tool, chnage it to 5, worked like a charm to me
03/30/2022 09:55 Arvian11#35
Does the game need to be in full screen for this to works? I was running 1920*1080 window mode on a 2560*1440 res and it does not seem to works.
03/30/2022 16:00 xmatador22#36
Quote:
Originally Posted by Arvian11 View Post
Does the game need to be in full screen for this to works? I was running 1920*1080 window mode on a 2560*1440 res and it does not seem to works.
I use these coords for 2560x1440 borderless (without the forced widescreen) and they work flawless
Code:
$Search1 = Pixelsearch(987, 957, 1558, 986, $Color1, 100)
$Search2 = Pixelsearch($Search1[0], 986, $Search1[0], 1020, $Color2, 50)
03/30/2022 23:14 Arvian11#37
thanks, gonna try it later and hope it works now.
03/31/2022 01:01 PROSTI2012#38
Keeps saying there's an error with WEnd line, have no effing clue why and apparently I'm the only one with this problem, fml xD
03/31/2022 10:51 Arvian11#39
Look like it works for me, using a -3 difficulty so have to increase wait time. Thanks
04/01/2022 15:40 Koolpvper#40
Quote:
Originally Posted by TheBlindLeader View Post
Oh, I just assumed you would be on borderless lol. Have been using AHK and AutoIt for so long that I didn't even think about asking if you are on borderless. It is basically required for any scripts to work.
Could you share you insight on how to fix this? I keep getting the same issue as you with just random space bar input and nothing else :(
04/02/2022 13:58 xlifer#41
Quote:
Originally Posted by PROSTI2012 View Post
Keeps saying there's an error with WEnd line, have no effing clue why and apparently I'm the only one with this problem, fml xD
yeah i'm getting the same error for "Wend"
04/03/2022 17:08 GramOdvin#42
Quote:
Originally Posted by xlifer View Post
yeah i'm getting the same error for "Wend"
Wend error its when script saved as .ahk u need to save as myscript.au3 and use AutoIt ;)
05/18/2022 02:06 luvbug69#43
what is "WEnd"? im getting an error at line 11 saying that line doesnt contain a recognized action

edited- nvm i just saw the posts above lol ill get autoit!
07/11/2022 14:21 Japabbu#44
this still works ? anyone can tell me?
07/16/2022 07:47 badyami#45
Can someone help me to monitor 3840*2160 wide screen forced please?