Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. ... Yet, I lose again Good job, J1
  2. What about @WorkingDir? Its set by the user too... I guess...
  3. @JohnOne How do you explain @CRLF then? They remain the same the whole life . This Quote is taken from the help file: As you can see that macros "generally" provide easy access to system... There is no rule that the should only provide "that", viz. the birth of @CRLF
  4. @JohnOne What about @MIN @SEC etc? I need to go, I will be back later, TD
  5. There is a FTP UDF distributed along with AutoIt, Check the help file
  6. @orbs Yeah, but the people who want those feature can use older version (like @TheSaint) @MachinistProgrammer Hmm... a macro array? , While I agree that it will create breaking changes, AutoIt Coder can easily fix the issue by using a simple Replace operation TD
  7. Hello! I am back with another IIAGI? (Is it a Good Idea?) I think $CmdLineRaw is more like a macro than a "special" variable (which cannot be changed)... So making ti @CmdLineRaw would make more sense and there will 1 less exception to variables , I know that you were wondering about the $CmdLine "special" array... I didn't forgot it, but I don't think a macro can be a array, so I just ignored it... Maybe removing the $CmdLine and changing $CmdLineRaw to @CmdLine would be nice if you ask me . Think before choosing! TD P.S Feel free to disagree with me, I want hear your opinion as well .
  8. Unfortunately, Nope! Sorry, I forgot about Tidy , But you can do it manually too, just follow Best Coding Practices TD
  9. @AdmiralAlkex You are not different either!
  10. @AdmiralAlkex Wow! You are a total guru . TD
  11. @Trong Use Pastebin for large chunks of code! My FF almost froze
  12. What do you want to do exactly? We cannot help without any code... all you will get are wild guesses. TD
  13. Not sure if its what you want : #include <File.au3> #include <MsgBoxConstants.au3> Local Const $FOLDER = @ScriptDir ; Folder to check DirCreate("1.2.6.4") DirCreate("1.1.2.4") DirCreate("1.0.3.4") DirCreate("1.5.0.4") DirCreate("1.6.7.4") Local $aVersions = _FileListToArray($FOLDER, "*.*.*.*", $FLTA_FOLDERS) Local $iLatestVersionsIndex = 0 For $i = 1 To $aVersions[0] If Number(StringReplace($aVersions[$iLatestVersionsIndex], '.', "")) < Number(StringReplace($aVersions[$i], '.', "")) Then $iLatestVersionsIndex = $i EndIf Next MsgBox($MB_OK, "Latest Version", $aVersions[$iLatestVersionsIndex]) DirRemove("1.2.6.4") DirRemove("1.1.2.4") DirRemove("1.0.3.4") DirRemove("1.5.0.4") DirRemove("1.6.7.4")TD
  14. It does for me too... Here, spot the difference:
  15. @LarsJ Just tested it... The result might hurt a little: TD
  16. @LarsJ , Looks complicated... I still think @AdmiralAlkex's 1st solution is better for me... I want average users to understand my code
  17. @LarsJ Too much pain for to make a button UDF
  18. @AdmiralAlkex I searched around a little and your solution seems to be the best... How did you remove them anyway? Just tried a online png to ico converter and it worked!
  19. @LarsJ I did read the Remarks but ignored the example
  20. @LarsJ Thanks for the solution but M23's solution seems better, sorry! @Melba23 That was astonishingly simple , Thanks! I will keep note of that.. The reason partly maybe that it was Midnight and I was sleepy when I posted my questions recently, sorry!
  21. @Melba23 Not what I was expecting, I need all the elements to be in the combo
  22. Glad you spotted it ... I will do some research and report back with a solution (if exists ) Thanks! TD
  23. Hello , I am experiencing a problem with Combo controls... They get updated even before the user selects the item! Use this script to test this: #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 366, 115, 301, 138) $Combo1 = GUICtrlCreateCombo("Combo1", 104, 24, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### GUICtrlSetData($Combo1, "Test") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch ConsoleWrite(GUICtrlRead($Combo1) & @CRLF) WEndTry hovering over "Test" (don't select it!) and watch the STDOUT stream (SciTE Output Panel located at the bottom of SciTE), it shows "Test" instead of "Combo1" Anyone know how to avoid this? Thanks in Advance, TD
×
×
  • Create New...