mcnmihail Posted January 19, 2009 Share Posted January 19, 2009 I want to make a Crop in CS2, crop to one or more photos, my problem is that when I send press C to crop .. then I need to Click and hold and drag mouse over the photo. from mouse x:2 y:2 to mouse x:200 y:200 and then release. I try some help from F1 but with autoit window info I don`t get any ID. so i need some help pls. tnx Run("C:\Program Files\Adobe\Adobe Photoshop CS2\Photoshop.exe") WinWaitActive("Adobe Photoshop") For $i = 221 to 221 send('{alt}') send("{DOWN 2}") send("{ENTER }") WinWaitActive("Open") Send("0" & $i & ".jpg") send("{ENTER}") send('{c}') bad ->>>>> ControlClick ( "0221.jpg @ 33,3% (RGB/8#)", "", 1 [, "right" [, 2 [, 4 [, 6 ]]]] ) Link to comment Share on other sites More sharing options...
tannerli Posted January 19, 2009 Share Posted January 19, 2009 I actually have no photoshop at this computer where i am sitting right now, but afaik, photoshop has a built-in scripting or macro feature. I think its accessed over the File-menu. Already tried that? Link to comment Share on other sites More sharing options...
mcnmihail Posted January 19, 2009 Author Share Posted January 19, 2009 I actually have no photoshop at this computer where i am sitting right now, but afaik, photoshop has a built-in scripting or macro feature. I think its accessed over the File-menu. Already tried that?YEs but I need to crop the image to a specify W and H - Auto Crop & Straighten crop the image by the "eye"I need to crop by w: 300 mm and h: 200 mm Link to comment Share on other sites More sharing options...
Manjish Posted January 19, 2009 Share Posted January 19, 2009 (edited) Whats this?? remove all those square brackets. ControlClick ( "0221.jpg @ 33,3% (RGB/8#)", "", 1 [, "right" [, 2 [, 4 [, 6 ]]]] ) see what you can do is this: first set the cordinates of ur top left corner, by "mousemove" then "mousedown" to click and drag. Then "mousemove" to ur bottom left corner. and then mousemvoe to ur bottom right corner and finally mouseup. This will do the selection of the area to crop Edited January 19, 2009 by Manjish [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
mcnmihail Posted January 19, 2009 Author Share Posted January 19, 2009 (edited) Whats this?? remove all those square brackets. see what you can do is this: first set the cordinates of ur top left corner, by "mousemove"then "mousedown" to click and drag. Then "mousemove" to ur bottom left corner. and then mousemvoe to ur bottom right corner and finally mouseup.This will do the selection of the area to cropDONE I record a script in photoshop to make the crop and two lines in autoit to click ok and repeat ... and I`m done TNX for help Edited January 19, 2009 by mcnmihail Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now