06-03-2016, 08:54 AM
Thanks for the code. I can't get it to work. My code is not saving a file to my hard drive. Here's my code so far.
Macro scans user's existing image or grabs new one - use when exporting my macros that scan screen
Macro scans user's existing image or grabs new one - use when exporting my macros that scan screen
SetEnvVar "aakit" "D:\0 aa\project - tools\aakit" ;;this can be in a function that is executed when QM or exe process starts. Then %mydir% can be used anywhere in strings with QM file functions.
str bmpFile="$aakit$\qm captured image 58965.bmp"
if !FileExists(bmpFile)
,if(!CaptureImageOrColor(0 0 0 bmpFile)) ret
scan(bmpFile 0 0 3|16)