Leaderboard
Popular Content
Showing content with the highest reputation on 10/24/2024 in all areas
-
Version 1.6.1 has just been released! The function snippet, now uses "func" instead of "fun" for the string prefix. Variables declared via for loops are now recognized by the extension. include statements that fail to resolve, should no longer have links added to them. Sorry for the slow release. Personal things, combined with my vscode and docker that keeps crashing due to running out of memory, have delayed this release by at least a month. 😕 Anyway, i am currently looking into: adding errors for things like include statements that fail to resolve. improving the function signature helper (currently it disappears if the parser fails on that line, like when adding a comma within the parentheses, but there is nothing between the comma and the closing parenthesis) adding setting for omitting included functions and variables with the "__" prefix from the completion suggestions.2 points
-
Personal development regarding IT, programming, and related topics
argumentum reacted to SOLVE-SMART for a topic
Fair enough, I understand. Ah okay, yes. I am not primarily talking about AutoIt related things. Especially not here because I guess the forum is the best place to get proper answers 😇 . Let's talk medium.com which has a brought audience of well experienced software developers and other aspects of IT (as you mentioned). At this platform I found many helpful articles to frameworks like Cucumber.js, how to use page object model, how to use design pattern X Y Z etc. In my professional work I have to face several languages and frameworks. The official references are often well documented and good to go, but more practical (more hands on) are blog post / articels about certain problems. That's why I personally like to read articles. But you have to be experienced enough to decide which post is non-sense and which provides enough quality. That's often not easy, but this also leads to a good learning experience (at least for me). I've always tried new things in the past. Sometimes this was due to work, either because it was required or just happened to come up, and other times I stumbled upon exploring YouTube videos, blog articles, learning platforms, etc., through personal projects. I don't intend to build a large audience or anything like that, as my personal and family life is much too important to me. However, I enjoy exchanging ideas with different people and learning more in that way, especially since my professional tasks often involve similar challenges and solutions. Thanks @argumentum 🤝 . Best regards Sven1 point -
#include <File.au3> #include <MsgBoxConstants.au3> ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ----------------------------------------------- _CleanUpSessUndo() ; ----------------------------------------------- Func _CleanUpSessUndo() Local $confirmCreate = MsgBox(1, "NOTICE!", "Select the Session folder to cleanup...") If $confirmCreate = 1 Then ;OK Local $sourceFolder Do $sourceFolder = FileSelectFolder("Select Source folder... This operation MUST BE COMPLETED!!", "") Until $sourceFolder <> "" ; ----------------- Local $_sSrcPath2 = _FileListToArrayRec($sourceFolder, "Session_Undo", $FLTAR_FOLDERS, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) If @error Then MsgBox($MB_ICONERROR, "Error", "No 'Session_Undo' folder found. Exiting.") Return EndIf ; ----------------- For $i = 1 To $_sSrcPath2[0] FileDelete($_sSrcPath2[$i] & "\*.u*") Next EndIf EndFunc ;==>_CleanUpSessUndo ; -----------------------------------------------1 point
-
ioa747m This is the initial path to the Session_Undo folder: F:\Audio\Type_#\ArtistName\edl\Session_Undo • There are 4 Type_# folders • There could be a single Type_# sub-folder, or there could be fifty!! It all depends on the content of the Type_# folder. • For example: F:\Audio\Type_1\AndreaBochelli\edl\Session_Undo Q: "What exactly is _FileListToArrayRec doing here?" A: Scanning all sub-folders for *.u* data files, which will then be deleted. Hope this helps?1 point
-
how to highlight the button found by autoit
robertocm reacted to argumentum for a topic
..well, yeah. Otherwise I have to install audacity, make it crash and do what you're doing. And right now I don't have even the brain power to show you in a MsgBox. ..or maybe I do ... #include <GuiConstants.au3> ; for GUISquare_Create() Global $_g__Square_GUI[4], $_g__Square_Color = 0x00CC00, $_g__Square_Width = 3 If StringInStr($CmdLineRaw, "/msgBoxThing") Then Exit MsgBox(262144, "PointerPointingToTheControlDemo", "Where's the button ?") ShellExecute(@AutoItExe, '"' & @ScriptFullPath & '" /msgBoxThing') ; run a MsgBox() ConsoleWrite(PointerPointingToTheControl("PointerPointingToTheControlDemo", "", "Button1", 1, 50) & @CRLF) Func PointerPointingToTheControl($sTitle, $sText, $sCtrlId, $bClickIt = False, $iSpeed = 10) ; https://www.autoitscript.com/forum/index.php?showtopic=212400&view=findpost&p=1537933 Local $hWin = WinWait($sTitle, $sText, 2) ; find the window in 2 seconds or quit If Not $hWin Then Return SetError(1, 0, "! can't find the window") Local $hCtrlId = ControlGetHandle($hWin, "", $sCtrlId) ; find the control in the window If Not $hCtrlId Then Return SetError(2, 0, "! can't find the control") Local $aCtrlIdPos = WinGetPos($hCtrlId) ; get the position of the control in the window If @error Or UBound($aCtrlIdPos) <> 4 Then Return SetError(3, 0, "! can't find the control's position") GUISquare_Create($aCtrlIdPos[0], $aCtrlIdPos[1], $aCtrlIdPos[2], $aCtrlIdPos[3]) ; <--- this may help ? Local $hTimer = TimerInit() MouseMove($aCtrlIdPos[0] + ($aCtrlIdPos[2] / 2), $aCtrlIdPos[1] + ($aCtrlIdPos[3] / 2), $iSpeed) Do Sleep(10) Until TimerDiff($hTimer) > 500 ; ..to give you time to see it ? If $bClickIt Then MouseClick("Main") ; click the darn thing GUISquare_Delete() Return "Found ya." EndFunc ;==>PointerPointingToTheControl Func GUISquare_Create($X, $Y, $W, $H) $X -= $_g__Square_Width $Y -= $_g__Square_Width $W += $_g__Square_Width $H += $_g__Square_Width $_g__Square_GUI[0] = GUICreate("", $W, $_g__Square_Width, $X, $Y, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW) $_g__Square_GUI[1] = GUICreate("", $_g__Square_Width, $H, $X, $Y, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW) $_g__Square_GUI[2] = GUICreate("", $_g__Square_Width, $H, $X + $W, $Y, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW) $_g__Square_GUI[3] = GUICreate("", $W + $_g__Square_Width, $_g__Square_Width, $X, $Y + $H, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW) For $i = 0 To 3 GUISetBkColor($_g__Square_Color, $_g__Square_GUI[$i]) GUISetState(@SW_SHOW, $_g__Square_GUI[$i]) Next EndFunc ;==>GUISquare_Create Func GUISquare_Delete() If Not $_g__Square_GUI[0] Then Return For $i = 0 To 3 GUIDelete($_g__Square_GUI[$i]) $_g__Square_GUI[$i] = 0 Next EndFunc ;==>GUISquare_Delete Edit: Turned it into a function. 👏1 point -
Just to add this reference that seems to work: ;Xenobiologist, Oct 21, 2020 ;https://stackoverflow.com/questions/64417468/object-shell-application-open-folder-in-same-explorer-window1 point
-
Control Viewer (mod.)
robertocm reacted to argumentum for a file
Version 0.2024.9.16
5,353 downloads
This is @Yashied's most excellent control viewer, modified by me, based on the code @boomingranny posted. There are 2 forum entries, one shows active and the other depreciated, and not seen @Yashied since March 2016, so I feel is OK to post this, tho, i'd take it down upon request. PS: Do run as Admin if available, as it may not do what you need without the rights.1 point -
1 point