Help With A Couple Things.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Tycrum
Newbie
Posts: 2
Joined: Wed Feb 02, 2011 10:13 pm

Help With A Couple Things.

Post by Tycrum » Wed Feb 02, 2011 10:54 pm

Hello, maybe this should be in the beginners section, but I'm trying to do a couple things and am having issues. I'm running V12 and just upgraded from 7. Haven't worked with this much in a few years.

I'm sending http links to devices via smtp as SMS messages. Due to the length, sometimes the message is split in two. I was trying to pass the URL from a variable to something like tiny url and shorten it in the background and pass the resultant link. I was trying to avoid having browser windows pop open on the machine so I was wondering if it can be done with httprequest or something that I have overlooked. Has anyone done this before?

I was also having trouble passing httprequest through a proxy, but it seems to be working now using username@domain instead of username\domain.

Thanks for any feedback.

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 Feb 03, 2011 7:41 am

Here you go:

Code: Select all

Input>URLToShrink,Enter a URL:,http://www.mjtnet.com/macro_scheduler.htm
Let>tiny_request=http://tinyurl.com/api-create.php?url=%URLToShrink%
HTTPRequest>tiny_request,,GET,,new_link
MessageModal>new_link
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Tycrum
Newbie
Posts: 2
Joined: Wed Feb 02, 2011 10:13 pm

Got it.

Post by Tycrum » Thu Feb 03, 2011 8:41 am

Thanks. I found that URL Link later this evening and was able to get it to work at home with no proxy. Hopefully using the proxy will go better today.

I'm impressed at the power of the software, I've been using it as a keystroke sender for years. This will help a lot!

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