Jump to content
Sign in to follow this  

Deal with the conversation box inside of an app

Recommended Posts


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


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

ID: 1001


Position: 150, 59

Size: 116, 20

ControlClick Coords: 89, 14

Style: 0x500100A0

ExStyle: 0x00000204

Handle: 0x000F06AE

Share this post

Link to post
Share on other sites

Try Edit1 instead of just Edit.


I tried it, but it doesn't work. Maybe I should not have use ControlSend($handle, "", "Edit1", "ok"). Is it possible to use the Winwaitrun() for a conversation box with the TightVNC?

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...