Jump to content

Cannot select a Radio Button


Recommended Posts

When installing Real VNC Free, one of the last things it does is pop up a dialog asking you to configure the server properties. Basically, I need to select the Radio Button No Authentication and click Ok.

The problem is that nothing I try selects the radio button. Here's the Radio Button's info:

>>>> Window <<<<
Title:  VNC Server Properties (Service-Mode)
Class:  #32770
Position:   463, 167
Size:   353, 435
Style:  0x94C800C4
ExStyle:    0x00010101
Handle: 0x0000000000280DD4

>>>> Control <<<<
Class:  Button
Instance:   1
ClassnameNN:    Button1
Name:   
Advanced (Class):   [CLASS:Button; INSTANCE:1]
ID: 1002
Text:   No Authentication
Position:   21, 63
Size:   170, 24
ControlClick Coords:    54, 12
Style:  0x50020009
ExStyle:    0x00000004
Handle: 0x00000000005B0C0A

>>>> Mouse <<<<
Position:   541, 265
Cursor ID:  0
Color:  0x000000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Authentication
No Authentication
VNC Password Authentication
Configure
NT Logon Authentication
Configure
Encryption:
Always Off
Always Off
Generate Keys
Prompt local user to accept connections
Only prompt when there is a user logged on
OK
Cancel
&Apply


>>>> Hidden Text <<<<
Help

And here is every way I've tried to select the radio button:

ControlClick("VNC Server Properties (Service-Mode)", "No Authentication", "[CLASS:Button; INSTANCE:1]","left", 1, 0, 0)
ControlClick("VNC Server Properties (Service-Mode)", "", "[CLASS:Button; INSTANCE:1]","left", 1, 0, 0)
ControlClick("VNC Server Properties (Service-Mode)", "", "[ID:1002]")
ControlClick("VNC Server Properties (Service-Mode)", "Authentication", "[ID:1002]")
ControlClick("VNC Server Properties (Service-Mode)", "No Authentication", "[ID:1002]")
ControlClick("VNC Server Properties (Service-Mode)", "Authentication", "[Text:No Authentication]")

What am I doing wrong?

Edited by El3ctroded
Link to comment
Share on other sites

So I tried using mouseclick too. Well, it wasn't moving the mouse, so I started experimenting. If you call winactivate, mouseclick does NOT work. Calling winactivate seems to completely break mouseclick. Here's the code:

WinActivate ("VNC Server Properties (Service-Mode)")
Sleep(5000)
MouseClick("primary", 20, 20, 1)

Also, if I click the mouse to give a window focus in order to test a script without using winactivate, it also breaks mouseclick. Code:

Sleep(5000);while sleeping, I click the VNC window
MouseClick("primary", 20, 20, 1);when I click the VNC window, this fails

So I tried the newest beta, and all the problems I'm having still exist, and a new one too: Trying to do two single clicks in a row doesn't work without a significant pause between them, whereas the other version I was using, the latest stable one, did it properly.

Please help!

EDIT: All these problems from both posts goes away when I use #RequireAdmin... Ugh. LOL.

Edited by El3ctroded
Link to comment
Share on other sites

There hasn't been a beta version in a year, what version are you running currently? This snippet worked fine for me when I substituted Notepad for the VNC install program.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

There hasn't been a beta version in a year, what version are you running currently? This snippet worked fine for me when I substituted Notepad for the VNC install program.

Well, I saw somewhere the recommendation to use the latest beta if the stable didn't work. I guess I'll go back to the stable and try again, but it's all working now with the beta using the requireadmin option. Version currently using is 3.3.5.6 beta.

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...