imglib

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
hvdberg
Junior Coder
Posts: 39
Joined: Wed Jul 12, 2006 1:50 pm
Location: Netherlands

imglib

Post by hvdberg » Thu Aug 17, 2006 1:47 pm

Just did a copy/paste of this code from the helpfile of the Image Library

Code: Select all

Let>imglibDLL=%SCRIPT_DIR%\imglib.dll
LibFunc>imglibDLL,GetScreenRes,screen,ref:0,ref:0
ScreenCapture>0,0,screen_1,screen_2,d:\screen.bmp

It yielded me a 0-byte bmp d:\screen.bmp

So I did two MDL commands with %screen_1% and %screen_2% to find out what was going on. With my screen resolution I was expecting 768 and 1024 respectively but the MDL just happily echoed "%screen_1%" and "%screen_2%" (without the quotes). Just to rule out a possible typo in the help I also attempted mdl %screen1% and %screen2% but that didn't work either.

Anybody else have the same experience?

TIA
Henk

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Aug 17, 2006 2:09 pm

- Which version of Macro Scheduler are you using?

- Is imglib.dll really in the script directory?

- What is the value of screen after the second line (i.e. has it been able to load the function?)

Works for me if I ensure imglib.dll is in %SCRIPT_DIR%.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

hvdberg
Junior Coder
Posts: 39
Joined: Wed Jul 12, 2006 1:50 pm
Location: Netherlands

Post by hvdberg » Thu Aug 17, 2006 3:04 pm

Thanks Marcus,

Checking where the DLL was, I learned that (as per my own instruction at install time) it was in D:\Program Files\MJT Net Ltd\Macro Scheduler Image Library.

Moving it to the MS directory fixed it.

(8.0.3 by the way)

Best,
Henk

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts