Jump to content

Deal with the conversation box inside of an app


Recommended Posts

Hi,

I am writing a script to handle the tightVNC server. Currently, I can activate it, but I can't provide any password to the next conversation box. I expect my code to pass the password into that particular box. The following is what I have so far, but I know it is not right.

Run("C:\Program Files\TightVNC\tvnserver.exe");

$handle = WinGetHandle("[ACTIVE]");

ControlSend($handle, "", "Edit", "ok");

I also think I probably need to use some of the window info and function from autoit to make it work. Any idea?

>>>> Window <<<<

Title: TightVNC Control Auhentication

Class: #32770

Position: 497, 305

Size: 285, 159

Style: 0x94C808CC

ExStyle: 0x00010101

Handle: 0x001D0620

>>>> Control <<<<

Class: Edit

Instance: 1

ClassnameNN: Edit1

Name:

Advanced (Class): [CLASS:Edit; INSTANCE:1]

ID: 1001

Text:

Position: 150, 59

Size: 116, 20

ControlClick Coords: 89, 14

Style: 0x500100A0

ExStyle: 0x00000204

Handle: 0x000F06AE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...