Newbie Question

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
CZ
Newbie
Posts: 18
Joined: Wed Feb 07, 2007 7:51 am

Newbie Question

Post by CZ » Wed Feb 07, 2007 8:02 am

I just got the trial version of the Macro Scheduler. It seems like a great program. I am very new to macros and programming. I was trying to be able to get the screen saver to activate w/ hot keys and also password protect on resume. Just like in Control Panel. I was able to get the screen saver to start, but I don't know how to get the password protect on resume. I would really appreciate any assistance in this. Also are there any books that I could get to assist in writing the macros or is this a learn as you go, trial and error.

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 07, 2007 8:16 am

Hi CZ,

I'm not clear on what you are trying to do - something to do with the screensaver, are you trying to control a screensaver from Macro Scheduler? Can you try to explain what you want to achieve and then we may have a better idea of how to help you.

In regards books, there is the manual, a PDF version of which is available on the support page if you don't want to purchase the printed book. You should definitely read the Scripting Windows for Beginners section in the manual/help file. Also read this:
http://www.mjtnet.com/blog/2006/01/17/h ... on-script/

After that you can search these forums and Scripts & Tips section for a heap of example code. And then of course feel free to ask any questions here. There are many experienced coders here only too happy to help.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

CZ
Newbie
Posts: 18
Joined: Wed Feb 07, 2007 7:51 am

Newbie Question on Screen Saver

Post by CZ » Wed Feb 07, 2007 6:33 pm

I really appreciate the very quick response. Thank you very much. Sorry probably didn't explain the question very well. What I'm trying to do is activate the screen saver on the fly w/ it having password protection. This is so when there is mouse movement or key pressed the password screen pops up requesting a password to be able to continue. I was able to get the screen saver to execute on a hot key combination, but when I move the mouse or a key is pressed the password screen doesn't pop up. I would like to have the password protection to prevent others from being able to look or get at info on computer while I am away from the computer. I would appreciate any response. Hope this is more clear than what I had written before.

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 07, 2007 6:45 pm

Why not just lock the workstation:

Run Program>rundll32 user32.dll,LockWorkStation

That one-line macro will lock the workstation.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

CZ
Newbie
Posts: 18
Joined: Wed Feb 07, 2007 7:51 am

Post by CZ » Thu Feb 08, 2007 3:56 pm

Thanks for the quick reply. I tried and it works great. Again thanks for the help.

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Feb 08, 2007 4:12 pm

Hi CZ,

The following three lines of code will do the same thing as the above:

Code: Select all

Press LWinKey
Send>l
Release LWinKey
This is just automating the keyboard shortcut method of manully locking the workstation... by pressing WindowsKey-L (hold down a "Windows Key" and tap the L key). Very handy to know this keyboard shortcut if you just want to step away from the machine for a bit.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

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