Sign in to follow this  
Followers 0
mcnmihail

ControlClick how to?

5 posts in this topic

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 ]]]] )

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Manjish

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 crop

DONE

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 by mcnmihail

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0