Dialog with refreshing images?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
pilan67
Newbie
Posts: 4
Joined: Sun Sep 04, 2011 4:52 pm

Dialog with refreshing images?

Post by pilan67 » Thu Oct 20, 2011 10:13 am

Hello!

I have a big problem (again i know... :oops: )

It is possible to create a script based on Dialog box with auto-refreshing images?

I'll try to explain what I need at example.

I need status monitor script on 3 different computers connected via hamachi or FTP.
Computer A is main, what means that computer B and C sends screenshots to him, and then Computer "A" shares with B and C. :twisted:

Image

Another eg. (more scripted)

Computer A capture specified screen area and saves at local hard disk.
Computer B capture specified screen area and sends to Computer A via hamachi or FTP.
Computer C capture specified screen area and sends to Computer A via hamachi or FTP.

Then

Computer A loads local images from A,B,C at Dialog Box
Computer B loads ABC images via Computer A (FTP/hamachi)
Computer C loads ABC images via Computer A (FTP/hamachi)

Few secs sleep and loop.

And now i have a few questions :roll:
Q1. It is possible to auto refreshing images in Dialog Box? (After each loop)
Q2. It is very important to images are fit to dialog box w/h(65x65)
Q3. I already have script which save images on Main computer via Hamachi, but it is possible to add extra edit box to easier change coordinates at each computer?

Image

Something like this:
ScreenCapture>$ValueFromEditBox1,127.0.0.1\Sharedfolder\example.jpg

Q4. Yeah im lazy person but basing at Q3 it is possible to add extra edit box to easier change ip adress?

Image

Something like:
ScreenCapture>354,445,447,510,$ValueFromEditBox2\Sharedfolder\example.jpg

At the end I'll add script which are already done
Dialog>Dialog1
Caption=Dialog1
Width=368
Height=158
Top=490
Left=822
Image=C:\A.jpg,16,16,65,65,msImage1,0
Image=C:\B.jpg,96,16,65,65,msImage2,0
Image=C:\C.jpg,176,16,65,65,msImage3,0
Label=Comp. A,24,88,true
Label=Comp. B,104,88,true
Label=Comp. C,184,88,true
Button=Start,263,19,75,25,0
Button=Stop,263,56,75,25,0
EndDialog>Dialog1

After Start is clicked
ScreenCapture>355,449,451,516,\\IP(or local for comp A)\shared\A(B or C.jpg)

Then waits 5 secs and refreshing all another 5 secs and loop.

After Stop is clicked
Pauses script and rapidly send to Comp A "stopped.jpg" image.
And im very sorry for my bad english language :(.

Thanks for everything!

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 Oct 20, 2011 11:47 am

Looks like you are using an old version with the old dialog system/syntax.

With v12 it is very easy to change an image at any time. Just use SetDialogProperty and set the LoadImage property to the filename of the image.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

pilan67
Newbie
Posts: 4
Joined: Sun Sep 04, 2011 4:52 pm

Post by pilan67 » Thu Oct 20, 2011 1:13 pm

Oh. I'll upgrade Msched to retail version and try.

Thanks for advise :)

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