Righty-Oh! Our wonderful scripting masters are going to need you to do some work for them before they can point you in the right direction. REMEMBER: some people might offer code to you, but do not expect that we can do the work for you! OK that out of the way, let's break down your request. Correct me if I am wrong in any of this: - You want a key/button to be used as a toggle. - If you are not logged in, you want to log in. - If you are logged in, you want to log out. Now we need to know what do you mean by "log in" and "log out." 1. Are you using a certain program? 2. Do you mean log into Windows, a website, a network share? Or are you using PPPoE (ISDN/A/DSL) or Radius (Dial-Up)? 3. What OS are you using? 4. Do you have Administrator rights? If you can think of any other important info, please post it. Moving to Programming!