susu6514
Members-
Posts
12 -
Joined
-
Last visited
susu6514's Achievements
Seeker (1/7)
0
Reputation
-
Any "Windows Connect Now" coding?
susu6514 replied to susu6514's topic in AutoIt General Help and Support
Hi guinness, It doesn't look like having "windows connect now" api included. Seeing so many dll, I realize it must take lots of works to achieve it. Thanks! -
Hello, From the forum, I find that NativeWifi is very useful. However, it seems that it is not possible to setup WPS (wi-fi protected setup) connection. And I find that Windows does supply a mehtod - WCN (Windows connect now) which is very useful for WPS setup. The WCN reference can be found on http://msdn.microsoft.com/en-us/library/windows/desktop/dd941820(v=vs.85).aspx It is too difficult for me to write in C or VB since I've only coding experience in AutoIt. So, if anyone has gotten WCN coding, could you share some with us? Thank you, Susu
-
Send UDP packet with specific source port
susu6514 replied to susu6514's topic in AutoIt General Help and Support
Thank you, Martin. Maybe I should use WinPcap instead. -
Send UDP packet with specific source port
susu6514 posted a topic in AutoIt General Help and Support
Hi I'm doing some test and want to mimicry a DNS behavior but I find I can't use a specific port when sending UDP packet. The behavior is like this. PCA sends DNS query to PCB (UDP port 1234 to 53) PCB sends back DNS reply to PCA (UDP port 53 to 1234) Is there a way to do this? Thank you. -
Unable to getobjbyname within a frame
susu6514 replied to susu6514's topic in AutoIt General Help and Support
Finally solved this problem by myself. It was because there're frames within frame. -
Unable to getobjbyname within a frame
susu6514 replied to susu6514's topic in AutoIt General Help and Support
Thank you but still not work.. I used $add = _IETagnameGetCollection ( $oIE, "WPethr", 52 ) but it still returned $_IEStatus_NoMatch (Name: WPethr1, Index: 52) Following are html elements generated by IE builder. IE-Builder v2.0.1 Object Type Object Count DispHTMLElementCollection 135 Characteristics of all HTML Elements on page Index Tag Name Id Extra Information Object Type 0 HTML DispHTMLHtmlElement 1 HEAD DispHTMLHeadElement 2 TITLE DispHTMLTitleElement 3 LINK DispHTMLLinkElement 4 SCRIPT DispHTMLScriptElement 5 SCRIPT DispHTMLScriptElement 6 META DispHTMLMetaElement 7 META GENERATOR DispHTMLMetaElement 8 BODY DispHTMLBody 9 FORM DispHTMLFormElement 10 INPUT submit_flag Form Input Type: hiddenValue: ether DispHTMLInputElement 11 SCRIPT DispHTMLScriptElement 12 INPUT conflict_wanlan Form Input Type: hiddenValue: 0 DispHTMLInputElement 13 INPUT change_wan_type Form Input Type: hiddenValue: 0 DispHTMLInputElement 14 INPUT run_test Form Input Type: hiddenValue: 0 DispHTMLInputElement 15 INPUT ether_ipaddr Form Input Type: hiddenValue: 0 DispHTMLInputElement 16 INPUT ether_subnet Form Input Type: hiddenValue: 0 DispHTMLInputElement 17 INPUT ether_gateway Form Input Type: hiddenValue: 0 DispHTMLInputElement 18 INPUT ether_dnsaddr1 Form Input Type: hiddenValue: 0 DispHTMLInputElement 19 INPUT ether_dnsaddr2 Form Input Type: hiddenValue: 0 DispHTMLInputElement 20 INPUT ether_dnsaddr3 Form Input Type: hiddenValue: 0 DispHTMLInputElement 21 TABLE DispHTMLTable 22 TBODY DispHTMLTableSection 23 TR DispHTMLTableRow 24 TD DispHTMLTableCell 25 A Link Text: Account Name (If Required)href: javascript:loadhelp('_BAS_ether','acname'DispHTMLAnchorElement 26 B DispHTMLPhraseElement 27 TD DispHTMLTableCell 28 INPUT system_name Form Input Type: textValue: 0 DispHTMLInputElement 29 TR DispHTMLTableRow 30 TD DispHTMLTableCell 31 A Link Text: Domain Name (If Required)href: javascript:loadhelp('_BAS_ether','doname')DispHTMLAnchorElement 32 B DispHTMLPhraseElement 33 TD DispHTMLTableCell 34 INPUT domain_name Form Input Type: textValue: 0 DispHTMLInputElement 35 TR DispHTMLTableRow 36 TD DispHTMLTableCell 37 IMG Img SRC: http://192.168.1.1/liteblue.gifalt Text: 0 DispHTMLImg 38 TR DispHTMLTableRow 39 TD DispHTMLTableCell 40 A Link Text: Internet IP Addresshref: javascript:loadhelp('_BAS_ether','InternetIP')DispHTMLAnchorElement 41 B DispHTMLPhraseElement 42 TR DispHTMLTableRow 43 TD DispHTMLTableCell 44 INPUT WANAssign Form Input Type: radioValue: dhcp DispHTMLInputElement 45 TR DispHTMLTableRow 46 TD DispHTMLTableCell 47 INPUT WANAssign Form Input Type: radioValue: static DispHTMLInputElement 48 TR DispHTMLTableRow 49 TD DispHTMLTableCell 50 IMG Img SRC: http://192.168.1.1/spacer.gifalt Text: 0 DispHTMLImg 51 TD DispHTMLTableCell 52 INPUT WPethr1 Form Input Type: textValue: 0 DispHTMLInputElement 53 INPUT WPethr2 Form Input Type: textValue: 0 DispHTMLInputElement 54 INPUT WPethr3 Form Input Type: textValue: 0 DispHTMLInputElement 55 INPUT WPethr4 Form Input Type: textValue: 0 DispHTMLInputElement 56 TR DispHTMLTableRow 57 TD DispHTMLTableCell 58 IMG Img SRC: http://192.168.1.1/spacer.gifalt Text: 0 DispHTMLImg 59 TD DispHTMLTableCell 60 INPUT WMask1 Form Input Type: textValue: 0 DispHTMLInputElement 61 INPUT WMask2 Form Input Type: textValue: 0 DispHTMLInputElement 62 INPUT WMask3 Form Input Type: textValue: 0 DispHTMLInputElement 63 INPUT WMask4 Form Input Type: textValue: 0 DispHTMLInputElement 64 TR DispHTMLTableRow 65 TD DispHTMLTableCell 66 IMG Img SRC: http://192.168.1.1/spacer.gif alt Text: 0 DispHTMLImg 67 TD DispHTMLTableCell 68 INPUT WGateway1 Form Input Type: textValue: 0 DispHTMLInputElement 69 INPUT WGateway2 Form Input Type: textValue: 0 DispHTMLInputElement 70 INPUT WGateway3 Form Input Type: textValue: 0 DispHTMLInputElement 71 INPUT WGateway4 Form Input Type: textValue: 0 DispHTMLInputElement 72 TR DispHTMLTableRow 73 TD DispHTMLTableCell 74 IMG Img SRC: http://192.168.1.1/liteblue.gifalt Text: 0 DispHTMLImg 75 TR DispHTMLTableRow 76 TD DispHTMLTableCell 77 A Link Text: Domain Name Server (DNS) Addresshref: javascript:loadhel 78 B DispHTMLPhraseElement 79 TR DispHTMLTableRow 80 TD DispHTMLTableCell 81 INPUT DNSAssign Form Input Type: radioValue: 0 DispHTMLInputElement 82 TR DispHTMLTableRow 83 TD DispHTMLTableCell 84 INPUT DNSAssign Form Input Type: radioValue: 1 DispHTMLInputElement 85 TR DispHTMLTableRow 86 TD DispHTMLTableCell 87 IMG Img SRC: http://192.168.1.1/spacer.gifalt Text: 0 DispHTMLImg 88 TD DispHTMLTableCell 89 INPUT DAddr1 Form Input Type: textValue: 0 DispHTMLInputElement 90 INPUT DAddr2 Form Input Type: textValue: 0 DispHTMLInputElement 91 INPUT DAddr3 Form Input Type: textValue: 0 DispHTMLInputElement 92 INPUT DAddr4 Form Input Type: textValue: 0 DispHTMLInputElement 93 TR DispHTMLTableRow 94 TD DispHTMLTableCell 95 IMG Img SRC: http://192.168.1.1/spacer.gifalt Text: 0 DispHTMLImg 96 TD DispHTMLTableCell 97 INPUT PDAddr1 Form Input Type: textValue: 0 DispHTMLInputElement 98 INPUT PDAddr2 Form Input Type: textValue: 0 DispHTMLInputElement 99 INPUT PDAddr3 Form Input Type: textValue: 0 DispHTMLInputElement 100 INPUT PDAddr4 Form Input Type: textValue: 0 DispHTMLInputElement 101 TR third_dns DispHTMLTableRow 102 TD DispHTMLTableCell 103 IMG Img SRC: http://192.168.1.1/spacer.gifalt Text: 0 DispHTMLImg 104 TD DispHTMLTableCell 105 INPUT TDAddr1 Form Input Type: textValue: 0 DispHTMLInputElement 106 INPUT TDAddr2 Form Input Type: textValue: 0 DispHTMLInputElement 107 INPUT TDAddr3 Form Input Type: textValue: 0 DispHTMLInputElement 108 INPUT TDAddr4 Form Input Type: textValue: 0 DispHTMLInputElement 109 TR DispHTMLTableRow 110 TD DispHTMLTableCell 111 IMG Img SRC: http://192.168.1.1/liteblue.gifalt Text: 0 DispHTMLImg 112 TR DispHTMLTableRow 113 TD DispHTMLTableCell 114 A Link Text: Router MAC Addresshref: javascript:loadhelp('_BAS_ether','localaddress') 115 B DispHTMLPhraseElement 116 TR DispHTMLTableRow 117 TD DispHTMLTableCell 118 INPUT MACAssign Form Input Type: radioValue: 0 DispHTMLInputElement 119 TR DispHTMLTableRow 120 TD DispHTMLTableCell 121 INPUT MACAssign Form Input Type: radioValue: 1 DispHTMLInputElement 122 TR DispHTMLTableRow 123 TD DispHTMLTableCell 124 INPUT MACAssign Form Input Type: radioValue: 2 DispHTMLInputElement 125 TD DispHTMLTableCell 126 INPUT Spoofmac Form Input Type: textValue: 0 DispHTMLInputElement 127 TR DispHTMLTableRow 128 TD DispHTMLTableCell 129 IMG Img SRC: http://192.168.1.1/liteblue.gifalt Text: 0 DispHTMLImg 130 TR DispHTMLTableRow 131 TD DispHTMLTableCell 132 INPUT Apply Form Input Type: submitValue: Apply DispHTMLInputElement 133 INPUT Cancel Form Input Type: buttonValue: Cancel DispHTMLInputElement 134 INPUT Test Form Input Type: submitValue: Test DispHTMLInputElement -
Hi, I have a Netgear router and I want to setup its WAN IP, however, it always can't find the input box if within a frame. The code which can set the WPethr1 value to 200 is as follow: CodeA $sUrl = "http://192.168.1.1" $oIE = _IECreate ($sUrl,0,1,1) _IELoadWait ($oIE) $oFrame = _IEFrameGetObjByName($oIE, "contents") _IELinkClickByText ($oFrame, "Basic Settings") _IENavigate ($oIE, "http://192.168.1.1/BAS_ether.htm") $add=_IEGetObjByName($oIE, "WPethr1") sleep(2000) _IEFormElementSetValue ($add, "200") And following code AutoIt always shows "$_IEStatus_NoMatch (Name: WPethr1, Index: 0)" CodeB $sUrl = "http://192.168.1.1" $oIE = _IECreate ($sUrl,0,1,1) _IELoadWait ($oIE) $oFrame = _IEFrameGetObjByName($oIE, "contents") _IELinkClickByText ($oFrame, "Basic Settings") $oFrame2 = _IEFrameGetObjByName($oIE, "formframe") sleep(2000) $add=_IEGetObjByName($oFrame2,"WPethr1") _IEFormElementSetValue ($add, "200") I'm using AutoIt to setup a Netgear router to do some testing. And to configure this router correctly is to setup the values within its frames. That means I cannot use _IENavigate ($oIE, "http://192.168.1.1/BAS_ether.htm") which is mentioned in above codeA. Please will someone help me. Thank you. Susu
-
Use specific source port number
susu6514 replied to susu6514's topic in AutoIt General Help and Support
To be more correctly, I'd like to do PC1(Src port 1024) ------>NAT Gateway (Src port 49152)--------> PC2(Receive TCP or UDP packets) From PC2, I'd like to know the incoming port is 49152 and I'd like to show it to the users and maybe send back to port 49152. -
Use specific source port number
susu6514 replied to susu6514's topic in AutoIt General Help and Support
Yes, I did. My environment is like this PC1(Send TCP or UDP) ------>NAT Gateway --------> PC2(Receive TCP or UDP packets) When PC1 sends the packets through NAT device, the source port will be translated to other ports. What can I do to know the source port sent from NAT on PC2? Thank you. -
Hi, I'm wondering if we can make the TCP/UDP to use a specific source port number to connect to the server. And on server side, if we can know the client's source port if they are connected to our server and reject or accept some ports. Thanks in advance. Su
-
How to display a 2-digits variable in Dos command
susu6514 replied to susu6514's topic in AutoIt General Help and Support
I changed Send("{" & $i & "}") to Send(&i) and problem solved. As to other incorrect usage, I will look into it. Thanks for the reply. -
Hi, I'm new to autoit and I have a problem to print a "2-digit" variable in DOS command prompt. Here is my code. Dim $i $i=10 While $i <=11 Run("cmd.exe") WinWaitActive("C:\WINDOWS\system32\cmd.exe") Send("{" & $i & "}") sleep (2000) send("{ENTER}") send("type digonly.txt|sed -e 1,3d -e5,8d > 9_") send("{"&$i&"}") sleep (1000) send(".txt") send("{ENTER}") WinClose("C:\WINDOWS\system32\cmd.exe") $i=$i+1 WEnd When I run the above program, the variable,i, should start from "10" but as I send i to DOS prompt by using "Send("{" & $i & "}")" the result output in DOS prompt is "1". I am so confused that why it cannot display "10" in command prompt. Please some one help me. Thank you so much!