Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/03/2023 in all areas

  1. or this : #include <File.au3> Local $aList = _FileListToArrayRec("c:\Apps", "*", $FLTAR_FOLDERS, $FLTAR_RECUR) Local $iDeep = 0, $sFolder = "" For $i = 1 To $aList[0] StringReplace($aList[$i], "\", "\", 0, $STR_CASESENSE) ; increases speed If @extended > $iDeep Then $iDeep = @extended $sFolder = $aList[$i] EndIf Next ConsoleWrite($sFolder & @CRLF)
    3 points
  2. I don’t understand watching videos to learn programming. It’s not conducive to learning. Learning is done by repetition. You must write the code yourself and figure things out in the debugger in order to learn. Watching someone talk about it does absolutely no good. At least with documentation you can copy and paste code to test. my recommendation is read the documentation first, such as the help file and start working through examples. if this were an effective method, it would be used for everything. A lecture in chemistry isn’t going to teach you how to do the problems, or even understand the material as example. The student needs to actually do the work. So I’m not sure what the whole point of the video is. It seems like more of entertainment. and as mentioned above, the eye candy is too much and the constant music is irritating. If you’re looking for great success on YouTube, you might want to pick a different subject.
    1 point
  3. I think so too @Werty. But there should be a way to decrease or increase the AI graphics occurences etc., am I right? Definitely, it's an open computer voice which can be slowed down or fasted up. Best regards Sven
    1 point
  4. @musicstashall Why do you need the intermediate form ["code", "language"] and the array? The example script below does happen to create that intermediate form, but it is only generated in an intermediate step while filtering the JSON in order to create a TSV list, which is then used to create the 2D AutoIt array. As you can see in the image below, part of the example script's jq filter produces your intermediate result. The only difference between the filter in the image and the filter in the script is the last part, "@tsv", which converts the JSON arrays to a TSV list. Example script below:
    1 point
  5. Hi, you could replace the line _WinAPI_RedrawWindow($hGUI) with GUICtrlSetState($BTN1,$GUI_SHOW) to show the Control after displaying the GDI(+)-stuff or use _WinAPI_RedrawWindow($hGUI,0,0,$RDW_INVALIDATE + $RDW_ALLCHILDREN)
    1 point
  6. Yes ! Here the script with a longer text : #include "Json.au3" ; (by @AspirinJunkie) Global $sRead1 = 'This text will be translated into another language. ' & _ 'The Moderation team will do their best to act in fair and reasonable manner. Sanctions will ' & _ 'only be applied as a last resort and any action taken will be explained in the relevant thread. ' & _ 'If you feel that you have been unfairly moderated then contact the Moderator concerned - ' & _ 'using a PM or the "Report" button is preferable to opening a new thread (although new members ' & _ 'may have to do this). But do be aware that the Moderation team has the final word - the rules ' & _ 'are set out by the site owner and you are only welcome here if you respect his wishes.' ConsoleWrite("+ >> ORIGINAL: " & $sRead1 & @CRLF) ConsoleWrite("+ ------------------------------------------------------------------------------ " & @CRLF) ConsoleWrite("> >> EN->DE : " & _GoogleAPITranslate($sRead1, "en", "de") & @CRLF) ConsoleWrite("> >> EN->FR : " & _GoogleAPITranslate($sRead1, "en", "fr") & @CRLF) ConsoleWrite("> >> EN->ES : " & _GoogleAPITranslate($sRead1, "en", "es") & @CRLF) ; ------------ Function : --------------- Func _GoogleAPITranslate($sMytext, $sFrom, $sTo) Local $sUrl, $oHTTP, $sResponse, $JSONData, $sOutput = "", $aData $sUrl = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=" & $sFrom & "&tl=" & $sTo & "&dt=t&q=" & $sMytext $oHTTP = ObjCreate("Microsoft.XMLHTTP") $oHTTP.Open("POST", $sUrl, False) $oHTTP.Send() $sResponse = $oHTTP.ResponseText $JSONData = _JSON_Parse($sResponse) If VarGetType($JSONData) = 'Array' Then $aData = $JSONData[0] If VarGetType($aData) = 'Array' Then For $i = 0 To UBound($aData) -1 Step 1 $sOutput &= ($aData[$i])[0] ;*** & @CRLF Next EndIf EndIf Return $sOutput EndFunc ;==>_GoogleAPITranslate Result :
    1 point
  7. Isnt it just AI created, all the graphics / images added by AI from what you write, and the voice and way of speaking i've heard thousands of times on youtube, pretty sure it's not you talking ;).
    0 points
×
×
  • Create New...