AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some troubles with pc anywh. which I want to solve with AHK

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
snirpie



Joined: 02 Apr 2008
Posts: 3

PostPosted: Wed Apr 02, 2008 3:45 pm    Post subject: Some troubles with pc anywh. which I want to solve with AHK Reply with quote

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
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 433

PostPosted: Wed Apr 02, 2008 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
snirpie



Joined: 02 Apr 2008
Posts: 3

PostPosted: Thu Apr 03, 2008 7:49 am    Post subject: answer Reply with quote

Yes, that's indead what I mean. But I haven't worked yet with autohotkey, so I'm a newby Smile

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
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 433

PostPosted: Thu Apr 03, 2008 8:50 am    Post subject: Reply with quote

Download and install AutoHotkey, and the help file is in the installation folder.
But, here is a list of commands.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
snirpie



Joined: 02 Apr 2008
Posts: 3

PostPosted: Tue May 13, 2008 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Tue May 13, 2008 11:16 am    Post subject: Reply with quote

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

PostPosted: Tue May 13, 2008 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group