Jump to content

argumentum

MVPs
  • Posts

    5,372
  • Joined

  • Last visited

  • Days Won

    177

argumentum last won the day on December 5

argumentum had the most liked content!

About argumentum

Profile Information

  • Member Title
    ✨Universalist ✨
  • Location
    I'm in your browser now =)
  • WWW
    https://www.youtube.com/watch?v=SjwX-zMRxO0&t=5s
  • Interests
    Relax

Recent Profile Visitors

13,898 profile views

argumentum's Achievements

  1. ..there should be. But am not a "programmer", just a "scripter", and the knowledge to turn parts of Ntddstor.h into AutoIt, is beyond me
  2. ...to be or not to be... ...to theme or not to theme.., that is a good question. I believe that in your project, theme-ing each control will not be possible. Don't worry about themes but do use proper windows coloring if you need to color something: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <WinAPISysWin.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 400, 100) GUICtrlCreateLabel("Label just as is, will be seen", 10, 10, 380, 17, -1, $WS_EX_STATICEDGE) GUICtrlCreateLabel("Label with COLOR_HIGHLIGHT will be seen as it should", 10, 40, 380, 17, -1, $WS_EX_STATICEDGE) GUICtrlSetColor(-1, _WinAPI_SwitchColor(_WinAPI_GetSysColor($COLOR_HIGHLIGHT))) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE GUIDelete() Exit EndSwitch WEnd Therefore, if we respect default coloring, everything should be visible by default. Then give users the ability to use custom colors. But by default, default theme colors should be sufficient.
  3. Yes, eventually shows the items. Not after. No. The reason for forking the process that gives the data to the treeview, is to avoid unresponsiveness of the GUI. But you'll have to look into it. It is quite responsive if the system returns the data fast.
  4. I think that the GUI and the searching should be separated/forked. When listing something slow, like a network share with lots of folders/subfolders, the GUI is "not responsive". Other than that, nice looking.
  5. I'd like to say is my awesomeness but is just the theme I use. Makes everything dark mode. Here is a sample of 2 of them : BIB3 Buuf Regular And that is the way it should be. You choose a theme and that's the theme for the OS, but M$ don't do it and I search the net for ways to get it done.
  6. smartctl.exe will give you what you need and more ( like health status of the NVMe ) "The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA/SATA, SCSI/SAS and NVMe disks. In many cases, these utilities will provide advanced warning of disk degradation and failure." ( https://github.com/smartmontools/smartmontools )
  7. That sounds more like a non-apology than one. And I'll take offence on his behalf because he did answer your post with good advise ( even if not what you expected ). The best you can do is to ... do what I asked before. Maybe is a problem in AutoIt, maybe is a problem with the your script code. We would welcome a detailed account of, piece by piece of your code, to pin point the exact issue. Do remember that we dedicate time and answer, out of the goodness of our hearts, and nothing else
  8. ..like @Nine said, try to zoom into the aspect of the code with the problem. If you want us to look at something, provide simple running code, to run and debug. And keep in mind that we don't have anything to look into MT5 stuff.
  9. I changed the colors a bit: $UserName = GUICtrlCreateLabel("Name", 153, 32, 337, 35, $SS_CENTERIMAGE) GUICtrlSetColor(-1, _WinAPI_SwitchColor(_WinAPI_GetSysColor($COLOR_HOTLIGHT))) $CompanyName = GUICtrlCreateLabel("Organization", 155, 77, 327, 30, $SS_CENTERIMAGE) GUICtrlSetColor(-1, _WinAPI_SwitchColor(_WinAPI_GetSysColor($COLOR_HOTLIGHT))) to work on my dark mode theme. Did have a problem moving the example from my primary monitor ( 100% scale ) to my secondary ( 200% scale ) Other than that, thanks for the code
  10. How do you translate "Desktop" to the user's language ? #include <WinAPIRes.au3> Exit ConsoleWrite(@CRLF & '>' & _LoadString_shell32(4162) & '<' & @CRLF & @CRLF) Func _LoadString_shell32($iID) ; 4162 = "Desktop" Local $sText = "", $hInstance = _WinAPI_LoadLibraryEx("shell32.dll", $LOAD_LIBRARY_AS_DATAFILE) If $hInstance Then $sText = _WinAPI_LoadString($hInstance, $iID) _WinAPI_FreeLibrary($hInstance) EndIf Return SetError(@error, @extended, $sText) EndFunc ;==>_LoadString_shell32 If your GUI is simple, you may just find all the strings you use in shell32.dll
  11. ..was in one of the AutoIt forums and found "Control Splitter - window splitters for control elements" and looking at the source with Russian everything, started to translate by hand. Then I found the word "Desktop" in Russian and am like, that should be somewhere, some DLL or something. That took me to "_WinAPI_LoadLibraryEx()" that in turn took me to "_WinAPI_LoadStringEx()" and, found that is missing _WinAPI_FreeLibrary() #include <APILocaleConstants.au3> #include <APIResConstants.au3> #include <MsgBoxConstants.au3> #include <WinAPILocale.au3> #include <WinAPIRes.au3> Local $hInstance = _WinAPI_LoadLibraryEx(@ScriptDir & '\Extras\Resources.dll', $LOAD_LIBRARY_AS_DATAFILE) If Not $hInstance Then MsgBox(($MB_ICONERROR + $MB_SYSTEMMODAL), 'Error', @ScriptDir & '\Extras\Resources.dll not found.') Exit EndIf ; Why is the resource name for the string with ID = 6000 is 376? 6000 / 16 + 1 = 376 Local $aData = _WinAPI_EnumResourceLanguages($hInstance, $RT_STRING, 376) If IsArray($aData) Then For $i = 1 To $aData[0] ConsoleWrite(StringFormat('%-10s - %s', _WinAPI_GetLocaleInfo($aData[$i], $LOCALE_SENGLANGUAGE), _WinAPI_LoadStringEx($hInstance, 6000, $aData[$i])) & @CRLF) Next EndIf _WinAPI_FreeLibrary($hInstance) ; <<<<< missing ? unless am wrong 🤔
  12. "D:\New AutoIt v3 Script.au3"(5,9) : error: can't open include file <_My_DATE.au3>. #include<_My_DATE.au3> ~~~~~~~~^ "D:\New AutoIt v3 Script.au3"(40,84) : warning: $YrDate_Short: possibly used before declaration. $sInputBoxAnswer2 = InputBox($BoxTitle2, $LineTitle2 & @CRLF & @CRLF, $YrDate_Short, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\New AutoIt v3 Script.au3"(40,84) : error: $YrDate_Short: undeclared global variable. $sInputBoxAnswer2 = InputBox($BoxTitle2, $LineTitle2 & @CRLF & @CRLF, $YrDate_Short, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\New AutoIt v3 Script.au3 - 2 error(s), 1 warning(s) !>10:10:33 AU3Check ended. Press F4 to jump to next error. rc:2
×
×
  • Create New...