evild
New Member
Posts: 12
|
Post by evild on Dec 16, 2016 14:54:35 GMT
Hi guys! I want to make a script that did something like that: IF found pic1.png, pic2.png, pic3.png THEN show "Hello, world!" Im a very new on this kind of codes but I'm here to learn
|
|
|
Post by AnkuLua on Dec 16, 2016 15:49:50 GMT
Hi guys! I want to make a script that did something like that: IF found pic1.png, pic2.png, pic3.png THEN show "Hello, world!" Im a very new on this kind of codes but I'm here to learn if (exists("pic1.png") and exists("pic1.png") and exists("pic1.png")) then print ("Hello, world") end
|
|
evild
New Member
Posts: 12
|
Post by evild on Dec 16, 2016 17:16:25 GMT
Hi guys! I want to make a script that did something like that: IF found pic1.png, pic2.png, pic3.png THEN show "Hello, world!" Im a very new on this kind of codes but I'm here to learn if (exists("pic1.png") and exists("pic1.png") and exists("pic1.png")) then print ("Hello, world") end Thanks! I have another doubt (sorry to bother you with noob questions haha) My phone resolution is 1440 x 2560 pixel , but I'm taking screenshots on remoteAKL on 1/2 1280. According this informations what is the correct way to code the first lines? Is this ?: Settings:setCompareDimension(true, 1440) Settings:setScriptDimension(true, 1280) EDIT:1 I found my screensize using screenSize.lua and both are 1440, so Does I just need to capture the screenshot on 1440 in remoteAKL and put ScriptDimension and CompareDimension on 1440 ?
|
|
evild
New Member
Posts: 12
|
Post by evild on Dec 16, 2016 19:51:58 GMT
Im trying to make this simple script. I just loved this tool before write the script and already bought a Pro haha. Settings:setCompareDimension(true, 1440) Settings:setScriptDimension(true, 1440)
if (exists("blue.png")) then print ("Gem found") end Thats the test script but when I click on play appear this error: imgur.com/a/8NqFL then stops the script What Im doing wrong ? EDIT1: Just find it! so I'll need to improve the code for what I need I want the script keep running until I stop it because I need to skip dungeons and the script needs to keep looking for the image as fast as possible and only stops when the image has been found. First of all I'll skip dungeons manually and wait for the script find the image and show the message and when it is working well I'll improve and make more things
|
|
|
Post by AnkuLua on Dec 17, 2016 0:28:57 GMT
if (exists("pic1.png") and exists("pic1.png") and exists("pic1.png")) then print ("Hello, world") end Thanks! I have another doubt (sorry to bother you with noob questions haha) My phone resolution is 1440 x 2560 pixel , but I'm taking screenshots on remoteAKL on 1/2 1280. According this informations what is the correct way to code the first lines? Is this ?: Settings:setCompareDimension(true, 1440) Settings:setScriptDimension(true, 1280) EDIT:1 I found my screensize using screenSize.lua and both are 1440, so Does I just need to capture the screenshot on 1440 in remoteAKL and put ScriptDimension and CompareDimension on 1440 ? Put both the number right of the scale number. It's 1280 in your case Settings:setCompareDimension(true, 1280)
Settings:setScriptDimension(true, 1280)
|
|
|
Post by AnkuLua on Dec 17, 2016 0:30:29 GMT
Im trying to make this simple script. I just loved this tool before write the script and already bought a Pro haha. Settings:setCompareDimension(true, 1440) Settings:setScriptDimension(true, 1440)
if (exists("blue.png")) then print ("Gem found") end Thats the test script but when I click on play appear this error: imgur.com/a/8NqFL then stops the script What Im doing wrong ? EDIT1: Just find it! so I'll need to improve the code for what I need I want the script keep running until I stop it because I need to skip dungeons and the script needs to keep looking for the image as fast as possible and only stops when the image has been found. First of all I'll skip dungeons manually and wait for the script find the image and show the message and when it is working well I'll improve and make more things Thanks for support and buying Pro2. If you have problem, share the screenshots, images and your script. Will try to help.
|
|
evild
New Member
Posts: 12
|
Post by evild on Dec 17, 2016 0:46:22 GMT
You're welcome, tools like that deserve it!
I want to improve now. I ran the script and it found the image. But I'll explain what I need now.
I need to start the script and need the script keep running looking for the images as fast as possible and only stops when the image has found.
This code now just look for the image, send the message and stops
|
|
|
Post by vampiredbr9 on Dec 18, 2016 16:02:34 GMT
Hi guys! I want to make a script that did something like that: IF found pic1.png, pic2.png, pic3.png THEN show "Hello, world!" Im a very new on this kind of codes but I'm here to learn if (exists("pic1.png") and exists("pic2.png") and exists("pic3.png")) then print ("Hello, world") end If you also need help with Lua language, just Google it
|
|