Jump to content
Sign in to follow this  
Hubert24

connect to Sigma Agent from AutoIt

Recommended Posts

Hubert24

Hi all,

i am a student and new with AutoIT, I have designed a GUI for connecting my USB adaptar into my webpage, but i don't know how to access my webpage via AutoIt, I am blocked here:

how to start the TFTP server.

Start the agent (e.g. by telnet, check how to use telnet from AutoIt)

Connect the agent from AutoIt.

Sigma agent has to support the pin and push button method.

Please if someone can be of help I will be grateful.

Best regards

Hurbert24

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, Hubert, welcome to the forum. You will always get a much better response if you post the code you have thus far (even if it isn't working just as you would like it to). That way we have something to work with, rather than guessing :)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Hubert24

Thanks for your reply.

here below is what I have done sofar, I would read the pin form the station (USB adapter), but I don't even know how to start to write the pin on the webpage. on the webpage there are two buttons pin and Push button. I wish you could understand what i mean.

#NoTrayIcon

#include <GUIConstantsEx.au3>

#include <Array.au3>

; Run the WLAN Utility

Run("C:Program FilesRealtek11n USB Wireless LAN UtilityRtWLan.exe")

; Wait for the Wlan Utility to become active - it is titled "REALTEK 11n USB Wireless LAN Utility"

WinWaitActive("REALTEK 11n USB Wireless LAN Utility")

;case1: going in for PIN

ControlClick("REALTEK 11n USB Wireless LAN Utility", "", "[iD:1252]")

WinWaitActive("Wi-Fi Protected Setup (WPS)")

;if AP is unknown then click on No button

WinWaitActive("Wi-Fi Protected Setup (WPS)", "No")

Send("!n")

WinWaitActive("Wi-Fi Protected Setup - PIN method")

;delay 2seconds in order to allow the machine to read the pin

Sleep( 2000 )

Global $Read = ControlGetText("Wi-Fi Protected Setup - PIN method", "", "[iD:1261]")

If $Read Then

MsgBox(64, "Success", $Read)

Else

MsgBox(16, "Error!", "No PIN was detected!!!")

EndIf

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  

×