Search found 16 matches

by Craig
09 Apr 2020, 22:40
Forum: Scripts
Topic: Successive Script commands question
Replies: 3
Views: 981

Re: Successive Script commands question

An update, I changed the Image.ClosePrevious to Image.Close and now the previously opened image does close but the subsequent open new image does not. If I click Run in the script editor it then opens the new image. So it looks like the second command is not Run but is loaded into the script editor....
by Craig
09 Apr 2020, 21:54
Forum: Scripts
Topic: Successive Script commands question
Replies: 3
Views: 981

Successive Script commands question

In my external software program (Lazarus Pascal) I have this call to AA: AASendCommand(AA_SCRIPT_RUN, PChar('Image.ClosePrevious')); AASendCommand(AA_SCRIPT_RUN, PChar('Image.Open("' + theImage + '")')); The intent is to close the last opened image and replace it with a new image. When I do this the...
by Craig
09 Apr 2020, 16:38
Forum: Scripts
Topic: Script to display image and center on a star
Replies: 5
Views: 1194

Re: Script to display image and center on a star

Correct, the application will jump to different locations on the image. Here is a bit more detail about my external software application. The software program is written in Lazarus Pascal. It sets up a Data Base for several thousand CCD images that I have acquired over the last couple of years (phot...
by Craig
09 Apr 2020, 04:48
Forum: Scripts
Topic: Script to display image and center on a star
Replies: 5
Views: 1194

Re: Script to display image and center on a star

I tried the Crop function but it is a bit awkward. The image is indeed cropped and the window migrates across the screen as various stars are viewed. I think a much better method would be to pan and zoom. Can we add this function: Image.Pan(x,y) which centers the image in the window at x and y, and ...
by Craig
09 Apr 2020, 04:31
Forum: Scripts
Topic: Script to display image and center on a star
Replies: 5
Views: 1194

Re: Script to display image and center on a star

The crop function might work, I will give it a try. Is "crop" relative or absolute? In other words, if I do a subsequent crop is it applied to the current crop or back to the original image? The Stars Find might also work since I can add to it. I will try both functions and come back. Hopefully a ne...
by Craig
09 Apr 2020, 01:39
Forum: Scripts
Topic: Script to display image and center on a star
Replies: 5
Views: 1194

Script to display image and center on a star

I have an external application on Windows that performs a Database function on my FITS image library. What I want to do is using the DB manager to select an image and a specific star (x,y pixel coordinates) on the image and have AA display the image, center the image on the star and zoom to a specif...