-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
Hello , I am want to parse a file's data which uses NBT format to store information, If you don't know anything about it, Here are some good reads: A nice read on Codeplex A little not nice read on Wiki.vg A redirect from wikipedia - Minecraft wiki I can see the data inside the file in a unorganized way using a Hex Editor, I just need a little push (even the littlest push), I don't know where to start , Here is an example NBT dat file for you to experiment with: parse this.dat (Its uncompressed) Thanks in Advance, TD P.S for mods: Hey! This is not game automation, I want to use this file format to store info & play around with it
-
BinaryToString in ubuntu wine problems
TheDcoder replied to gooker's topic in AutoIt General Help and Support
AutoIt is Closed Source, So you need to make an alternative function in AutoIt -
A simple utility for pasting include files
TheDcoder replied to kcvinu's topic in AutoIt Example Scripts
@mLipok ok -
A simple utility for pasting include files
TheDcoder replied to kcvinu's topic in AutoIt Example Scripts
@mLipok What is the difference? -
A simple utility for pasting include files
TheDcoder replied to kcvinu's topic in AutoIt Example Scripts
@kcvinu Its not working for me... There are no includes being displayed in the list -
A simple utility for pasting include files
TheDcoder replied to kcvinu's topic in AutoIt Example Scripts
@guinness Oh, Thanks for the info, I found _SciTE.au3 here: -
A simple utility for pasting include files
TheDcoder replied to kcvinu's topic in AutoIt Example Scripts
forgot to ship _SciTE.au3? TD -
Wow! F# is multi-platform, supports android & no spaghetti code! Just what I need! Thanks Manadar & Jaber for the link, TD
-
Process UDF, Get both the output & the exit code!
TheDcoder replied to TheDcoder's topic in AutoIt Example Scripts
@mLipok , I didn't expect that you modified the code, I will include the changes in the next version -
Process UDF, Get both the output & the exit code!
TheDcoder replied to TheDcoder's topic in AutoIt Example Scripts
Released new version , No big changes though -
Version 1.3
1,934 downloads
Hello Everyone , Are you tired of searching the forum for getting both the exit code & the stdout output? Then your are in the right place! With this UDF you can get the both output & exit code of the command or the console app! Or you can get the exit code of another process without having to use RunWait... Features: 1. Simple & Lightweight (15 KB) 2. Detailed comments & description 3. Flexible functions with many optional parameters A BIG THANKS TO PsaltyDS for the functions! 2 of the (main) functions in the UDF are his work List of functions: -
Process UDF, Get both the output & the exit code!
TheDcoder replied to TheDcoder's topic in AutoIt Example Scripts
@guinness Thanks! -
Process UDF, Get both the output & the exit code!
TheDcoder replied to TheDcoder's topic in AutoIt Example Scripts
@mLipok What does this do?: #AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7 I am still a newbie -
Process UDF, Get both the output & the exit code!
TheDcoder posted a topic in AutoIt Example Scripts
Hello Everyone , Are you tired of searching the forum for getting both the exit code & the stdout output? Then you are in the right place! With this UDF you can get the both output & exit code of the command or the console app! Or you can get the exit code of another process without having to use RunWait... Features: 1. Simple & Lightweight (15 KB) 2. Detailed comments & description 3. Flexible functions with many optional parameters A BIG THANKS TO PsaltyDS for the functions! 2 of the (main) functions in the UDF are his work List of functions: Downloads: Grab the latest (in development) code from GitHub Hope it may help you, TD P.S Icon made by Freepik from www.flaticon.com, Modified by TheDcoder -
Determine if computer is a Terminal Server
TheDcoder replied to WoodGrain's topic in AutoIt General Help and Support
@JLogan3o13 Just a little won't hurt -
Determine if computer is a Terminal Server
TheDcoder replied to WoodGrain's topic in AutoIt General Help and Support
Gift from me: https://www.autoitscript.com/forum/topic/139260-autoit-snippets/?do=findComment&comment=1264752 TD -
Its me again, This is a dedicated snippet, Checks if the system is a terminal: ; #FUNCTION# ==================================================================================================================== ; Name ..........: IsTerminal ; Description ...: Checks if its a terminal machine ; Syntax ........: IsTerminal() ; Parameters ....: None. ; Return values .: Success: True, @extended will contain: ; 1 - Citrix session ; 2 - RDP session ; Failure: False ; Author ........: TheDcoder ; Modified ......: N/A ; Remarks .......: None. ; Related .......: None. ; Link ..........: https://www.autoitscript.com/forum/topic/139260-autoit-snippets/?do=findComment&comment=1264752 ; Example .......: No ; =============================================================================================================================== Func IsTerminal() $sOutput = EnvGet("SESSIONNAME") ; Get the SESSIONNAME variable's value If StringRight($sOutput, 3) = "ICA" Then Return SetExtended(1, True) ; Check if its a Citrix session If StringRight($sOutput, 3) = "RDP" Then Return SetExtended(2, True) ; Check if its a RDP session Return False ; Return False if none of the above EndFuncTD
-
LOL
-
Hmmm... I ended up removing the If...Then...EndIf statement, this is the fixed code which works for me : #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiRichEdit.au3> #include <Color.au3> Local $iPID = Run(@ComSpec & " /c " & 'ping -n 7 127.0.0.1', "", @SW_HIDE, 0x8) Local $aGrayCmdColor[3] = [197, 197, 197] Local $iGrayCmdColor = _ColorSetCOLORREF($aGrayCmdColor) $hGUI = GUICreate("", 500, 300, -1, -1, $WS_POPUP) $idRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 0, 0, 500, 300, BitOR($WS_HSCROLL, $WS_HSCROLL, $ES_MULTILINE, $ES_READONLY)) _GUICtrlRichEdit_SetBkColor($idRichEdit, 0x000000) _GUICtrlRichEdit_SetFont($idRichEdit, Default, "Fixedsys") _GUICtrlRichEdit_SetCharColor($idRichEdit, $iGrayCmdColor) If @error Then MsgBox(0, 0, 0) GUISetState(@SW_SHOW, $hGUI) While ProcessExists($iPID) $sOutput = StdoutRead($iPID) _GUICtrlRichEdit_AppendText($idRichEdit, $sOutput) $iLine += 1 $iStartingPoint = _GUICtrlRichEdit_GetTextLength($idRichEdit, True, True) - StringLen(_GUICtrlRichEdit_GetTextInLine($idRichEdit, $iLine)) _GUICtrlRichEdit_SetSel($idRichEdit, $iStartingPoint, -1, True) _GUICtrlRichEdit_SetFont($idRichEdit, Default, "Fixedsys") _GUICtrlRichEdit_SetCharColor($idRichEdit, $iGrayCmdColor) Sleep(250) WEnd _GUICtrlRichEdit_AppendText($idRichEdit, StdoutRead($iPID)) _GUICtrlRichEdit_AppendText($idRichEdit, @CRLF & @CRLF & "Debug Complete!") Sleep(1000 * 3) Exit TD