sridhar Posted August 22, 2007 Report Share Posted August 22, 2007 I followed the tutorial at http://www.macros.com/tutorial/ME3Tutorial.htm. The created macro is supposed to be triggered only if Notepad is already open. But it's running all the time. When I don't have Notepad open, it throws an error as in the attached screenshot. What's wrong? Quote Link to comment Share on other sites More sharing options...
mcZenner Posted August 22, 2007 Report Share Posted August 22, 2007 set the scope to Notepad if you don't want it to run, the tutorial sets it to global Quote Link to comment Share on other sites More sharing options...
kevin Posted August 22, 2007 Report Share Posted August 22, 2007 Another option is to write the macro this way: If Window Title "notepad" is running Activate Window: "notepad" Date/Time: Type out "dddd, MMMM dd, yyyy" Text Type: <SPACE> Date/Time: Type out "h:mm:ss AMPM" Text Type: <ENTER> End If or this wayIf Window Title "notepad" is running Activate Window: "notepad" Date/Time: Type out "dddd, MMMM dd, yyyy h:mm:ss AMPM" Text Type: <ENTER> End If Also note that thes macros use the newer 'Date/Time' macro command instead of the older 'Date' and 'Time' commands. We will update the the tutorial to make it clearer. Thank you for pointing out the problem. Quote Link to comment Share on other sites More sharing options...
sridhar Posted August 23, 2007 Author Report Share Posted August 23, 2007 Thanks. Also there seems to be a problem in this forum's attachment feature. When I click on the image thumbnail in the first post, the full image doesn't open up, but see junk characters. Quote Link to comment Share on other sites More sharing options...
blopib Posted August 23, 2007 Report Share Posted August 23, 2007 I have no problem with seeing the large image from the thumbnail. Quote Link to comment Share on other sites More sharing options...
Cory Posted August 24, 2007 Report Share Posted August 24, 2007 works for me too Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.