Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/04/2021 in all areas

  1. mLipok

    UI-SimpleWrappers UDF

    As I said I had a need to do some stuff . It was simple Click Yes/No/Cancel/Ok on NetFrameworks GUI. Example: Opt("MustDeclareVars", 1) #AutoIt3Wrapper_UseX64=n ; If target application is running as 32 bit code #AutoIt3Wrapper_Run_AU3Check=Y #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #include "UIASimple.au3" _Test() Func _Test() _Log_SetOutputFunction(__UIASimple_ConsoleWrite) Local $sTitle = "YOURS WINDOW TITLE TO FIND" Local $sText = "YOURS EXACT TEXT TO FIND IN THE WINDOW" If _UIASimple_WinExist($sTitle, $sText) Then _UIASimple_YesNo($sTitle, $sText, "Yes") MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, "Information #" & @ScriptLineNumber, "Exist" & @CRLF & $sTitle & @CRLF & $sText) Else MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, "Information #" & @ScriptLineNumber, "Not Exist" & @CRLF & $sTitle & @CRLF & $sText) EndIf EndFunc ;==>_Test As I said I work on this project for my needs together with @Danyfirex so the real author of this UAISimple.au3 UDF is @Danyfirex btw. it uses my ErrorLog.au3 UIASimple.au3
    2 points
  2. I am not making this for myself this is for anyone who wants to use modify whatever... source is listed in another post here I wasnt trying to crosspost but here is the link for the entire thing (already updated):
    1 point
  3. Why : [...] If $bootDrive=($driveletter[$x]) Then Else If $var = "INVALID" Then $mainDrive=($driveletter[$x]) EndIf EndIf [...] instead of : [...] If Not ($bootDrive=($driveletter[$x])) Then If $var = "INVALID" Then $mainDrive=($driveletter[$x]) EndIf EndIf [...] BTW : A small but runnable reproducer script would be helpful to see, e.g. which variables are declared Global .
    1 point
  4. 🙃 ConsoleWrite("- Is Windows 11: " & _IsWindows_11() & @CRLF) ;ConsoleWrite("- Is Windows Server 2022: " &_IsWindows_22() & @CRLF) Func _IsWindows_11() If StringInStr(@OSVersion, "11") Or StringInStr(_GetOS_Name(), "11") Then Return 1 Return 0 EndFunc ;==>_IsWindows_11 Func _IsWindows_22() If StringInStr(@OSVersion, "22") Or StringInStr(_GetOS_Name(), "22") Then Return 1 Return 0 EndFunc ;==>_IsWindows_22 Func _GetOS_Name() Local $OSname, $objItem = "", $strComputer = ".", $wbemFlagReturnImmediately = 0x10, $wbemFlagForwardOnly = 0x20 Local $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\") Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) Then For $objItem In $colItems $OSname = $objItem.Caption ConsoleWrite("> System: " & $OSname & @CRLF) Return $OSname Next Else ConsoleWrite("! No WMI Objects Found for class: Win32_OperatingSystem" & @CRLF) Return SetError(1, 0, "") EndIf EndFunc ;==>_GetOS_Name ; DAO VAN TRONG - TRONG.LIVE
    1 point
  5. Yes. Take the code from Post #1 -> https://www.autoitscript.com/forum/topic/201562-au3tocmd-avoid-false-positives/?do=findComment&comment=1446375
    1 point
  6. Ew, but I completely understand and it's updated I'd be very happy to do that, especially as I was unable to get a few pieces working, like TreeViews and Conditional Arrays. And I'm sure you have some higher level functions that would make this entire thing a lot simpler... I just struggled to get your code working when I was getting started And I'd be happy to merge with you too, @mLipok. Now I wish I'd posted this all a bit sooner!
    1 point
  7. mLipok

    UI-SimpleWrappers UDF

    Haha.... I and @Danyfirex we did something similar.... WIP. I post it here tomorrow.
    1 point
  8. NB that ByRef edit I suggested would only be necessary if you use indirection, which does incur an additional performance penalty at runtime. Yes, your target's $phrasesEncryp is empty until you run CodeCrypter at least once on your target with encryption enabled. Ensure the encrypted version works as expected before proceeding. To do what you want (assuming that placing your desired to-be-encrypted lines in a single UDF and enabling encryption only for that function is not an option (see tick-box list under Encrypt Tab)), you'll need to: write a small script yourself that loads the phrasesUsed and phrasesEncryp arrays (just include readCSdatadump.au3 in your own utility and call _ReadCSDataDump(<full CS output subdir path>)), copy phrasesUsed to phrasesNew array, replace the desired lines only from phrasesEncryp into phrasesNew, write phrasesNew to file (ensure no lines are misaligned with respect to phrasesUsed!), then restart CodeCrypter and select Main option "Create New". See the Remarks in the CodeCrypter header: And in the FAQ:
    1 point
  9. Pulseway can be installed silently, have you tried that? https://forum.pulseway.com/topic/332-unattended-installation-for-msi/
    1 point
  10. I've always used CertUtil to add/update/remove certificates.
    1 point
  11. sr but i dont know how to use it. i do not see anything to download. Copy the code an run ??
    0 points
×
×
  • Create New...