cypher Posted July 28, 2012 Share Posted July 28, 2012 Since the update I cannot use the scar anymore as it will give me an error everytime I try to make it use my browser (opera or IE). I never had that problem before so my question is, where can I dowload a previous version so I can downgrade? Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted July 28, 2012 Share Posted July 28, 2012 (edited) Perhaps you could specify what error you are getting exactly? What script you are trying to run, etc. I don't use either of those two, but know the latest works with Chrome and Firefox for certain. Edited July 28, 2012 by Bixby Sayz Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 Since the update I cannot use the scar anymore as it will give me an error everytime I try to make it use my browser (opera or IE). I never had that problem before so my question is, where can I dowload a previous version so I can downgrade? Please provide some details on your problem, I'd rather help you get up and running with the new version than fragment the platform by continuing with the old one. Quote Link to comment Share on other sites More sharing options...
MarkD Posted July 28, 2012 Share Posted July 28, 2012 Perhaps this is the same error I got since 3.35. The moment I drag my crosshair to Firefox, I get a pop-up window with this message: Control 'pnlSelectClient' has no parent window. Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 Follow the instructions at the top: http://forums.scar-divi.com/showthread.php?1621-SCAR-Divi-3-35-Beta&p=8624&viewfull=1#post8624 Quote Link to comment Share on other sites More sharing options...
MarkD Posted July 28, 2012 Share Posted July 28, 2012 This part does the trick I guess. There's a new panel in the main GUI (Target Client), if you've used SCAR previously, you will need to go into "C:\Users\[YourName]\AppData\Local\SCAR Divi\" and remove the docking settings file, or it will NOT show up. You didn't tell that at the release topic Thanks for the info, solved it. Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 You didn't tell that at the release topic Yeah, it slipped my mind... Quote Link to comment Share on other sites More sharing options...
cypher Posted July 28, 2012 Author Share Posted July 28, 2012 Solved the target problem, I dont get an error anymore but pressing the play button does nothing anymore and my script will not run.... Is there anything I should change in this script? program New; const WaitTime = 25; var X, Y, Color: Integer; SearchColors: TIntArray; begin ClearDebug; // Colors to search for SearchColors := [140991, 206784, 245821, 12518021, 8652036, 986097, 1671065, 180028, 16449527, 14737381, 1054138, 1527, 196612]; // Repeat until user presses ESC key repeat // Get color at/under mouse GetMousePos(X, Y); Color := GetColor(X, Y); // If color matches our search colors, then click mouse if TIAContains(SearchColors, Color) then begin writeln('Color ' + IntToStr(Color) + ' found at position (' + IntToStr(X) + ',' + IntToStr(Y) + ')'); ClickMouse(X, Y, TRUE); end; // Small wait to reduce lag Wait(50); until IsKeyDown(VK_ESCAPE); end. Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 Solved the target problem, I dont get an error anymore but pressing the play button does nothing anymore and my script will not run.... Is there anything I should change in this script? Check the messages tab at the bottom for errors. The script is fine, aside from IsKeyDown, this has to be replaced with GetKeyState, the function does the same thing: [scar]program New; const WaitTime = 25; var X, Y, Color: Integer; SearchColors: TIntArray; begin ClearDebug; // Colors to search for SearchColors := [140991, 206784, 245821, 12518021, 8652036, 986097, 1671065, 180028, 16449527, 14737381, 1054138, 1527, 196612]; // Repeat until user presses ESC key repeat // Get color at/under mouse GetMousePos(X, Y); Color := GetColor(X, Y); // If color matches our search colors, then click mouse if TIAContains(SearchColors, Color) then begin WriteLn('Color ' + IntToStr(Color) + ' found at position (' + IntToStr(X) + ',' + IntToStr(Y) + ')'); ClickMouse(X, Y, TRUE); end; // Small wait to reduce lag Wait(50); until GetKeyState(VK_ESCAPE); end. [/scar] Quote Link to comment Share on other sites More sharing options...
cypher Posted July 28, 2012 Author Share Posted July 28, 2012 (edited) That does the trick, thanks ! Last detail, this seems to now do a right click instead of a left click.... Edited July 28, 2012 by cypher Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 That does the trick, thanks ! Last detail, this seems to now do a right click instead of a left click.... Sorry, I missed that, you're not supposed to enter a boolean anymore: [scar]program New; const WaitTime = 25; var X, Y, Color: Integer; SearchColors: TIntArray; begin ClearDebug; // Colors to search for SearchColors := [140991, 206784, 245821, 12518021, 8652036, 986097, 1671065, 180028, 16449527, 14737381, 1054138, 1527, 196612]; // Repeat until user presses ESC key repeat // Get color at/under mouse GetMousePos(X, Y); Color := GetColor(X, Y); // If color matches our search colors, then click mouse if TIAContains(SearchColors, Color) then begin WriteLn('Color ' + IntToStr(Color) + ' found at position (' + IntToStr(X) + ',' + IntToStr(Y) + ')'); ClickMouse(X, Y, mbLeft); end; // Small wait to reduce lag Wait(50); until GetKeyState(VK_ESCAPE); end.[/scar] Quote Link to comment Share on other sites More sharing options...
cypher Posted July 28, 2012 Author Share Posted July 28, 2012 perfect, thank you very much Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 28, 2012 Share Posted July 28, 2012 perfect, thank you very much If you have any more issues with the new API, don't hesitate to ask Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted July 28, 2012 Share Posted July 28, 2012 Edit: Gotta learn to read all the replies before answering a question that has already been answered. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 29, 2012 Share Posted July 29, 2012 Check the messages tab at the bottom for errors. The script is fine, aside from IsKeyDown, this has to be replaced with GetKeyState, the function does the same thing: [scar]program New; const WaitTime = 25; var X, Y, Color: Integer; SearchColors: TIntArray; begin ClearDebug; // Colors to search for SearchColors := [140991, 206784, 245821, 12518021, 8652036, 986097, 1671065, 180028, 16449527, 14737381, 1054138, 1527, 196612]; // Repeat until user presses ESC key repeat // Get color at/under mouse GetMousePos(X, Y); Color := GetColor(X, Y); // If color matches our search colors, then click mouse if TIAContains(SearchColors, Color) then begin WriteLn('Color ' + IntToStr(Color) + ' found at position (' + IntToStr(X) + ',' + IntToStr(Y) + ')'); ClickMouse(X, Y, TRUE); end; // Small wait to reduce lag Wait(50); until GetKeyState(VK_ESCAPE); end. [/scar] Change this to: [sCAR]ClickMouse(X, Y, mbLeft);[/sCAR] Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 29, 2012 Share Posted July 29, 2012 Change this to: [sCAR]ClickMouse(X, Y, mbLeft);[/sCAR] Maybe read the whole thread next time? Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 29, 2012 Share Posted July 29, 2012 (edited) Maybe read the whole thread next time? My bad. I thought your post had it too. Maybe I was mistaken. Or I'm seeing things Edited July 29, 2012 by LordJashin Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 29, 2012 Share Posted July 29, 2012 My bad, you changed your reply since, or maybe while I made mine. I didn't... As I said, read the whole thread. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 29, 2012 Share Posted July 29, 2012 Edit: Gotta learn to read all the replies before answering a question that has already been answered. I'm with stupid, Bixby's with stupid. We are all stupid in this thread today. Quote Link to comment Share on other sites More sharing options...