Call CuteMap tool in TextPad

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
mo
Junior Coder
Posts: 49
Joined: Thu Aug 21, 2003 11:02 pm

Call CuteMap tool in TextPad

Post by mo » Sun Nov 02, 2003 8:12 pm

Another beginners script here convenient if you are always trying to figure out the sizes of images after you have closed your image editing program, or if you are actually putting together a lot of image maps.

This takes the image url selected and copied from a TextPad file and opening an instance of CuteMap (installed as a tool in TextPad) pastes it into CuteMap, retrieves the dimensions and sets up the html code for an image map for that image.

I made this into an .exe that I then installed as a tool in TextPad, so it's just a matter of CTRL+7 to do the whole operation.


//
//Variables
//
Let>WW_TIMEOUT=5
Let>WindowName=TextPad*
CapsOff
Let>SK_DELAY=5

SetFocus>%WindowName%
Wait>1

//Open "Tools/CuteMap (ctrl+6)
Press CTRL
Send>6
Wait>0.5
Release CTRL
Wait>0.5

//Open "New Image Map"
Press ALT
Send>FN
Release ALT
Wait>3
WaitWindowOpen>Open
Wait>0.16

//Paste in copied image url and open image file
Press CTRL
Wait>0.5
Send>v
Wait>0.5
Release CTRL
Wait>0.5
Press>Enter
Wait>0.5
//Ok retrieve from Internet
Press>Enter
Wait>0.05
Best Wishes!
mo

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