Scripting Help please
Wildman
best_lay at yahoo.com
Wed Oct 12 17:42:16 EDT 2016
On Wed, 12 Oct 2016 20:48:31 +0000, alister wrote:
> On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote:
>
>> Hi l am on my way to make a bot for the game Piano Tiles 2.
>> But the code l have written so far saids invalid syntax at 2nd line.
>> Here is my code:
>>
>>
>>
>> while True:
>> If active then
>> FFSnapShot(areaX, areaY + height - offsetBottom, areaX + width,
>> areaY + height - offsetBottom, sid)
>> For row = 0 To norows - 1
>> c = FFGetPixel(areaX + row * rowWidth + 5, areaY + height -
>> offsetBottom, sid)
>> cs = _ColorGetRGB(c)
>> b = ( cs[0] * 0.3 ) + ( cs[1] * 0.59 ) + ( cs[2] * 0.11 )
>> If lock[row] Then
>> If b < darkness Then
>> ContinueLoop
>> Else
>> lock[row] = False
>> EndIf
>> EndIf If b < darkness Then
>> MouseUp("Left")
>> lock[row] = True MouseMove(areaX + row * rowWidth + rowWidth
>> / 2, areaY + height - offsetBottom, 1)
>> MouseDown("Left")
>> EndIf
>> Next
>> EndIf
>> End
>>
>> Can someone help me please?
>
> Is observation this is not Python code
> it looks more like some variety of BASIC but I could easily be wrong
I looks very similar to Visual Basic except I know of no instances
where '[]' are used in an array, as in lock[row]. The functions
that begin with 'FF' are from a pixel search library called FastFind.
It works with several different programming languages so no definite
clue there. I'm not sure about the Mouse functions. They could also
be from a library. In VB the functions would be called like this:
object.MouseUp(). I'm not sure what the code is but it definitely
is not Python.
--
<Wildman> GNU/Linux user #557453
May the Source be with you.
More information about the Python-list
mailing list