jojofromjory Posted October 24, 2011 Share Posted October 24, 2011 Hello, I'm trying to make a bank pin script using my own technique but I'm having trouble with FindColor, this is my code but for some reason it's not working: If (FindColor(x,y,2070783,44,113,93,164)) Then begin ClickMouse(x,y,False); end; Can anyone help me please? Greetings, Jojo Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 24, 2011 Share Posted October 24, 2011 Are you sure the color and search area are correct and don't change? Quote Link to comment Share on other sites More sharing options...
jojofromjory Posted October 24, 2011 Author Share Posted October 24, 2011 The full code is: program New; var x,y,color: Integer; begin MoveWindMouse(0,0,10,11); FindColor(x, y, 2070783, 44, 113, 93, 164); ClickMouse(x,y,False); end. I'm using a 64-bit Windows 7 but I tried this on my Windows XP SP3 and it isn't working either... Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 24, 2011 Share Posted October 24, 2011 You should answer my question or I can't help you... Also, I'm not sure why you removed that if statement from your code, it seemed a lot more logical with it in there... Quote Link to comment Share on other sites More sharing options...
jojofromjory Posted October 24, 2011 Author Share Posted October 24, 2011 You should answer my question or I can't help you... Also, I'm not sure why you removed that if statement from your code, it seemed a lot more logical with it in there... Oh well the code doesn't really matter with or without the if statement and nope I even tried it on a grey spot (with the corresponding color which I obtained through the color tool) and still it didn't give me any response... Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 24, 2011 Share Posted October 24, 2011 You're sure you selected the client correctly and that the area you were trying to search for was inside of the search area you entered into the function? Also, what are you running it on? Quote Link to comment Share on other sites More sharing options...
jojofromjory Posted October 24, 2011 Author Share Posted October 24, 2011 I selected the runescape Java client but it didn't do anything, the coordinates are within the selected area and I tried the bot both on internet explorer and mozilla firefox but also on the runescape client (downloaded from their site). Quote Link to comment Share on other sites More sharing options...
Wanted Posted October 25, 2011 Share Posted October 25, 2011 A good majority of colors in runescape are dynamic and fluctuate in their base components meaning you will need to use tolerance. FindColorTolerance There's nothing wrong at all with SCAR's findcolor I assure you, you just need to learn how to utilize the tools. Also if you can wait for OSI beta I'll have premade runescape specific functions for you to use making life easier. Like InPin... Quote Link to comment Share on other sites More sharing options...
jojofromjory Posted October 27, 2011 Author Share Posted October 27, 2011 A good majority of colors in runescape are dynamic and fluctuate in their base components meaning you will need to use tolerance. FindColorTolerance There's nothing wrong at all with SCAR's findcolor I assure you, you just need to learn how to utilize the tools. Also if you can wait for OSI beta I'll have premade runescape specific functions for you to use making life easier. Like InPin... Now I just tried to execute the following script onto the login form but the mouse just keeps going to (0,0) when I start it, even though 2267829 is one of the colours of the 'login' button... My code: program New; var x,y:Integer; begin Findcolor(x,y,2267829,5,5,500,500); WriteLn(x); WriteLn(y); MoveMouse(x,y); end. EDIT: Never mind, forgot one thing, my settings were on OpenGL, I've put them on Software and it works fine now *facepalm* Quote Link to comment Share on other sites More sharing options...