Modnick Posted March 11, 2013 Share Posted March 11, 2013 {BryceTheCoder} var x,y: Integer; begin repeat if FindColor(x,y,16697856,525,528,564,532) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom. begin wait(5); // Add a time delay is needed. KeyDown(32); // Press down Spacebar. KeyUp(32); // Lefts up on the Spacebar. end; until (false); end. im getting a type mismatch on line 10 Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted March 11, 2013 Share Posted March 11, 2013 i think it is because your using an integer for a char in the KeyDown and KeyUp.. I'm not 100% sure of what a char is thought:L Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted March 11, 2013 Share Posted March 11, 2013 (edited) [sCAR]{BryceTheCoder} var x,y: Integer; begin repeat if FindColor(x,y,16697856,525,528,564,532) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom. begin repeat wait(5); // Add a time delay is needed. KeyDown(VK_SPACE); // Press down Spacebar. KeyUp(VK_SPACE); // Lefts up on the Spacebar. until GetKeyState(VK_F12); end; until (false); end.[/sCAR] try that? Edited March 11, 2013 by Amberleaf Quote Link to comment Share on other sites More sharing options...
Modnick Posted March 11, 2013 Author Share Posted March 11, 2013 (edited) ok so what do i change the xs, ya, xe, ye to? im targeting chrome, the site is feelthebeats.com Edited March 11, 2013 by Modnick Quote Link to comment Share on other sites More sharing options...
Modnick Posted March 11, 2013 Author Share Posted March 11, 2013 still waiting for reply Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 11, 2013 Share Posted March 11, 2013 KeyDown/-Up requires a character, not a VKey, you're looking for VKeyDown/-Up Quote Link to comment Share on other sites More sharing options...