bomh
New Member
Posts: 6
|
Post by bomh on Jan 14, 2017 7:11:25 GMT
can someone show me how to convert this code from autoit to ankulua please.
Func stage() $clear=PixelSearch(600+10,485+10,600-10,485-10,0xFFFF1C,5,0) $clear1= PixelSearch(583+10,452+10,583-10,452-10,0x001107,5,0) $star5= _ImageSearch("star.png",1, $x, $y, 5, 0) $star1= _ImageSearch("star1.png",1, $x, $y, 5, 0)
If IsArray($clear)= True And IsArray($clear1)=True Then MouseClick("left",578-47,611,1,1) Sleep(1500) EndIf If $star5= 1 Then ;1 MouseClickDrag("left",730-47,583,725-47,534) Sleep(1500) EndIf If $star1=1 Then MouseClickDrag("left",720-47,490,721-47,575) Sleep(1500) Else MouseClick("left",719-47,519) Sleep(1000) EndIf
EndFunc
|
|
|
Post by vampiredbr9 on Jan 19, 2017 21:28:17 GMT
can someone show me how to convert this code from autoit to ankulua please. Func stage() $clear=PixelSearch(600+10,485+10,600-10,485-10,0xFFFF1C,5,0) $clear1= PixelSearch(583+10,452+10,583-10,452-10,0x001107,5,0) $star5= _ImageSearch("star.png",1, $x, $y, 5, 0) $star1= _ImageSearch("star1.png",1, $x, $y, 5, 0)
If IsArray($clear)= True And IsArray($clear1)=True Then MouseClick("left",578-47,611,1,1) Sleep(1500) EndIf If $star5= 1 Then ;1 MouseClickDrag("left",730-47,583,725-47,534) Sleep(1500) EndIf If $star1=1 Then MouseClickDrag("left",720-47,490,721-47,575) Sleep(1500) Else MouseClick("left",719-47,519) Sleep(1000) EndIf
EndFunc No offense bohm, but you are saying that you are too lazy to make a new script in ankulua by learning a new language, and you are expecting us to learn another language, and convert it for you. I would highly suggest learning Lua. I made my first script in under a day, without learning Lua beforehand!
|
|
bomh
New Member
Posts: 6
|
Post by bomh on Jan 23, 2017 5:10:23 GMT
can someone show me how to convert this code from autoit to ankulua please. Func stage() $clear=PixelSearch(600+10,485+10,600-10,485-10,0xFFFF1C,5,0) $clear1= PixelSearch(583+10,452+10,583-10,452-10,0x001107,5,0) $star5= _ImageSearch("star.png",1, $x, $y, 5, 0) $star1= _ImageSearch("star1.png",1, $x, $y, 5, 0)
If IsArray($clear)= True And IsArray($clear1)=True Then MouseClick("left",578-47,611,1,1) Sleep(1500) EndIf If $star5= 1 Then ;1 MouseClickDrag("left",730-47,583,725-47,534) Sleep(1500) EndIf If $star1=1 Then MouseClickDrag("left",720-47,490,721-47,575) Sleep(1500) Else MouseClick("left",719-47,519) Sleep(1000) EndIf
EndFunc No offense bohm, but you are saying that you are too lazy to make a new script in ankulua by learning a new language, and you are expecting us to learn another language, and convert it for you. I would highly suggest learning Lua. I made my first script in under a day, without learning Lua beforehand! Thanks for the tip vampire I will learn it now
|
|