Leaderboard
Popular Content
Showing content with the highest reputation on 04/13/2016 in all areas
-
Bad robot: ....................../´¯) ....................,/¯../ .................../..../ ............./´¯/'...'/´¯¯`·¸ ........../'/.../..../......./¨¯\ ........('(...´...´.... ¯~/'...') .........\.................'...../ ..........''...\.......... _.·´ ............\..............( ..............\.............\... Well, I started to write a very simple SVG to GDI+ path converter but then I discovered that there are plenty of SVG formats and commands -> I gave it up.2 points
-
No carriage return in label
krasnoshtan reacted to AutoBert for a topic
Then try this: ; *** Start added by AutoIt3Wrapper *** #include <EditConstants.au3> ; *** End added by AutoIt3Wrapper *** #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Add_Constants=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> Example() Func Example() GUICreate("My GUI") ; will create a dialog box that when displayed is centered GUICtrlCreateEdit("Line 1 "&@CRLF&"Line 2", 10, 30, 100,59,BitOR($ES_MULTILINE, $ES_ReadOnly)) GUISetState(@SW_SHOW) ; ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd EndFunc ;==>Example1 point -
Your error look like 355000201 is not found on this folder, maybe because is not there or is not an image? what about extension? .jpg, .bmp I don't see that on your code, your list is coming with extensions? example: 355000201.jpg? or just names? Regards Alien.1 point
-
NetStat To Names
GuyFromNJo reacted to iamtheky for a topic
Netstat -f is slow as balls so I wrote this 3 parter to add to my AuditShot which runs substantially quicker in my testing. 1) runs netstat -n, 2) uniques the foreign addresses 3) runs those through nslookup As always, improvements and/or berating inefficiencies are both welcome: *Fixed IPv6 fail ;netstat -f replacement v2 (potential IPv6 fix) #include<array.au3> $sCommand = "netstat -n" $iPID = run($sCommand, "" , @SW_HIDE , $stdout_child) $sOutput = "" $sNSLookupOut = "" local $aNSfinal[0] local $aNSLookupFinal[0] While 1 $sOutput &= StdoutRead($iPID) If @error Then ExitLoop WEnd ProcessClose($iPID) $aOut = stringsplit($sOutput , @LF , 2) For $i = 4 to ubound($aOut) - 1 $aLine = stringsplit($aOut[$i] , " " , 2) For $k = ubound($aLine) - 1 to 0 step - 1 If stringstripWS($aLine[$k] , 8) = "" Then _ArrayDelete($aLine , $k) Next ;~ msgbox(0, '' , stringleft($aLine[2] , stringinstr($aLine[2] , ":" , 0 , -1) - 1)) If ubound($aLine) > 1 Then _ArrayAdd($aNSfinal , stringleft($aLine[2] , stringinstr($aLine[2] , ":" , 0 , -1) - 1)) $aUniqueNS = _ArrayUnique($aNSfinal) _ArrayDelete($aUniqueNS , 0) Next ;_ArrayDisplay($aUniqueNS) For $k = 0 to ubound($aUniqueNS) - 1 $iPID = run("nslookup " & $aUniqueNS[$k] , "" , @SW_HIDE , $stdout_child) While 1 $sNSLookupOut &= StdoutRead($iPID) If @error Then ExitLoop WEnd ProcessClose($iPID) $aNSLookup = stringsplit($sNSLookupOut , @LF , 2) _ArrayDelete($aNSLookup , "0-2") _ArrayAdd($aNSLookupFinal , $aNSLookup) $sNSLookupOut = "" Next _ArrayDisplay($aNSLookupFinal , "Final")1 point -
1 point
-
Meet Remmanaut, the autoit remote administration tool
faldo reacted to argumentum for a topic
instead of Global $ServerIP = @IPAddress1 , do Global $ServerIP = "0.0.0.0" , that way it binds to all IPs Also, use Opt("MustDeclareVars", 1) while coding, you'll be glad you did. The main loop is better in a function, ...call it main() . -or whatever- The TCPRecv loop would be better as: ;Wait for agent to open a session $sTmp = "" Do $sTmp = TCPRecv($Client, '1024', $TCP_DATA_BINARY) ; For backwards compatibility reasons this function will try to return strings by default. ; If null (0x00) characters are received then the return value will be a binary type. ; It'd be safer if everything was regarded as binary type $Recv = Binary($Recv) & Binary($sTmp) ; there may be more incomming chunks, this is safer. Sleep('100') Until $sTmp = '' And $Recv <> '' too much to point out, but this I did show, I feel, is basic. Thanks for sharing1 point -
_WinAPI_GetWindowLong($hWnd3thParty, $GWL_HWNDPARENT) should help. It returns the needed WindowHandle from Parentwindow.1 point
-
Download the file using InetGet;or InetRead use _FileReadToArray (you need all parameters) sort the file using _ArraySort (only needed if you want the next higher number) serch for the person using _ArraySearch the returned index+1 is the person you want.1 point
-
Ask here on the forum. ps. I do not have facebook account, only email and few accounts on forums like this one.1 point
-
Network configuration UDF
GuyFromNJo reacted to jguinch for a topic
Added : _FlushDNSEntry (removes the specified entry from the DNS cache)1 point -
1 point
-
Dexto is correct - there is a bug in UnixTimeStampToTime - it's off by 4 days. Rather than try to reinvent the wheel, I just used one line of code and the Date.au3 library to perform the conversion: #include <Date.au3> $time = _DateAdd("s",$UnixTimeStamp,"1970/01/01 00:00:00")1 point
-
This should be a better way for inputs: _GUICtrlEdit_SetSel($hInput, -1, -1) _GUICtrlEdit_Scroll($hInput, $SB_SCROLLCARET)1 point
-
Try adding this to the program somewhere, this code assumes your second input control is called $input2 for the sake of this example. This will set the focus to the control, and then send the END key sequence to it so that it's at the end of the line. GUICtrlSetState($input2, $GUI_FOCUS) Send("{End}")1 point