Hi,
I need to make action like Image Capture Tool
1. Freeze screen
2. Select and capture screen area to the file. Or may be auto select some rectangle around mouse cursor position (when left/right click happens).
Freeze screen is mandatory.
I need to prevent action called by mouse click.
Best regards.
How to make action like Image Capture Tool
Moderators: JRL, Dorian (MJT support)
http://www.mjtnet.com/forum/viewtopic.php?t=4156
Go all the way to the last sample posted. You may want to modify the script but how to do what you want is in there.
Go all the way to the last sample posted. You may want to modify the script but how to do what you want is in there.
Hi, JRL
First of all, I would like to thank you for your script.
Therefore, I have some comments and suggestions:
So, I was really surprised Macro Scheduler %TEMP_DIR% variable returns a folder name in 8.3 format.
And that is another way to workaround this issue.
I am going to create small code builder (macro creator) for my friends and my own purposes.
It will be looked as dialog with a few buttons with predefined code (like Code Snippets in MS Editor).
One of the actions will be "Select and Capture screen area". That is the reason of my post.
Futher, I don't like an idea to create temporary ~.bmp for Freezing Screen.
I think dialog's image will be drawing much faster if it (image) will be got from clipboard.
So, my suggestion is to add special FreezeScreen command. Something like this
Best regards
First of all, I would like to thank you for your script.
Therefore, I have some comments and suggestions:
So, I was really surprised Macro Scheduler %TEMP_DIR% variable returns a folder name in 8.3 format.
And that is another way to workaround this issue.
Code: Select all
GetEnvVar>USERPROFILE,USERPROFILE
RegistryReadKey>HKEY_CURRENT_USER,Environment,Temp,TEMP_DIR
MDL>%TEMP_DIR%
It will be looked as dialog with a few buttons with predefined code (like Code Snippets in MS Editor).
One of the actions will be "Select and Capture screen area". That is the reason of my post.
Futher, I don't like an idea to create temporary ~.bmp for Freezing Screen.
I think dialog's image will be drawing much faster if it (image) will be got from clipboard.
So, my suggestion is to add special FreezeScreen command. Something like this
Code: Select all
Let>FS_Delay=pause (in seconds) before freezing
FreezeScreen>Source_Image_FilePath(or SCREEN),Destination_File(selected screen area),Returned_TopLeft_&_BottomRight_coordinates_of_captured area
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I don't think you'll find the clipboard any faster than a temporary file.
Best to use the temporary directory for what it was designed for (temporary storage) rather than the clipboard for what it was not, and risking obliterating the user's last clipboard operation.
Best to use the temporary directory for what it was designed for (temporary storage) rather than the clipboard for what it was not, and risking obliterating the user's last clipboard operation.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
So, the FindImagePos command can operate with the SCREEN variable as a haystack image file. I thought there is no temp file using...
... Actually, Dick's macro is good but there are some twitches on the screen when it runs. And I'd like it looks more... emm... ...luxury. Like Image Capture Tool does.
And easy to code of course.
P.S.
I really need Freeze Screen ability called from my selfmade script. I'm planning to use this function very often.
... Actually, Dick's macro is good but there are some twitches on the screen when it runs. And I'd like it looks more... emm... ...luxury. Like Image Capture Tool does.

And easy to code of course.

P.S.
I really need Freeze Screen ability called from my selfmade script. I'm planning to use this function very often.