kimi18 Posted September 14, 2013 Share Posted September 14, 2013 Helló I need some help. I change the window to "full size", and then, when the Scar activate this window, the windows become previous size... But why? Or, it could have some solution to reset? This is my scar code (this code from the Scar-Wiki) : var Wnds: THwndArray; w,h:Integer; begin Wnds := FindWindowsEx(GetDesktopWindow, 'Notepad', '', False, False, True); if Length(Wnds) > 0 then begin ActivateWindow(Wnds[0]); GetWindowSize(GetActiveWindow,w,h); writeln('w: ' + inttostr(w) + '; h: ' + inttostr(h)); end; end. Thanks... Sorry for my English Quote Link to comment Share on other sites More sharing options...
Janilabo Posted September 15, 2013 Share Posted September 15, 2013 Helló I need some help. I change the window to "full size", and then, when the Scar activate this window, the windows become previous size... But why? Or, it could have some solution to reset? This is my scar code (this code from the Scar-Wiki) : var Wnds: THwndArray; w,h:Integer; begin Wnds := FindWindowsEx(GetDesktopWindow, 'Notepad', '', False, False, True); if Length(Wnds) > 0 then begin ActivateWindow(Wnds[0]); GetWindowSize(GetActiveWindow,w,h); writeln('w: ' + inttostr(w) + '; h: ' + inttostr(h)); end; end. Thanks... Sorry for my English Hello kimi! Sorry for slow response man.. Yeah, this is a bug that you discovered. Freddy fixed the issue for v3.40 (link takes you to SCAR Divi Development releases) Regards, -Jani Quote Link to comment Share on other sites More sharing options...
kimi18 Posted September 15, 2013 Author Share Posted September 15, 2013 Hello Thank you, and this version is usable? Or we know other bug? And another question... "FindBitmapSpiral" program New; var Bmp:TSCARBitmap; x,y:Integer; begin Bmp := TSCARBitmap.Create('deNpjZ2BnGIQAAAjLAA8='); //now only black square if FindBitmapSpiral(Bmp,x,y,0,0,800,600) then writeln('found:' + inttostr(x) + '/' + inttostr(y)); end. It is always true, and x=0, y=0.... , why not return the exact coordinates? Another bug? Quote Link to comment Share on other sites More sharing options...
Janilabo Posted September 15, 2013 Share Posted September 15, 2013 Hello Thank you, and this version is usable? Or we know other bug? And another question... "FindBitmapSpiral" program New; var Bmp:TSCARBitmap; x,y:Integer; begin Bmp := TSCARBitmap.Create('deNpjZ2BnGIQAAAjLAA8='); //now only black square if FindBitmapSpiral(Bmp,x,y,0,0,800,600) then writeln('found:' + inttostr(x) + '/' + inttostr(y)); end. It is always true, and x=0, y=0.... , why not return the exact coordinates? Another bug? Yeah that definitely seems to be another bug.. I recommend using FindBitmap() for now - FindBitmap(x, y, Bmp, 0, 0, 800, 600) - because it doesn't have this problem. Quote Link to comment Share on other sites More sharing options...
kimi18 Posted September 15, 2013 Author Share Posted September 15, 2013 pff, yes I use that now, but i want change So, thank you very much Quote Link to comment Share on other sites More sharing options...
Janilabo Posted September 15, 2013 Share Posted September 15, 2013 pff, yes I use that now, but i want change So, thank you very much Yeah, I understand what you mean - it is important to have the Spiral method working correctly aswell. Quote Link to comment Share on other sites More sharing options...
kimi18 Posted September 15, 2013 Author Share Posted September 15, 2013 Yes , expected to be fixed in the next (4.00) version? Quote Link to comment Share on other sites More sharing options...
kimi18 Posted October 22, 2013 Author Share Posted October 22, 2013 Yeah that definitely seems to be another bug.. Is still wrong, when it will be fixed? Quote Link to comment Share on other sites More sharing options...