July 21, 2006

Nice User Reviews

Filed under: General — Marcus Tettmar @ 8:01 pm

Some nice reviews of Macro Scheduler at SoftPile, here.

And some great reviews at Download.com too.

Some not so great ones too though 🙁 Some are reasonably balanced. After all, I believe in the saying “Horses for Courses” – one can’t expect everyone to like our software. But I was a bit upset about that one saying we refused to honour a refund. I have no recollection of ever refusing a refund where we were unable to provide a solution and I can find no record of ever being “threatened”.

Funny thing is the title of the review says “money back guarantee not honored” yet the body of the review says they did get their money back. Oh well, I guess there’s just no pleasing some people!

July 19, 2006

It’s Hot!

Filed under: General — Marcus Tettmar @ 10:34 am

Yikes, it’s hot here in SW England. Someone told me today will be hottest day on record since 1911! But in the post this morning was a promotional letter from a company selling solar energy systems touting ways to reduce our heating bills. I can’t see that campaign being overly successful right now!

July 13, 2006

Activating System Tray Icons

Filed under: Automation, Scripting — Marcus Tettmar @ 8:47 am

This one has bugged me for years – how to automate activating a system tray icon. For starters, the System Tray is designed to be manipulated with the mouse. We could send mouse clicks to icons in the system tray but for the fact that icons don’t always appear in the same place in the tray. Some systems contract and expand the system tray and on startup icons can be reshuffled and appear in a different order. So sending mouse events is no good.

Well it turns out there is a way to control the system tray with the keyboard. I hadn’t realised this. Thanks to Henk for discovering this. Henk demonstrates here that if you press the Windows key to open the start menu, then Escape to close the start menu keyboard focus is now on the Start button. If you then press Tab a few times focus ends up in the System Tray. If you hover over a System Tray icon you will see a Tool Tip appear above it showing the name of the application. Well the first letter of this text will select this icon. So once you’ve tabbed into the System Tray you can now press the letter key corresponding to the first letter of the icon’s title and it will be selected. Then pressing Enter will activate it.

The number of tabs you need to send to get to the System Tray depends on how you have your task bar set up. If you have the QuickLaunch toolbar enabled you’d need an extra Tab. And in XP with the contracting/expanding System Tray you need to press the right arrow key to move off the contract/expand button. So this approach is not entirely portable but will work on your system.

So I gave this some more thought and came up with a portable approach which focuses the System Tray area directly – without having to open the Start menu and tab around. My approach uses the Win32 API functions FindWindow and FindWindowEx to find the handle of the System Tray Notification Area and then focus it directly. Here’s the code:

Let>WIN_USEHANDLE=1
LibFunc>User32,FindWindowA,h1,Shell_TrayWnd,
LibFunc>User32,FindWindowExA,h2,h1,0,TrayNotifyWnd,
LibFunc>User32,FindWindowExA,h3,h2,0,SysPager,
LibFunc>User32,FindWindowExA,h4,h3,0,ToolbarWindow32,Notification Area
SetFocus>h4
//Change to first letter of icon to activate
Send>v
//If more than one with same first letter, then repeat above line for each
Press Enter

Thanks again to Henk for the tip. See the forum post here.

July 5, 2006

Automated Adobe Reader Install – Waiting for Window Content

Filed under: Automation, Scripting — Marcus Tettmar @ 6:51 am

Here’s a script to automate the installation of Adobe Reader:

http://www.mjtnet.com/usergroup/viewtopic.php?t=3034

This script demonstrates how to wait for windows to change based on the text within them. As with the majority of installers, Adobe Reader’s installer has a series of windows with the same title with differing content, and “Next” buttons to progress through the installation. Since the window title remains the same we can’t wait for the next window based on the window title so we must wait for the content to change. My install script demonstrates use of the FindWindowWithText function inside loops to show how to wait for specific text within the window. Using this approach we can wait for each step in the install to complete.

An alternative method that some might prefer is to use a graphical approach using the Image Recognition Library. Using this we could write a script that waits for an enabled “Next” button and clicks on it when it is found, for example.

June 28, 2006

Don’t Disable Vista Security Features

Filed under: Vista — Marcus Tettmar @ 6:48 am

Great post by Jesper Johansson, Senior Security Strategist at Microsoft, on Vista security and why beta testers should not disable User Account Control just yet: http://tinyurl.com/j5z7x. Worth a read.

June 22, 2006

Benjamin Albert Tettmar

Filed under: Announcements — Marcus Tettmar @ 10:06 pm

benjamin1day.gif If you’re wondering why I have been a bit quiet the last few days this is the reason. Benjamin Albert Tettmar was born yesterday, June 21st at 2020 GMT. Angela and baby are recuperating in hospital after a long and gruelling 48 hour labour! But both are doing just fine and will be home soon.

June 17, 2006

Spelling Complaints

Filed under: General — Marcus Tettmar @ 10:59 am

I just received a reply to my “Macro Scheduler Resume” mailing that I sent out a few weeks ago. The sender was complaining about an incorrect spelling and suggested that my email would be seen as unprofessional if forwarded to other businesses. His complaint was that I used the spelling “Organisation”.

The fact is I am British. I live in England and was educated here. MJT Net Ltd is a British company, registered in England and Wales. Organisation is the correct British spelling. I make no apologies for being British and I can’t help automatically using British spelling when I write.

Definition and Spelling:
http://dictionary.reference.com/browse/organisation

Should I have used the spelling “Organization” in an email sent to my customers? Well, in our software and documentation we do TRY to use American English spellings as much as possible, just because we know that around 50% of our customers are in the USA. But from time to time we might miss one or two. After all we can’t help using British spelling and may not even realise (realize) there is a different American variant sometimes. Also a large number of our customers are European, consisting of many British. So what should we do? Write different versions of the software and documentation for different people? That would be quite inefficient and is simply not practical (although, with the help of others, we are slowly getting our software and documentation translated into other languages).

Anyway, when I write emails I prefer to write in a personal style. My emails are from ME, not a marketing person or a robot. I actually think that in this day and age this is quite important. So I will write using my own style. That means I will use British spellings.

The email I sent was designed to be forwarded on to others. It was a light-hearted way at, hopefully, encouraging a bit of word-of-mouth and introducing customers to our affiliate schemes, whereby they can benefit from recommending our software to others. But there was certainly no obligation to do so. And of course there is also nothing to stop anyone modifying, localising (localizing) or even translating it for their chosen recipients.

So, I make no apologies for being British and for writing the way I was taught to write.

June 12, 2006

Automated Google Rank Checker

Filed under: Automation, Scripting, Web/Tech — Marcus Tettmar @ 10:43 am

I’ve just had a bit of fun writing a couple of small scripts that will search Google for a set of key phrases and find the position of a specified URL for those key phrases in the results. I have built two versions of this script. One with a simple dialog where you can enter a URL and key phrase to search for, and another which takes a set of key phrases in an input file and produces a CSV file with the results and date. This second script can be scheduled to take place every night. The CSV file will grow with the new results and can be opened in Excel and a chart produced showing the trend over time of your website position for those key phrases.

As well as being extremely useful as an automated way to monitor the performance of your keywords in Google, these scripts also demonstrate what can be done with some simple Macro Scheduler scripting and WebRecorder. The scripts are not long and give a glimpse at the sort of things WebRecorder and Macro Scheduler can do to automate web sites and parse the resultant HTML.

Download the scripts here:
http://www.mjtnet.com/usergroup/viewtopic.php?t=2983

Note that these scripts automate IE and therefore operate at the user level just as if you were using Google yourself.

June 9, 2006

Vista too Chatty?

Filed under: Vista — Marcus Tettmar @ 1:10 pm

If you’ve been playing with the Vista betas recently you’ll have noticed how often it asks for your permission to perform admin level functions. By default Vista runs all users as ordinary level users (even if you’re logged in as an Admin) and asks for permission via “Elevation Prompts” every time an admin function is required. All fine and dandy – and much more secure – in theory, but many people have commented on how “chatty” this makes Vista. Early betas were worse and just copying a file can be really quite annoying.

Well, Steve Hiskey of the Windows Security Core Group over at Microsoft has written about how they intend to reduce elevation prompts and how they are working hard, both internally and with external ISVs, to make Vista a little less “noisy”. Well worth a read if you’re concerned about all those pesky elevation prompts, or if you’re writing applications for Vista and want to help improve things.

The UAC team have quite a challenging role – to make using Vista more secure without making it more cumbersome and more difficult to use than XP. They still have a few challenges ahead of them, but I can vouch for their commitment and support for independent software vendors as Steve and his team were extremely supportive in helping us ensure Macro Scheduler could record properly in Vista. So if you’re beta testing Windows Vista be sure to help them out via their blog.

Reducing Elevation Prompts in RC1