Sign in to follow this  
Followers 0
graysn05

Automation of wireless network setup

6 posts in this topic

#1 ·  Posted (edited)

Where the comments are i just sent characters to get a proof of concept.

Problems

1. I need to check the network list to see if there was an attempt at setting up our network

2. After the network is setup there is a tooltip (made by windows) that i need to click to have windows prompt the user for credentials

3. I need to find out how to control click tabs inside of properties windows

if anyone would like to help and needs screen shots let me know

thanks in advance

;Setup UNI-Wireless connection
run         ( "control netconnections" )

WinWaitActive   ( "Network Connections" )
Send ( "w" )
Send ( "!f" )
Send ( "{Up 2}" )
Send ( "{Enter}" )

WinWaitActive ( "Wireless Network Connection Properties" )
Send ( "+{Tab 2}" )
Send ( "{Space}" )
Send ( "{Right}" )
Send ( "!a" )

WinWaitActive   ( "Wireless network properties" )
Send        ( "UNI-Wireless" )
Send        ( "{Tab}" )
Send        ( "{Down 2}" )
Send        ( "{Tab}" )
Send        ( "{Up}" )
;ctrlclick auth. tab (problem #3************************)
Send        ( "^{Tab}" )
Send        ( "{Up}" )
;ctrlclick properties
Send        ( "{Tab}" )
Send        ( "{Enter}" )

WinWaitActive   ( "Protected EAP Properties" )
;ControlClick ( "Protected EAP Properties", "Select Authentication", "Configure...")
Send        ( "{Tab 5}" )
Send        ( "{Enter}" )
WinWaitActive   ( "EAP MSCHAPv2 Properties" )
Send        ( "{Tab 2}" )
Send        ( "{Space}" )
ControlClick ( "EAP MSCHAPv2 Properties", "", "OK")
WinWaitActive   ( "Protected EAP Properties" )
ControlClick ( "Protected EAP Properties", "", "OK")

;need to check on ctrl clicking checkboxs
WinWaitActive   ( "Wireless network properties" )
Send        ( "{Tab}" )
Send        ( "{Space}" )
ControlClick ( "Wireless network properties", "", "OK" )

WinWaitActive ( "Wireless Network Connection Properties" )
ControlClick ( "Wireless Network Connection Properties", "", "OK" )
WinWaitClose ( "Wireless Network Connection Properties" )


;Problem #2 attempt*****************************
WinWait ( "Wireless Network Connection", "Click here to select a certificate" )
ToolTip ( "windows tooltip was found" )
ControlClick ( "Wireless Network Connection", "Click here to select a certificate" )
Edited by graysn05

Share this post


Link to post
Share on other sites



Where the comments are i just sent characters to get a proof of concept.

Problems

1. I need to check the network list to see if there was an attempt at setting up our network

2. After the network is setup there is a tooltip (made by windows) that i need to click to have windows prompt the user for credentials

3. I need to find out how to control click tabs inside of properties windows

if anyone would like to help and needs screen shots let me know

thanks in advance

;Setup UNI-Wireless connection
run         ( "control netconnections" )

WinWaitActive   ( "Network Connections" )
Send ( "w" )
Send ( "!f" )
Send ( "{Up 2}" )
Send ( "{Enter}" )

WinWaitActive ( "Wireless Network Connection Properties" )
Send ( "+{Tab 2}" )
Send ( "{Space}" )
Send ( "{Right}" )
Send ( "!a" )

WinWaitActive   ( "Wireless network properties" )
Send        ( "UNI-Wireless" )
Send        ( "{Tab}" )
Send        ( "{Down 2}" )
Send        ( "{Tab}" )
Send        ( "{Up}" )
;ctrlclick auth. tab (problem #3************************)
Send        ( "^{Tab}" )
Send        ( "{Up}" )
;ctrlclick properties
Send        ( "{Tab}" )
Send        ( "{Enter}" )

WinWaitActive   ( "Protected EAP Properties" )
;ControlClick ( "Protected EAP Properties", "Select Authentication", "Configure...")
Send        ( "{Tab 5}" )
Send        ( "{Enter}" )
WinWaitActive   ( "EAP MSCHAPv2 Properties" )
Send        ( "{Tab 2}" )
Send        ( "{Space}" )
ControlClick ( "EAP MSCHAPv2 Properties", "", "OK")
WinWaitActive   ( "Protected EAP Properties" )
ControlClick ( "Protected EAP Properties", "", "OK")

;need to check on ctrl clicking checkboxs
WinWaitActive   ( "Wireless network properties" )
Send        ( "{Tab}" )
Send        ( "{Space}" )
ControlClick ( "Wireless network properties", "", "OK" )

WinWaitActive ( "Wireless Network Connection Properties" )
ControlClick ( "Wireless Network Connection Properties", "", "OK" )
WinWaitClose ( "Wireless Network Connection Properties" )


;Problem #2 attempt*****************************
WinWait ( "Wireless Network Connection", "Click here to select a certificate" )
ToolTip ( "windows tooltip was found" )
ControlClick ( "Wireless Network Connection", "Click here to select a certificate" )
for navigating tabs, i typically will do a send("^{PGUP}") or send("^{PGDWN}") as far as detecting the tooltip window, you should be able to identify it by class to click on it

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

for navigating tabs, i typically will do a send("^{PGUP}") or send("^{PGDWN}") as far as detecting the tooltip window, you should be able to identify it by class to click on it

Using the window info program i don't get any information on the windows "ballon".

Share this post


Link to post
Share on other sites

Controls inside a browser (any browser) are not windows controls. You will only see a top level control for the overall "container" with windows info tool.

You can manipulate content with keyboard commands as you are doing, but you can get much more precise and flexible control with IE Automation using the _IE* functions (IE is the only browser that exposes an external COM API to allow this).

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I am not trying to navigate tabs in a browser. The tabs are inside the wireless network properties. Does anyone know how to send a click to a windows created tooltip?

Share this post


Link to post
Share on other sites

if anyone would like to help and needs screen shots let me know

I think a screenshot would really help.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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  
Followers 0