byron Posted April 2, 2013 Share Posted April 2, 2013 i used to use this script and worked fine... now it gives me an error unknown identyfier findwindowtitlepart how do we fix this? please. the script is this: program New; var x, y, z, monster1: Integer; begin monster1:= 4342049;//<======== The color of monster right here z:=0; findwindowtitlepart('Endless Online',false); activateclient; wait(20); repeaT keydown(112); wait(10) keyup(112); if(FindColorSpiral(x, y, monster1, 13, 61, 630, 332))then begin clickmouse(x, y, true) wait(600) //Time to wait between attacks with magic END // Some spells take longer ei: boulders and fire from the sky until(x = 5000000) end. Quote Link to comment Share on other sites More sharing options...
Janilabo Posted April 3, 2013 Share Posted April 3, 2013 Updated to SCAR Divi 3.35+ series: var x, y, z, monster1: Integer; w: THwndArray; begin monster1 := 4342049;//<======== The color of monster right here z := 0; w := FindWindows('Endless Online'); if (High(w) > -1) then begin ActivateWindow(w[0]); SetLength(w, 0); Wait(500); repeat VKeyDown(VK_F1); Wait(10) VKeyUp(VK_F1); if FindColorSpiral(307, 135, x, y, monster1, 13, 61, 630, 332) then begin ClickMouse(x, y, mbLeft); Wait(600) //Time to wait between attacks with magic end; // Some spells take longer ei: boulders and fire from the sky until False; end else WriteLn('Couldn''t find Engless Online! '); end. Quote Link to comment Share on other sites More sharing options...