Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/14/2015 in all areas

  1. That's true, it would break many scripts, but there are script breaking changes all the time from release to release. The measure is, realising it and changing it, it's how a language must develop even with the most trivial of things. Phasing a change with backward compatibility is the way most things move forward. I am not a critic of AutoIt, I love it, It's brought me into coding, and I'd like to see it continue to evolve without veterans blindly defending it like it's a cult, because it's not, It's amazing and I really believe its (pardon the pun) boundaries have few limits. I truly believe that the more AutoIt is brought inline with mainstream, the more coders it will attract, and I'd hope that's what everyone wants. Thoughts going of topic, sorry. End.
    5 points
  2. JLogan3o13

    Request

    I agree with water, you are making this more difficult than it needs to be, but without you pointing out what application you're trying to automate, there is little we can do. My final tip: if you want it to run forever (bad idea), then change your While loop to this: While 1 RunIt() Sleep(100) WEndAnything more than this, you need to explain in better detail what you're trying to accomplish.
    1 point
  3. Here's how professional would do it https://www.youtube.com/watch?v=APxGubAkOz0
    1 point
  4. Simply attach an file. Original post updated to improve page loading. Jos
    1 point
  5. AdmiralAlkex

    Total privacy

    But that was for science. Science has never harmed anyone, right? *AdmiralAlkex was vaporized by V'Ger* *V'Ger got 26 xp and leveled up*
    1 point
  6. @AdmiralAlkex Wow! You are a total guru . TD
    1 point
  7. There might be a better way, but anyway here's how I did it: I loaded the file in Paint.NET and save as 24 bit .png, this removes all alpha without losing any qualityOpen the .png and select the white background around the block with the magic wandDelete selectionSave back as 32 bit .icoIf you don't care about the area around the block to be transparent just skip step 2 and 3... To use .ico files in Paint.NET you need the plugin from http://forums.getpaint.net/index.php?/topic/927-icon-cursor-and-animated-cursor-format-v37-may-2010/
    1 point
  8. @Trong Use Pastebin for large chunks of code! My FF almost froze
    1 point
  9. 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
    1 point
  10. TouchOdeath

    Total privacy

    hahah!! I stand corrected, also the beginning of the move Insurrection, they were spying on that village at the beginning.
    1 point
  11. have a look here for one of possible ways: https://www.autoitscript.com/forum/topic/166640-how-to-format-the-output-of-the-autoitversion-macro/ p.s. how could be modified Yashied's regex, (from post #7 of above topic) so to have numbers padded with zero for a total of 3 digits in length instead of only 2 ??
    1 point
  12. That would still break if the lower number is longer $versionett = "3.3.8.1" $versiontva = "3.2.12.0" $versionett = Int(StringReplace($versionett, ".", "")) $versiontva = Int(StringReplace($versiontva, ".", "")) ConsoleWrite("$versionett is higher than $versiontva? " & ($versionett > $versiontva) & @CRLF)You must split the parts like _VersionCompare is doing if the comparison is going to work
    1 point
  13. Sorry. I looked at your code without really seeing it. Must've been a pre-coffee scan.
    1 point
  14. Yikes! Did you purposely obfuscate that?
    1 point
  15. Think out of the box, and you'd soon see that changes like that can be made without breaking any scripts. All that's needed are two things - awareness of the box and alarm clock set to 14.12.2016.
    1 point
  16. Agreed. I just coded it down a bit to fit. Stringreplace the "." and sort it as an int.
    1 point
  17. @p3rn4l0ng4 welcome to the AutoIt forum. Unfortunately you seem not to have bothered to read the forum rules, especially the part regarding game automation. Please do so now, and you will see why your thread is locked and you will receive no help. Hope to see you soon with a legitimate question.
    1 point
  18. This works in your example but not if the sample version strings have a higher number in a version compnent that starts with a character lower in the sort order. As example 3.3.2.4 would be seen as higher than 3.12.2.4 That is why in the example comparison function I split out the version components and converted them to numbers.
    1 point
  19. #include <Array.au3> $sVersions = "1.2.6.4|1.1.2.4|1.0.3.4|1.5.0.4|1.6.7.4" $aVersions1 = StringSplit($sVersions, "|", 2) _ArraySort($aVersions1, 1) MsgBox(0, "Latest version", $aVersions1[0])
    1 point
  20. Glad you spotted it ... I will do some research and report back with a solution (if exists ) Thanks! TD
    1 point
  21. AdmiralAlkex

    Total privacy

    You don't think Section 31 did their fair share of spying?
    1 point
  22. Nope, everything is right there. Free your mind out of AutoIt and reread again. VB uses this syntax to declare array: Dim Arr(100)...but that's shorter for: Dim Arr(0 To 100)Which means "Create array which first index is 0 and last is 100". How many elements are there?
    1 point
  23. A million web developers are not developing desktop applications. ini format is totally appropriate.
    1 point
  24. Define error in this situation. Is it really an error?
    1 point
  25. The way IniRead works, if the key doesn't exist, then the default value is given. If the key exists but is blank the return value is an empty string. I think that using the Default Value as the check to see if the key exists should probably be sufficient.
    1 point
×
×
  • Create New...