Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/09/2022 in all areas

  1. I don't know if you are like me, but I am always searching for that specific code I wrote over the years, but cannot find it. It was way too exhausting to look at 1k+ scripts. And Windows Explorer is not the best tool to do such exploration. So I made this little script that save me tons of time. Hope you will find it useful too. You can adjust default search folders and type of files you want to search for, but you can also change it at runtime. To use multiple filters separate them with ";" Let me know if you have any suggestion to enhance the tool. Version 2023-12-27 * Code revision : 3.3.16.1 now required Version 2023-05-10 * Sets children flag on first drawn list Version 2021-04-06 * Context menu modified to allow clipping file name and line content Version 2020-11-21 * Allows only 1 running instance of the script * Added right-click support on Tray to exit script Version 2020-06-29 * Added Copy File Name to context menu (helps to copy include files names) Version 2020-04-22 * Added icons to main buttons * Added informative box to describe progress and results of a search * Increased robustness of the GUI * Open Button enabled only under the right conditions * Added Tooltip on filter field to describe how to enter multiple criteria * Forced a minimum Window size Version 2020-04-18 * Added support of Context Menu in Tree View * Added support of Tray * Minimizes on Tray Version 2020-04-12 * Added DPI awareness * Added Enter Key functionality to start a search Version 2020-04-09 * Changed base size of the GUI to make it wider * Made the window resizable * Added Reset button * Shown busy cursor more appropriately * Corrected bug of first line displayed Thanks all for your input. SearchContent.au3
    1 point
  2. EasyCodeIt A cross-platform implementation of AutoIt Introduction: EasyCodeIt is an attempt at implementing a programming language which is backward compatible with a sub-set of AutoIt which would work across multiple platforms with many aspects being agnostic to the platform-specific differences. Currently the primarily targeted platforms are Linux and Windows, more platforms may be supported in the future as per popular demand. For example it should be easy enough to port to Unix-like platforms such as BSD and Mac with the help of maintainers who are familiar with them. The main motivation behind the creation of this project is the lack of a proper easy-to-use scripting language in Linux, while there are numerous scripting languages which natively support it, none of them are as user-friendly and easy to use as AutoIt. (The "Easy" in "EasyCodeIt" reflects this) There was a previous thread in which the project was originally started, but it got too big and the discussion is too cluttered and hard to follow for any new readers, here is the thread for those who are interested in reading it: Progress: Frontend ✅ Tokenizer 🚧 Parser (work in progress) ✅ Expressions 👷‍♂️ Statements (current priority) Backend ⏰ Interpreter (scheduled) I am currently working on expression parsing and syntax tree building. -- This section will be updated in the future with new progress. To stay notified 🔔 follow this thread to get update notifications (by using the "Follow" button on the top-right corner of this page) and 👁️ watch the GitHub repository to get any new activity on your feed. Code: The code is available on GitHub, please 🌟 star the project if you like it and would like to show your support, it motivates me a lot! (Also don't forget to 👍 Like this post ) Chat: I created a room in Matrix (an open-source federated chat system) for EasyCodeIt, you can join it to chat with me and others who are in the room, it might be a good way to get the latest status updates from me You can preview the room without joining, and you don't need to be connected to it 24/7 like IRC. It works a bit like Slack for those who are familiar with it. Forum: I have created a dedicated forum to post more frequent updates, possibly in their own threads to better organize the discussion. Please sign-up and follow the blog section to get updates. By the way, you can also post pretty much anything there, both technical and non-technical stuff, it is intended to be a hangout for techies but not only for them. So casual discussions, funny cat videos etc. are allowed!
    1 point
  3. Hi I don't know if this is the right place for this but I thought it might come in useful to someone and I couldn't find it while I was searching for posts that address it. This: Global $exampleGUI = GUICreate("Rounded corners", 400, 300, -1, -1) Will automatically get rounded corners in Windows 11... But this: Global $exampleGUI = GUICreate("Rounded corners", 400, 300, -1, -1, $WS_POPUP) Will not. I usually like to ditch the windows title bar and replace it with my own, so it was annoying, that on Windows 11, my stuff didn't look the part. The trick is to use DwmSetWindowAttribute to set DWMWA_WINDOW_CORNER_PREFERENCE (33) to DWMWCP_ROUND (2) as explained here: Apply rounded corners in desktop apps for Windows 11 I modified the function in WinAPIGdi.au3 to accept 33 as a valid parameter and used the function from there: Func _WinAPI_DwmSetWindowAttribute($hWnd, $iAttribute, $iData) Switch $iAttribute Case 2, 3, 4, 6, 7, 8, 10, 11, 12, 33 Case Else Return SetError(1, 0, 0) EndSwitch Local $aCall = DllCall('dwmapi.dll', 'long', 'DwmSetWindowAttribute', 'hwnd', $hWnd, 'dword', $iAttribute, _ 'dword*', $iData, 'dword', 4) If @error Then Return SetError(@error, @extended, 0) If $aCall[0] Then Return SetError(10, $aCall[0], 0) Return 1 EndFunc ;==>_WinAPI_DwmSetWindowAttribute Example: #include <WinAPIGdi.au3> #include <GUIConstantsEx.au3> #include <Windowsconstants.au3> Global $exampleGUI = GUICreate("Rounded corners", 400, 300, -1, -1, $WS_POPUP) _WinAPI_DwmSetWindowAttribute($exampleGUI,33,2) Local $label = GUICtrlCreateLabel(" This is an example.", 50, 150,200, 50) GUISetState(@SW_SHOW, $exampleGUI) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd
    1 point
  4. Check the first post for a miniature update: FIXED: Paste multiple controls into group or tab controls FIXED: "Select all" is more responsive for larger quantities of controls
    1 point
  5. Seems my humor went over your head, as I wasn't being serious, and just playing on your misnaming of AutoIt, which stands for Automate It, and not some Auto IT department. AutoIt 3 is indeed a fabulous language, the best in my opinion, certainly for automation and for your average person who is not really a nerd or much of one, empowering them when it comes to usage and control of their PC. Many other languages are of course faster and more powerful, but also more complex. So in the end one uses the right tool for the job, and AutoIt is a fantastic tool to have in your toolbox. Yes, some of those things you would like to see in a version 4 of AutoIt, would be lovely, but unfortunately they require huge changes, and for many years those in charge here, have been saying it simply will not happen. And some of what you want would make AutoIt more like other languages, which for me, is something I would not want. Sometimes you can change something to the point where it loses its soul and is no longer what was great about it.
    1 point
  6. We see this kind of "Hey, you should add xyz to AutoIt" post a lot. Unfortunately, the request lacks an understanding of the level of effort to implement these things. If you truly want to see the language grow and thrive, you are more than welcome to offer your services in doing so; perhaps you will change Jon's mind on the need for AutoIt4. I would suggest starting by creating UDFs for things you see as "missing" from the current version, or processes you see as pain points. Show the dev staff that you know what you're doing and have a real vision, and go from there.
    1 point
  7. CYCho

    Windows 11 and the IE udf

    I recently bought a Mini S computer and installed Windows 11 Pro from scratch. In the Windows Settings for Apps I set Chrome as default app for .htm and .html documents. I didn't change anything in Edge's settings. The above code runs flawlessly.
    1 point
  8. I have thought about older versions before, for historic purposes but it was while i building my autoit package manager i wanted to see what could be done. I'm sure barely anyone still uses v1 and v2 and even then the latest versions are fine, but it still seems sad loosing that part of AutoIt's History.
    1 point
  9. No, the information within the parentheses (parameter) is passed by the user which is then copied into a new variable for use within the function - any changes made to the variable will be Local. See https://www.autoitscript.com/wiki/Best_coding_practices#Scopes_of_Variables Declaring ByRef links the parameter to the original variable meaning any changes made to the variable within the function will be made to the original variable. This feels like a bad example but have a look anyway: Global $g_sText = 'iamkoshr' ; This is the variable we are passing to the functions Function1($g_sText) ConsoleWrite('Global Variable: ' & $g_sText & @CRLF) ; Here the output WILL be changed even though the parameter was changed within Function1 Function2($g_sText) ConsoleWrite('Global Variable: ' & $g_sText & @CRLF) ; Here the output will NOT be changed because the ByRef keyword was used Func Function1($sText) ConsoleWrite('Parameter: ' & $sText & @CRLF) ; Output the parameter passed by the user $sText = 'CHANGED!' ; Change the parameter EndFunc Func Function2(ByRef $sText) ConsoleWrite('Parameter: ' & $sText & @CRLF) ; Output the parameter passed by the user $sText = 'BYREF CHANGED!' ; Change the parameter EndFunc
    1 point
  10. You might find my attempt interesting, see the link in my sig
    1 point
  11. SteveJM

    au3 check parameters?

    Ok, I know this reply is ludicrously late, but it's Friday afternoon. I stumbled across this thread when wanting to understand AU3Check better. Curiosity piqued, I attempted to find a way to turn off a specific warning, both by trial and error and searching. Eventually, success, by trial and error! However, I was then embarassed to discover that the solution was documented and staring me in the face all the time. It is even already quoted in this thread. as above. But the eye too easily skips past the "[-]" in "[-w[-] n]". To turn off option 1 you give " -w- 1". I thought I'd mention it in case anybody finds themselves here making the same search I did.
    1 point
  12. An example from one of my scripts $icon = @HomeDrive & "\RegBackup\chimaera.ico" TraySetIcon($icon) And if you want the compiled file to use it as well #AutoIt3Wrapper_Icon=compile_files\chimaera.ico Bear in mind you wont see the tray one until you compile and run the exe
    1 point
×
×
  • Create New...