Leaderboard
Popular Content
Showing content with the highest reputation on 12/14/2015 in all areas
-
UBound Return Discussion
jaberwacky and 4 others reacted to JohnOne for a topic
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 -
Request
terminetor1717 reacted to JLogan3o13 for a topic
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 -
Here's how professional would do it https://www.youtube.com/watch?v=APxGubAkOz01 point
-
Simply attach an file. Original post updated to improve page loading. Jos1 point
-
Total privacy
TouchOdeath reacted to AdmiralAlkex for a topic
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 -
Icon corruption when disabling a button
AdmiralAlkex reacted to TheDcoder for a topic
@AdmiralAlkex Wow! You are a total guru . TD1 point -
Icon corruption when disabling a button
TheDcoder reacted to AdmiralAlkex for a topic
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 -
@Trong Use Pastebin for large chunks of code! My FF almost froze1 point
-
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")TD1 point
-
Total privacy
AdmiralAlkex reacted to TouchOdeath for a topic
hahah!! I stand corrected, also the beginning of the move Insurrection, they were spying on that village at the beginning.1 point -
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
-
[SOLVED] Find largest version? _VersionCompare()
Trong reacted to AdmiralAlkex for a topic
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 work1 point -
[SOLVED] Find largest version? _VersionCompare()
Trong reacted to MilesAhead for a topic
Sorry. I looked at your code without really seeing it. Must've been a pre-coffee scan.1 point -
Yikes! Did you purposely obfuscate that?1 point
-
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
-
1 point
-
Agreed. I just coded it down a bit to fit. Stringreplace the "." and sort it as an int.1 point
-
AutoIT + cheat engine
p3rn4l0ng4 reacted to JLogan3o13 for a topic
@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 -
[SOLVED] Find largest version? _VersionCompare()
Trong reacted to MilesAhead for a topic
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 -
#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
-
Icon corruption when disabling a button
AdmiralAlkex reacted to TheDcoder for a topic
Glad you spotted it ... I will do some research and report back with a solution (if exists ) Thanks! TD1 point -
Total privacy
TouchOdeath reacted to AdmiralAlkex for a topic
You don't think Section 31 did their fair share of spying?1 point -
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
-
A million web developers are not developing desktop applications. ini format is totally appropriate.1 point
-
Define error in this situation. Is it really an error?1 point
-
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