Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. This is a bug and has been fixed in the latest revision of AutoIt: https://www.autoitscript.com/trac/autoit/ticket/3116 You would have to wait for another release if you want to use $WIN_STATE_* constants .
  2. #include <Array.au3> Global Const $FILE = @ScriptDir & '\test.txt' Global Const $KEY = "Amount Due=" Global Const $KEY_LEN = StringLen($KEY) Global $aFile = FileReadToArray($FILE) Global $iLines = @extended Global $sAmounts For $iLine = 0 To $iLines - 1 If StringLeft($aFile[$iLine], $KEY_LEN) = $KEY Then $sAmounts &= StringTrimLeft($aFile[$iLine], $KEY_LEN) & '|' EndIf Next Global $aAmounts = StringSplit(StringTrimRight($sAmounts, 1), '|') _ArrayDisplay($aAmounts)
  3. ohhhh... never thought that something like this even existed! Thanks for sharing .
  4. #include <File.au3> Global $aFiles = _FileListToArray(@ScriptDir, '*.txt', $FLTA_FILES, True) Global $sText For $i = 1 To $aFiles[0] $sText = FileRead($aFiles[$i]) MsgBox(0, "Text File", $sText) Next This little script displays the contents of all the text files in the @ScriptDir. Customize the script to fit your needs .
  5. @Daeth I don't think Au3stripper does any obfuscation... It only minifies the script.
  6. @Daeth The obfuscator is not longer supported and is not shipped with the latest version of AutoIt.
  7. please don't bump threads in less than 24 hours! Anyway, Firefox enables the "OK" button after you select the window.
  8. @Sandeeptrp Try adding this function to your script:
  9. @Sandeeptrp You have a point but its not good to necro an old post, a PM to @AGlassman would be more appropriate.
  10. Not that I know of, You need to a custom code a loop for that...
  11. Redeclare the Array... Something like this: #include <Array.au3> Global $aArray[3] = [1, 2, 3] ; Create the array for the first time _ArrayDisplay($aArray) ; Display the array Global $aArray[3] ; Redeclare the array _ArrayDisplay($aArray) ; Display the array again ; P.S Try running this script to see what I mean.
  12. @Sandeeptrp Do you realize that this thread is 6 years old!? And I don't think @AGlassman is still maintaining his framework accounting that he hasn't posted a single update since the first version .
  13. No, there is no hard limit set on recursion level in AutoIt. See this topic for more info on this:
  14. Putting an end to this madness: If Is32bit() Then ; If the computer is 32 bit... ; Do something if the computer is 32 bit. Else ; If the computer is not 32 bit... ; Do something if the computer is 64 bit. EndIf Func Is32bit() Return @OSArch = "X86" EndIf Just copy paste the last 3 lines at the end of your code to use the Is32bit function.
  15. ... Decompiled!? I am shocked that no one notice it. Also, DECOMPILING AUTOIT EXEs is not allowed and is against the law. Wait for a Moderator to take appropriate action.
  16. Hmm... I can't help you with such issue as I don't use InstallShield. Try contacting InstallShield support regarding this issue.
  17. Oh, I did not read the text thoroughly, just a glance... But it says per site, still effects the whole browser.
  18. Just looked at all of them, they only contain information about the default user-agent and something about parsing user-agent string etc etc... If you are talking about the object.userAgent property, it only returns the current user-agent you cannot change it.
  19. @mLipok It changes the user agent for ALL of the browser instances, not just only the object... Although @sayuto can use this approach in extreme case scenario where there is no other option!
  20. I have just looked at the IE UDF and cannot find any function which changes the User-agent of the browser instance . I am afraid that you would have to use an alternate method to achieve your goal.
  21. If you want to capture both the Exit Code and the Console Output, you would have to do some tricky things. Luckily I have made a UDF for that , Try my Process UDF .
×
×
  • Create New...