All Activity

This stream auto-updates   

  1. Past hour
  2. There is a good chance that they lost the source code... or some have been saying that.
  3. hello, I have a script that I would not like to close before the end of its execution. If the user decides to close Windows I would like to prevent the shutdown of Windows. For that I found several examples on this forum for example this one: Blocking works well with just a While Loop execution. But if we add other autoit commands (run, inetget ...), the script is closed on closing Windows after a few seconds. Do you have any solution to prevent closing. Thank you.
  4. Totally agree. An even worse case is Python, for which a few laughably half-hearted compiler attempts have been written that produce total and utter garbage. In my own area of application (scientific computation), even commercial alternatives such as Matlab produce equally inept "compiled" exes that either crash or require several parallel universe lifetimes to complete. Then I'd rather stick with AutoIt's solid, stable stub interpreter (with straightforward syntax, nice GUI and other graphics capabilities up and running in a day, and full Windows functionality under the hood) while farming out the computational hard labour to a dedicated dll. The one feature of stub interpreters that is often overlooked is that it drastically shortens development time, as you can do fast testing cycles in the interpreter, and afterwards, turning the script into an exe is not going throw tons of new errors your way. Try tracing transient memory leaks or similar Heisenbugs in MSVC for comparison... Just out of interest, some parts are still assembly, and even a recent Word patch (ye olde Equation Editor) was done at this level.
  5. Today
  6. Here is a PowerShell method of removing duplicate lines from an unsorted file, from within AutoIt. It may be faster on big files. On small files, KaFu's example is faster. ; Remove Duplicate Rows From A Text File Using Powershell... unsorted file, where order is important. ; Command from: Local $hTimer = TimerInit() local $sFileIn = @ScriptDir & '\temp-6.txt' local $sFileOut = @ScriptDir & '\newlist.txt' Local $sCmd = '$hash = @{}' & @CRLF & _ 'gc ' & $sFileIn & '| % {if ($hash.$_ -eq $null) {$_} $hash.$_ = 1;} > ' & $sFileOut RunWait('"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" ' & $sCmd, "", @SW_HIDE, 2 + 4) ; Run command in PowerShell. ConsoleWrite("Time Taken: " & round(TimerDiff($hTimer)/1000,4) & "Secs" & @CRLF) ShellExecute($sFileOut) ; See unique file.
  7. I will answer myself. To make it work you just have to put your body html into frameset: #include <IE.au3> Local $oIE = _IECreate() Local $sHTML = "<!DOCTYPE html>" $sHTML &= "<HTML>" & @CRLF $sHTML &= "<HEAD>" & @CRLF $sHTML &= "<TITLE>Example</TITLE>" & @CRLF $sHTML &= "</HEAD>" & @CRLF $sHTML &= "<FRAMESET>" & @CRLF $sHTML &= "<FRAME name=main src=about:blank>" & @CRLF $sHTML &= "</FRAMESET>" & @CRLF $sHTML &= "</HTML>" _IEDocWriteHTML($oIE, $sHTML) Local $oFrameMain = _IEFrameGetObjByName($oIE, "main") _IEBodyWriteHTML($oFrameMain, "<p>try to use ctrl+f to find this text</p>")
  8. Hello again. Both functions, _FileReadToArray() and _ArrayUnique(), have parameters that enable or disable the line count being assigned to the first element of the array- see AutoIt help file. Or you can click on these functions that are blue in colour in the code box below to see the online AutoIt help. #include <File.au3> #include <Array.au3> ProcessAndCleanFiles() Func ProcessAndCleanFiles() Local $sFileName = "\\poop\IC3.txt" ; FileToWorkOn ;Remove the extra /'s at the end of each TestCodeLineFor IC3 Local $Whattowrite = StringRegExpReplace(FileRead($sFileName), "(?m)/*$", "") Local $hFileOpen = FileOpen($sFileName, 2) FileWrite($hFileOpen, $Whattowrite) FileClose($hFileOpen) ; Remove duplicates from file Local $aFile, $aArray _FileReadToArray($sFileName, $aFile, 0) ; $iFlags parameter, $FRTA_NOCOUNT (0) - array is 0-based use UBound() to get size, _ArrayDisplay($aFile) $aArray = _ArrayUnique($aFile, 0, 0, 0, 0) ; $iCount parameter, $ARRAYUNIQUE_NOCOUNT (0) returns a list without a count. _ArrayDisplay($aArray) _FileWriteFromArray($sFileName, $aArray) EndFunc ;==>ProcessAndCleanFiles
  9. is an older version. This one does not return an array.
  10. Well, maybe, I don't know. Many, including me, wish this generated machine code output other than a stub interpreting scripts. But I see the wisdom in the way is kept. That's what I meant by script language vs programming language. Then again, javascript is also interpreted and is called a language ? Windows is written in C, or it was. AutoIt language is more Pascal looking ( in my range of experience with coding ). AutoIt was initially designed for PC "roll out" situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect. Features: Easy to learn BASIC-like syntax Simulate keystrokes and mouse movements Manipulate windows and processes ... ... AutoIt has been designed to be as small as possible and stand-alone with no external .dll files or registry entries required making it safe to use on Servers. Scripts can be compiled into stand-alone executables with Aut2Exe. The above comes from the help file By the way, I'm not the OP, just wanted to have a say. A small say. In my view, AutoIt does exactly what it was designed to do. So my main was about the aesthetics, pretty controls look on screen. To me, in Win10, the common controls are purposely sabotaged, more so than in previous versions of the OS, that's all. PS: I'm re-reading your post @Skysnake, and now interpreted it differently. Sowy. I'm not very good at english. Yes I agree fully.
  11. more on #comments-start and -end... What is the possibility of addindg "Region" -like definitions to comments? Then something like this would be possible (pseudo code) #Region ************* GUI layout ****************** GuiCreate("MyGui") #comments-start #only use with xyz x y z #comments-end #only use with xyz GuiCtrlCreateWidget("MyWidget") #EndRegion ************* GUI layout ****************** Or is there a better way that should be used?
  12. This is what I saw without noticing the dating. ..then I wanted to know, wassup. I did not reawaken the post. @jazzyjeff still here. This week. so who knows. I wrote a better example here ( of a posting of my own ) and did not announce it by adding a new post, But at times, I know I brainfart. Let me know where and how and I'll do my best to attend to my behaviour.
  13. a pretty stable general purpose scripting language ... a programming language ... a little paraphrasing...
  14. You are correct, please excuse me. It was late.
  15. Well, this is interesting! Thank you for this information. If this is the case, then there are one or more differences between the COM Object methods and the internal IE 11 methods, or something of this nature. Something does not add up still, and that is this link that i've posted earlier: Therefore, one more workaround can be used: #Include <ie.au3> Global Const $base_url = '' $oIE = _IEAttach($base_url, 'url') if @error then $oIE = _IECreate($base_url) EndIf Local $command = 'document.getElementsByTagName("html").item(0).dataset.ffoOpensans' $oIE.document.parentWindow.execscript($command) Local $result = $oIE.document.getElementsByTagName('html').item(0).dataset.ffoOpensans MsgBox(0, '', $result) One more problem arises from this workaround: How do we simplify the code ? Is there a way of running the following code (i've already tried brackets and parantheses) ? Local $command = 'document.getElementsByTagName("html").item(0).dataset.ffoOpensans' $oIE.document.parentWindow.execscript($command) Local $result = $oIE.$command This issue is still unresolved.
  16. i was agreeing. customer service issues with the ill informed sucks. and software signing should not help with the ML and heuristic detections (as those should be detonations/behavioral and signing wouldnt change that), though I have no faith those arent triggering on something static.
  17. Hello, i meant the coordinates varies from desktop to shall i explain through code?????! i have problem in selecting component ,which command in autoit helps in that ? find the attachment below of a component unable to select it .
  18. @JLogan3o13 Oh, okay. Thank you.
  19. Look ik virus total is crap, I'm saying my customers don't. I'm just trying to figure out why something as simple as a hello world script gets flagged, which was answered by @BrewManNH
  20. @IAMK regarding your report, this is the proper forum for this thread as it deals with a GUI you're creating
  21. The executable program really is a standard autoit3 compiled files. Looks like it isn't a standard autoit3 file. This is because of China's 360 antivirus vendors put all autoit3 compile the program as a virus killing. So I changed the window class name from AutoIt v3 GUI to tubaba GUI. Using aspack2.4 compression, and that everything is in order to prevent being shot. At the same time, in order to prevent the program is infected by infectious virus, joined the self checking program code (using a digital certificate). If the exe file chang any byte,it will not be able to run. If you don't trust this program, I can upload the source code. You can run directly in the scite! My personality to guarantee there is no any malicious code! Please put the lang folder in the same directory because the default language is simplified Chinese, and in the last page to change the language option. There may be a lot of translation errors because my English is not good. here is The teaching video(in Baidu cloud): MySciTEJump_Lang_Merger_OBF.au3
  22. That might be the most YOLO app security strategy I have ever heard of in my 15 years of infosec.
  23. ! FileMove only for FILES not for DIRECTORIES DirMove("source dir", "dest dir" [, flag = 0] ) ;Moves a directory and all sub-directories and files. FileMove("source", "dest" [, flag = 0] ) ; Moves one or more files. Solution: Func _FileFolderMove($iSource, $iDest, $iOverwrite = 1) If StringRight($iSource, 1) == '\' Then $iSource = StringTrimRight($iSource, 1) ; Remove Backslash from path If StringRight($iDest, 1) == '\' Then $iDest = StringTrimRight($iDest, 1) ; Remove Backslash from path If Not FileExists($iSource) Then Return SetError(-1, 0, 0) Local $iReturn = 0 If (StringInStr(FileGetAttrib($iSource), "D") = 0) Then ; check path is file or folder $iReturn = FileMove($iSource, $iDest, 8 + $iOverwrite) ; if is file Else $iReturn = DirMove($iSource, $iDest, $iOverwrite) ; if is folder EndIf Return SetError(@error, @extended, $iReturn) EndFunc ;==>_FileFolderMove: DAO VAN TRONG - TRONG.WIN
  24. INI files by design are not Unicode compatible. There are workarounds to get them to be able to utilize Unicode characters, but it's non-standard to use them with Unicode characters. So what you need to do is encode your section, key and value strings in UTF-8 and store that as if it was ANSI. That can't make the standard function behave strangely UNLESS you share this ini file with application not aware that sections, keys and values actually are UTF-8. Note that the ini file is itself an ANSI file (no UTF-8 BOM). jchd: Here's the secret sauce behind the hood: Local $sText = "中國 한국어 ไทย" Local $sUTF8 = BinaryToString(StringToBinary($sText, 4), 1) IniWrite("my.ini", "test", "key", $sUTF8) Local $sRaw = IniRead("my.ini", "test", "key", "I'm not there") Local $sValue = BinaryToString(StringToBinary($sRaw, 1), 4) MsgBox(0, "Round-trip check", $sValue)
  25. I think it's fair to say that VirusTotal is a dead horse. Does your customer have full/enterprise versions of AV that are also triggering, if so which vendors? Does IDS trip when they download the file? Does it get quarantined by the ESA if sent as an attachment? Does the EDR lose its shit when it executes? Or "just this one website doesnt tell me its clean."?
  26. So again with forum help.. This is what I currently have... My new problem is that for some reason this generates two random numbers as the top of the written file, I'm guessing it has something to do with the number of lines in the array, but how do I fix this? Func ProcessAndCleanFiles() ;Remove the extra /'s at the end of each TestCodeLineFor IC3 $Whattowrite= StringRegExpReplace(FileRead($sFileName), "(?m)/*$", "") FileOpen($sFileName, 2) FileWrite($sFilename, $Whattowrite) Local $aFile, $aArray _FileReadToArray($sFileName, $aFile) _ArrayDisplay($aFile) $aArray = _ArrayUnique($aFile) _ArrayDelete($aArray, 0) _ArrayDisplay($aArray) _FileWriteFromArray ($sFileName, $aArray) EndFunc
  1. Load more activity