Hello I'm new here and I'm wondering what's wrong with my script for a game called Byond. I want it to automatically push arrows that come in randomly, I have all the correct coords ,but it seems to only have mouse movements.(The red dots are where i get my coords from) The link is the original script
If $arrow = 1 Then
If PixelGetColor(338,362) = "0x000033" And PixelGetColor(343,362) = "0x000033" Then
Send("{DOWN}")
$arrow = 2
ElseIf PixelGetColor(338,355) = "0x000033" And PixelGetColor(343,355) = "0x000033" Then
Send("{UP}")
$arrow = 2
ElseIf PixelGetColor(337,354) = "0x000033" And PixelGetColor(337,359) = "0x000033" Then
Send("{LEFT}")
$arrow = 2
ElseIf PixelGetColor(344,354) = "0x000033" And PixelGetColor(364,359) = "0x000033" Then
Send("{RIGHT}")
$arrow = 2
EndIf
ElseIf $arrow = 2 Then
If PixelGetColor(354,362) = "0x000033" And PixelGetColor(359,362) = "0x000033" Then
Send("{DOWN}")
$arrow = 3
ElseIf PixelGetColor(354,355) = "0x000033" And PixelGetColor(359,355) = "0x000033" Then
Send("{UP}")
$arrow = 3
ElseIf PixelGetColor(353,354) = "0x000033" And PixelGetColor(353,359) = "0x000033" Then
Send("{LEFT}")
$arrow = 3
ElseIf PixelGetColor(360,354) = "0x000033" And PixelGetColor(360,359) = "0x000033" Then
Send("{RIGHT}")
$arrow = 3
EndIf
ElseIf $arrow = 3 Then
If PixelGetColor(370,362) = "0x000033" And PixelGetColor(375,362) = "0x000033" Then
Send("{DOWN}")
$arrow = 4
ElseIf PixelGetColor(370,355) = "0x000033" And PixelGetColor(375,355) = "0x000033" Then
Send("{UP}")
$arrow = 4
ElseIf PixelGetColor(369,354) = "0x000033" And PixelGetColor(369,359) = "0x000033" Then
Send("{LEFT}")
$arrow = 4
ElseIf PixelGetColor(376,354) = "0x000033" And PixelGetColor(376,359) = "0x000033" Then
Send("{RIGHT}")
$arrow = 4
EndIf
ElseIf $arrow = 4 Then
If PixelGetColor(386,362) = "0x000033" And PixelGetColor(391,362) = "0x000033" Then
Send("{DOWN}")
$arrow = 5
ElseIf PixelGetColor(386,355) = "0x000033" And PixelGetColor(391,355) = "0x000033" Then
Send("{UP}")
$arrow = 5
ElseIf PixelGetColor(385,354) = "0x000033" And PixelGetColor(385,359) = "0x000033" Then
Send("{LEFT}")
$arrow = 5
ElseIf PixelGetColor(392,354) = "0x000033" And PixelGetColor(392,359) = "0x000033" Then
Send("{RIGHT}")
$arrow = 5
EndIf
ElseIf $arrow = 5 Then
If PixelGetColor(402,362) = "0x000033" And PixelGetColor(407,362) = "0x000033" Then
Send("{DOWN}")
$arrow = 1
ElseIf PixelGetColor(402,355) = "0x000033" And PixelGetColor(407,355) = "0x000033" Then
Send("{UP}")
$arrow = 1
ElseIf PixelGetColor(401,354) = "0x000033" And PixelGetColor(401,359) = "0x000033" Then
Send("{LEFT}")
$arrow = 1
ElseIf PixelGetColor(408,354) = "0x000033" And PixelGetColor(408,359) = "0x000033" Then
Send("{RIGHT}")
$arrow = 1
Is it your full code? If yes, then you should do something with it, cause horyble looking. Advice. If u run this scrpitl how it is atm. It will finish before u switch task.
You should use a Sleep order and use Hotkey to run, to stop. For this orders, use Help file pls. Everything writen there from this 2 order clearly with good examples how to use. Other stuff, you should use Loop, then it will not stop after once runned...
nah it didn't work @Padre123
and I have to delete this thread before im banned from dbs
Threads won't be deleted unless they are spam or contain a virus etc.
If you want your thread to be closed though, you can use the report button and request a close
Autoit script working in background help 09/13/2013 - AutoIt - 3 Replies Hi, so I have an issue with my script, I'm trying to get it to run on internet explorers in the background, with ie opened or minimized, doesn't matter, but it doesn't seem to do a thing when I run it
Here's part of the script
HotKeySet("{F7}", "StartStop")
HotKeySet("{F8}", "ExitProgram")
Opt("WinTitleMatchMode", 2)
$handle = WinGetHandle("Windows Internet Explorer")
$cId = ""
$on = False
AutoIt script not working 12/28/2011 - League of Legends - 2 Replies It uses send() commands which aren't picked up at all in-game.
How are the send() commands prevented and how can it be bypassed?
Thanks,