| View previous topic :: View next topic |
| Author |
Message |
snirpie
Joined: 02 Apr 2008 Posts: 3
|
Posted: Wed Apr 02, 2008 3:45 pm Post subject: Some troubles with pc anywh. which I want to solve with AHK |
|
|
Hi there,
Let me explain my problem. We've got a supportserver on which we logon with an Active Directory username. On this support server is installed PC Anywhere which we use to watch users who have problems with their pc's.
Everytime we start a connection with pc anywhere to a remote pc we have to provide our username, password and domain name at the logon screen. I want to automate this section, but I have no idea how to do this.
Can somebody help me or at least give me some clues?
Many thanx!
Remco |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 433
|
Posted: Wed Apr 02, 2008 8:59 pm Post subject: |
|
|
snirpie,
let me make sure I understand.
you want your Windows PC to send some keystrokes (username then tab then password then enter, for example) whenever the logon screen appears?
If so, this should not be a problem.
Read the help for WinWait, and read about Send, or SendInput. |
|
| Back to top |
|
 |
snirpie
Joined: 02 Apr 2008 Posts: 3
|
Posted: Thu Apr 03, 2008 7:49 am Post subject: answer |
|
|
Yes, that's indead what I mean. But I haven't worked yet with autohotkey, so I'm a newby
When I start pc anywhere, I have to type a computer number, and afterwards a logon screen appears where I have to provide user name, password and domain name.
Where can I find that help for winwait? |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 433
|
Posted: Thu Apr 03, 2008 8:50 am Post subject: |
|
|
Download and install AutoHotkey, and the help file is in the installation folder.
But, here is a list of commands. |
|
| Back to top |
|
 |
snirpie
Joined: 02 Apr 2008 Posts: 3
|
Posted: Tue May 13, 2008 9:26 am Post subject: |
|
|
Where can I find something about Active Directory commands?
When I start PC anywhere I have to provide the same login credentials as when I logged in the RDP session. That looks a bit stupid to me...
So I want to know which are the commands to provide those credentials with AHK |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Tue May 13, 2008 11:16 am Post subject: |
|
|
Open the window spy program (in your AutoHotkey folder)
Start PC Anywhere, start the login you are targeting. Look very closely at the values in the window spy, hover your mouse, check and remember/get the values. ahk_class/ahk_id are the most important ones.
Create an AHK script. The following is a possible flow of the script, not actual code. Use the manual to look up the commands.
- Use Run to run PC Anywhere ; optional
- Use WinExist()/WinWaitActive/WinActivate to wait for the window
- Set the contents of the login with ControlSetText/ControlSend or if that fails, SendInput, and if even that fails, Click with a paste (SendInput ^p)
HTH |
|
| Back to top |
|
 |
sinkfaze
Joined: 19 Mar 2008 Posts: 138
|
Posted: Tue May 13, 2008 2:17 pm Post subject: |
|
|
You shouldn't need anything special, Active Directory login works like a windows login, the cursor automatically places in the username field; try something like this:
| Code: | WinWaitActive, <name of Active Directory window>
Send <username>{TAB}<password>{ENTER}
return |
_________________ Have trouble searching the site for information? Try Quick Search for Autohotkey. |
|
| Back to top |
|
 |
|