Diana (Cda)
Active Members-
Posts
752 -
Joined
-
Last visited
-
Days Won
1
Diana (Cda) last won the day on August 8 2025
Diana (Cda) had the most liked content!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Diana (Cda)'s Achievements
Universalist (7/7)
7
Reputation
-
Danyfirex reacted to a post in a topic:
Stumped on where script is going wrong ... creating 12 dummy text files per year ...
-
<lol>, I just _knew_ it was something my eyes were missing despite trying to fix it with a good sleep cycle in between tries! <lol> This is great! I just completed all the 3 calendar files for each month for 2026. I'll do 2027 to 2030 later. With these files in the folder, when I go to save the style sheet, the calendar file itself, and then the actual jpg of each month to use, it goes extremely fast and smoothly as I don't have to re-type each 3 times!!! (12x3=36 files per year!). Thank you!!!
-
I'm in the process of creating 4 years of calendars. In another thread i received very kind help for the same type of thing for a different file creation process and it works flawlessly. But here I've been coming back to the script over and over since last night, editing and changing, but I just can't figure out this time where it's going wrong. Better eyes than mine have to see this 'cause I'm just not seeing it <lol>! Here is the script with the 2 original lines in it from the other task that produce results as the first 2 lines: #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=No, Input Length=4, Width=500, Height=125 If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer ;$sInputBoxAnswer = InputBox("Year?","What year do you wish to create calendars for?",""," 4","500","125","250","250") $sInputBoxAnswer = InputBox("Year?","What year do you wish to create calendars for?",""," 4","500","125") ; width, height, left, top -- leaving out LEFT and TOP centers box. Select Case @Error = 0 ;OK - The string returned is valid FileWrite(@ScriptDir & "\" & $sInputBoxAnswer & ".01 - JAN " & $sInputBoxAnswer & " - Wall Calendar .pdf", "") ; empty file -- THIS LINE WORKS FileWrite(@ScriptDir & "\" & $sInputBoxAnswer & ".02 - FEB " & $sInputBoxAnswer & " - Wall Calendar .pdf", "") ; empty file -- THIS LINE WORKS FileWrite(@ScriptDir & "\IC w-date (70perc)- " & $sInputBoxAnswer & ".01 - JAN " & $sInputBoxAnswer & " .txt, ") ; error: INCORRECT # OF PARAMETERS IN FUNCTION CALL FileWrite(@ScriptDir & "\IC w-date (70perc)- " & $sInputBoxAnswer & ".02 - FEB " & $sInputBoxAnswer & " .txt, ") ; error: INCORRECT # OF PARAMETERS IN FUNCTION CALL Case @Error = 1 ;The Cancel button was pushed Exit ; finished Case @Error = 3 ;The InputBox failed to open Exit ; finished EndSelect #EndRegion --- CodeWizard generated code End --- Thank you!!!
-
Often enough I have a series of nested folders for applications that it would be nice not to have to manually open, which is what I've done for years (decades ...? / yes, I have a ton of Windows app ...) Example of scenario, I'm going to try out some apps to see which might do a new, important task. The root folder I'd input is, where the OK_click would have the syntax to open all those sub-subfolders, if I can call them that: Root folder: D:\BIRTHDAY\ Level 1 type of subfolder: D:\BIRTHDAY\CDAY Calendar Almanac v0.5.1\ 2nd level of actual folders I need to open: D:\BIRTHDAY\CDAY Calendar Almanac v0.5.1\APP- CDAY Calendar Almanac v0.5.1\ So I'd input the root folder, and hopefully the script will open all subfolders beginning with "APP- ", as in the example above. How would one do that, please? ---------------------------------------------------------------------------------------------------------------------------- I do have the script started here that prompts for the root folder (i.e., the "BIRTHDAY" one above): ;=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----===== Opt("GUIOnEventMode", 1) $Form1_1 = GUICreate("Open all ''APP- '' subfolders within the subfolders here below ...", 591, 117, 428, 350) $Label1 = GUICtrlCreateLabel("Root folder:", 16, 8, 84, 22) GUISetIcon($IconsMine, 2) ; this changes the GUI icon in upper left-hand corner + GUI taskbar icon to your chosen one) GUICtrlSetFont(-1, 12, 400, 0, "Arial") GUICtrlSetTip(-1, "i.e., ''D:\CASE\Primitive Case Changer v2.00''") ; button tooltip ;=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----=====-----===== $Input1 = GUICtrlCreateInput("", 16, 32, 561, 21) $Button1 = GUICtrlCreateButton("OK", 16, 70, 291, 25, 0) ;------------------------------------------------------------------- GUICtrlSetOnEvent(-1, "CancelClick") $Button2 = GUICtrlCreateButton("Cancel", 335, 70, 75, 25, 0) ;------------------------------------------------------------------- GUICtrlSetOnEvent(-1, "Clear_click") $Clear = GUICtrlCreateButton("Clear", 515, 63, 57, 41, $BS_ICON) ;------------------------------------------------------------------- ;TraySetIcon($IconsMine, 163) ; changes the icon displayed in the systray GUICtrlSetImage(-1, "C:\Documents and Settings\Administrator\Desktop\Script\Clear.ico", 0) GUICtrlSetOnEvent(-1, "ClearClick") GUICtrlSetTip(-1, "Clear the contents of the two input boxes ...") ; --------------------------- GUISetState(@SW_SHOW) ;============================ GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ; ----------------- While 1 Sleep(100) WEnd ; ----------------- Func CancelClick() Exit ; finished EndFunc ; ----------------- Func ClearClick() GUICtrlSetData($Input1,"") GUICtrlSetState($Input1, $GUI_FOCUS) ; from GUIConstants UDF; referenced in "Global Const $GUI_FOCUS = 256" above. EndFunc ; ----------------- Func OK_click() EndFunc ; ----------------- Thank you!
-
Thank you! It didn't work, however. When I tested the websites they removed carriage returns. But when I put it into the inputbox, seemingly nothing happened ... Here is sample text to "clean up". Might this help? Hey folks, welcome back to Dig DriveDIY. Well, in today's video, we're going to start on our next project. This time it's here at home and it's this little machine right here. We've got this EasyGo RXV golf cart that maybe you saw in a previous video I acquired from Carts and Parts. And with the help of them and a bunch of new parts, we're going to kind of do this like we're doing the Bronco, a mini version, but we're going to strip it down to the chassis and then clean it up and then start to rebuild it. I'm going to enlist the help of my girls hopefully to tackle this. But we hope this is maybe a two or three video series, but it's going to be a lot of fun. I think we can't wait to have a newer cart. So, I'm going to get them on the line and we're going to get going. >> Stick dry. >> All right. Well, in the last video, you saw us take delivery of this cart. And Kobe stuck around and helped me with the first step that I wanted to do. If I was going to get a new cart, I wanted it to be lithium ion conversion. So, we put in a factory easygo lithium ion conversion and that went great. We've went out and done a done a couple test drives and this thing is quick and the brakes work What do you think? ** Just noticed something that happens occasionally. Can the " >> " also be taken care of, by any chance?. Thank you!
-
Has anyone seen an AutoIt script anywhere that does this? That just has a simple inputbox one pastes text with hard returns into, then output result just gets sent to the clipboard (sort of what these online websites do: https://www.textfixer.com/tools/remove-line-breaks.php, https://miniwebtool.com/remove-line-breaks/, https://capitalizemytitle.com/tools/remove-line-breaks/). The inputbox is easy enough to create with the Code Wizard: #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=No, Width=300, Height=140 If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer $sInputBoxAnswer = InputBox("Remove Line Breaks","Paste your block of text to clear of hard returns in the box below:",""," ","300","140","-1","-1") Select Case @Error = 0 ;OK - The string returned is valid Case @Error = 1 ;The Cancel button was pushed Case @Error = 3 ;The InputBox failed to open EndSelect #EndRegion --- CodeWizard generated code End --- Thank you in advance for any kind help!
-
Good morning! I've tried every which way, but I'm having trouble that I can't seem to fix. I keep getting this error: Error: Illegal text at the end of statement (one statement per line). My script is to automate entry for scripts into my file manager for quick input. i.e., syntax structure is like this: "TIPS ... fldr" tab("new", "E:\TIPS\"); My line for the ClipPut in the 2-inputbox GUI to achieve this so far is: ClipPut('"' & GUICtrlRead($Input1)) & '"' & 'tab("new", "' & GUICtrlRead($Input2)) & '\");') But somewhere I'm not wrapping those quotation marks properly (I think that's where the problem lies). I've played around with apostraphes and quotation marks for over 15 minutes now and not resolving this this time ! Any advice on how to re-structure that line? Thank you!
-
Adding radio buttons to a GUI?
Diana (Cda) replied to Diana (Cda)'s topic in AutoIt GUI Help and Support
Thank you! -
Adding radio buttons to a GUI?
Diana (Cda) replied to Diana (Cda)'s topic in AutoIt GUI Help and Support
Thank you! You guys are the best. I use Koda, but I'm just not good with doing complex things with it. This is great code. It doesn't have the path items already in it that my code does, but this is impressive. Thank you! -
Hello! Happy Advent! I shock myself sometimes <g>, I just started editing a file that had 2 inputboxes that I'd made up using the CodeWizard tool some years back (though I don't remember much from that far back <g>!). But I went and added another inputbox and darned if it doesn't work and work without hiccuping!!! <lol> MIracle I managed to do it <g>. Anyway, it's for creating folders. But I don't know how to apply the StringFormat to the leading number that will be inserted at the beginning of the created folder name. The user input for the folder number is in inputbox 1. Here is my code: ; ; AutoIt 3x ; #Include <Date.au3> #include<_My_DATE.au3> ; my date, time conventions, etc. #NoTrayIcon ; AutoIt's icon doesn't show in systray TraySetIcon("Shell32.dll", 147) ; changes the icon displayed in the systray AutoItSetOption("WinTitleMatchMode", 2) ; this allows partial window titles to be valid! ;------------------------------------------------------------------------------------------------------------------------- #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=Yes, Width=250, Height=125 If Not IsDeclared("sInputBoxAnswer1") Then Local $sInputBoxAnswer1 ;===================================================================================================== $BoxTitle1 = "Create folder:" $LineTitle1 = "1. Number for next folder -- (i.e., ''2'', ''14'', or ''99'', etc. ...):" $BoxWidth1 = "525" $BoxHeight1 = "125" ;===================================================================================================== $sInputBoxAnswer1 = InputBox($BoxTitle1, $LineTitle1 & @CRLF & @CRLF, ""," ", $BoxWidth1, $BoxHeight1, Default, Default) ; width, heigh, left ("Default" centers box), top ("Default" centers box). Select Case @Error = 0 ;OK - The string returned is valid ClipPut($sInputBoxAnswer1) Case @Error = 1 ;The Cancel button was pushed Exit ; finished Case @Error = 3 ;The InputBox failed to open Exit ; finished EndSelect #EndRegion --- CodeWizard generated code End --- If Not IsDeclared("sInputBoxAnswer2") Then Local $sInputBoxAnswer2 ;===================================================================================================== $BoxTitle2 = "Create folder:" $LineTitle2 = "2. yymmdd.ddd" & @CRLF & "(Today's date by default; but change, as needed in yymmdd.ddd format.):" $BoxWidth2 = "525" $BoxHeight2 = "145" ;===================================================================================================== $sInputBoxAnswer2 = InputBox($BoxTitle2, $LineTitle2 & @CRLF & @CRLF, $YrDate_Short," ", $BoxWidth2, $BoxHeight2, Default, Default) ; width, heigh, left ("Default" centers box), top ("Default" centers box). Select Case @Error = 0 ;OK - The string returned is valid ClipPut($sInputBoxAnswer2) Case @Error = 1 ;The Cancel button was pushed Exit ; finished Case @Error = 3 ;The InputBox failed to open Exit ; finished EndSelect #EndRegion --- CodeWizard generated code End --- If Not IsDeclared("sInputBoxAnswer3") Then Local $sInputBoxAnswer3 ;===================================================================================================== $BoxTitle3 = "Create folder:" $LineTitle3 = "3. Name for folder -- (i.e., Pliers, etc.):" $BoxWidth3 = "525" $BoxHeight3 = "125" ;===================================================================================================== #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=Yes, Width=250, Height=125 If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer3 $sInputBoxAnswer3 = InputBox($BoxTitle3, $LineTitle3 & @CRLF & @CRLF, ""," ", $BoxWidth3, $BoxHeight3, Default, Default) ; width, heigh, left ("Default" centers box), top ("Default" centers box). Select Case @Error = 0 ;OK - The string returned is valid ;============================================================================== $PathAndFldrName = @ScriptDir & "\" & $sInputBoxAnswer1 & "." & $sInputBoxAnswer2 & "- " & $sInputBoxAnswer3 & " [rd" ;============================================================================== $Title1 = ClipGet() & ", _ _._ _- " & $sInputBoxAnswer3 & "- PRODUCT DETAILS.txt" $LineText1 = "Seller:" & @TAB & @TAB & @TAB & "." & @CRLF & _ "* FULFILLED By:" & @TAB & "." & @CRLF & _ "Product:" & @TAB & @TAB & @TAB & "." & @CRLF & _ "Price:" & @TAB & @TAB & @TAB & "$ #.#" & @CRLF & @CRLF & @CRLF & _ "Price:" & @TAB & @TAB & @TAB & "$ #.#" & @CRLF & @CRLF & @CRLF & _ "--------------------------------" & @CRLF & _ "Source URL:" & @TAB & "." & @CRLF & _ "--------------------------------" & @CRLF & @CRLF & @CRLF & _ "Details:" & @TAB & @CRLF & "*******" & @CRLF & @CRLF & "." ;------------------------------------------------------------------------------ $Title2 = ClipGet() & ", _ _._ _- " & $sInputBoxAnswer3 & "- [SOURCE URL FOR PRODUCT(S) (drag pg here4 2create)].url" $LineText2 = "" ;------------------------------------------------------------------------------ $Title3 = ClipGet() & ", _ _._ _- " & $sInputBoxAnswer3 & "- screencapture of order page.jpg" $LineText3 = "" ;============================================================================== DirCreate($PathAndFldrName) Sleep(50) FileWrite($PathAndFldrName & "\" & $Title1, $LineText1) Sleep(50) FileWrite($PathAndFldrName & "\" & $Title2, $LineText2) Sleep(50) FileWrite($PathAndFldrName & "\" & $Title3, $LineText3) Case @Error = 1 ;The Cancel button was pushed Exit ; finished Case @Error = 3 ;The InputBox failed to open Exit ; finished EndSelect #EndRegion --- CodeWizard generated code End --- [Now before anyone says, I'm sure it's ugly to you guys and it could probably be done waaayyyy better than this. But this is at my level and I can understand it <g>.] In other scripts that I have, I can ensure they keep the same naming convention in terms of number length by using StringFormat. An example I have of a line of working code can be seen here below. But I'm lost as how to apply it to the script above in the section dealing with $sInputBoxAnswer1 re the folder name. I think for 3 places with leading 0 -- to ensure the output is like this - 009, 054, 099, 125, etc. -- the code below with "StringFormat("%02i"," might need %03i, instead of %02i, no? ClipPut($YrDate_Short & "." & StringFormat("%02i", $number) & "- ") Thank you for any help in advance!
-
I've cobbled together over time, from kind forum helpers here, the following type of date picker that works extremely well for me. Thank you to all who provide the valuable help here! But I don't know how to incorporate a way for user input to choose out of several extensions, i.e., .doc, .txt, .xls, or .xlt, etc. Here is the code in question to add the radio button to, if at all possible ... (less the UDF lines) ;========================================================================= Global $GUIboxTitle = "POSTS (+PATH/-EXT)" ;------------------------------------------------------------------------- ; don't change this year format here below; it is what is displayed in box Global $DateFormat = "yyMMdd.ddd" ;------------------------------------------------------------------------- $BoxIcon = $DatePickerIcon_HOME $FolderYearName = "" ;------------------------------------------------------------------------- ;$Button1_Text = "Create folder and send date to clipboard ..." $Button1_Text = "Send above date to the clipboard ..." ;------------------------------------------------------------------------- ; where text is not needed in either Prefix or Suffix - i.e., before or after the date - then just leave blank by using "" (no text in between quotes). $DateNameText_PREFIX = @ScriptDir & "\P- " $DateNameText_SUFFIX = ".1- Q- _ _ _- " ;========================================================================= Global $sPath = "", $sDateParams ;Global $hGUI = GUICreate($GUIboxTitle, 325, 250, 325, 340) ; width, height, left, top (this determines size of entire GUI box) Global $hGUI = GUICreate($GUIboxTitle, 575, 250, 500, 375) ; width, height, left, top (this determines size of entire GUI box) Global $date = GUICtrlCreateDate("", 10, 10, 200, 20) ; calendar pulldown box GUICtrlSendMsg($date, 0x1032, 0, $DateFormat) ; $DTM_SETFORMAT Global $hLabel1 = GUICtrlCreateLabel("", 10, 50, 300, 20) Global $hLabel2 = GUICtrlCreateLabel("", 10, 80, 300, 20) Global $hLabel3 = GUICtrlCreateLabel("", 10, 110, 300, 20) Global $hLabel4 = GUICtrlCreateLabel("", 10, 140, 300, 20) ;Global $DateChooseButton = GUICtrlCreateButton("Create folder and send date to clipboard ...", 10, 200, 250, 30) ;Global $DateChooseButton = GUICtrlCreateButton("Create folder here (also sends date to clipboard) ...", 10, 200, 300, 30) ; left, top, width, height (location of button) Global $DateChooseButton = GUICtrlCreateButton($Button1_Text, 10, 200, 300, 30) ; left, top, width, height (location of button) ;Global $FolderChooseButton = GUICtrlCreateButton("Select folder", 10, 170, 250, 30) ;Global $FolderChooseButton = GUICtrlCreateButton("1. Select folder ...", 10, 170, 450, 30) GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY") $sDateParams = _GetDate($date, $hLabel1) GUISetIcon($BoxIcon, 14) ; this changes the GUI icon in upper left-hand corner + GUI taskbar icon to your chosen one GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit ; Case $FolderChooseButton ; $sPath = FileSelectFolder("Select folder", "" , 7 , @DesktopDir, $hGUI) ; GUICtrlSetData($FolderChooseButton, "1. Path selected: ''" & $sPath & "''") Case $DateChooseButton ;================================================================================ $ChosenDateFormat = $DateNameText_PREFIX & $sDateParams & $DateNameText_SUFFIX ;================================================================================ ; $sDateParams = _GetDate($date, $hLabel1) ; ClipPut($sDateParams) ClipPut($ChosenDateFormat) SoundPlay($CameraSound) Sleep(1500) ; If FileExists($sPath) = 1 Then ; FileChangeDir($sPath) ; DirCreate(@ScriptDir & "\" & $ChosenDateFormat) ; EndIf ;------------------------------------------------------------- EndSwitch WEnd Func _GetDate($cDate, $clabel) ;============================================================= Local $parametersDate = GUICtrlRead($cDate) ;============================================================= ;use StringRight() to get the three character weekday abbrev. from the selected date. Local $sWkDay = StringRight($parametersDate, 3) ;get the two character weekday abbreviation from the three-character weekday abbreviation. Local $ShortDayMyFormat = StringMid("Sn,Mn,Tu,Wd,Th,Fr,Sa", StringInStr("SunMonTueWedThuFriSat", $sWkDay), 2) ;replace the three character weekday, with the two character weekday. $parametersDate = StringReplace($parametersDate, $sWkDay, $ShortDayMyFormat) GUICtrlSetData($clabel, "Chosen date above, formatted as: " & $parametersDate) Return $parametersDate ;------------------------------------------------------------- EndFunc Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam) #forceref $hWnd, $iMsg, $iwParam Local $tNMHDR = DllStructCreate($tagNMHDR, $ilParam) Switch DllStructGetData($tNMHDR, "IDFrom") Case $date Switch DllStructGetData($tNMHDR, "Code") Case $DTN_DATETIMECHANGE ; Sent by a date and time picker (DTP) control whenever a change occurs $sDateParams = _GetDate($date, $hLabel1) Return 0 EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_NOTIFY Any help in this regard is greatly appreciated! I've been adding this in manually all these years, but time to try to find a solution thanks to this forum!
-
Sorry, have wasted so much time trying to find out how to get this to work, but no luck. I know to you all this is simple, but I'm just not getting anywhere. My script is this: ; ; AutoIt 3x ; #include<_My_DATE.au3> ; my customized date and time formats #include <_PartitionLetters.au3> ; this replaces drive letters #include<_WEReplacement.au3> ; references a Windows Explorer replacement program #NoTrayIcon ; AutoIt's icon doesn't show in systray TraySetIcon($IconsMine, 25) ; changes the icon displayed in the systray AutoItSetOption("WinTitleMatchMode", 2) ; this allows partial window titles to be valid! ;------------------------------------------------------------------------------------------------------------------------- ClipPut(" (" & $ShortDayMyFormat & "." & @MON & "." & @MDAY & "." & @YEAR & ")") Beep(3000,25) Sleep(3250) Exit ; finished Invoking it now, I get this from the clipboard: (Fr.08.22.2025) How do I get this, instead, please?: (Fr.Aug.22.2025) In other words, "Aug" instead of "08", or another example, in September, where script would give "Sep" instead of "09", etc. (I've tried UDF options following google Autoit message, but I'm just not resolving this.) Thank you so much!
-
We reach tipping point sometimes. I use the "Open a specific page or set of pages" in my browser to open a set of pages on browser startup. But it's a serious pain to edit, however, and to keep maintained. And I'm finally just fed up with it despite the feature's value. I'd like to pare down the use of this function to strictly necessary pages, and get the bulk of extra URLs off into an AU3 file and text file full of links, instead. I've searched and searched for a utility and then a script, and I found this script (original URL at the very top of it): ; Th.Aug.14.2025 - https://www.reddit.com/r/autoit/comments/1iz3odb/possible_to_open_multiple_links/ #include <MsgBoxConstants.au3> Example() Func Example() ; Define the path to the text file containing the links Local $sFilePath = @ScriptDir & "\URL_links.txt" ; Read the current script file into an array using the filepath. Local $aArray = FileReadToArray($sFilePath) Local $iLineCount = @extended If @error Then MsgBox($MB_SYSTEMMODAL, "", "There was an error reading the file. @error: " & @error) ; An error occurred reading the current script file. Else For $i = 0 To $iLineCount - 1 ; Loop through the array. UBound($aArray) can also be used. ;MsgBox($MB_SYSTEMMODAL, "", $aArray[$i]) ; Display the contents of the array. ShellExecute($aArray[$i]) ;Execute each line from the file Sleep(500) ; Adjust the delay as needed Next EndIf EndFunc ;==>Example And my text file, called "URL_links.txt" I laid out with these example URLs, as per the original message in the URL listed above: https://www.youtube.com/watch?v=GygBY01Qbnk https://www.youtube.com/watch?v=LrAtBtQnvCE&list=RDLrAtBtQnvCE https://www.youtube.com/watch?v=fe5Jk7YT_JE&list=RDfe5Jk7YT_JE https://www.youtube.com/watch?v=44tiZ7IP7zA But nothing happened and no error message appeared. Was wondering if someone know what was wrong. There may be other methods of doing this, but calling on a list within a text file seems the easiest to maintain. Thank you!
-
bogQ reacted to a post in a topic:
Open all files starting with "0" in subfolder?
-
pixelsearch reacted to a post in a topic:
Open all files starting with "0" in subfolder?
-
ioa747 reacted to a post in a topic:
Open all files starting with "0" in subfolder?
-
argumentum reacted to a post in a topic:
Open all files starting with "0" in subfolder?
-
Open all files starting with "0" in subfolder?
Diana (Cda) replied to Diana (Cda)'s topic in AutoIt General Help and Support
Thank you so much for everyone's kind help! Apologies in delay in replying, I don't know what I was doing wrong, but it was like beating my head against the wall somehow (my mom passed away 3 months ago, so suspect I was also just having trouble with details, who knows <sigh>). But I came back to this again. When I leave my apartment, I like to shut down all things running apps in the systray except what's there "automatically", as it were. Then when I come home, start up those extra things I like to have running when I'm around. Ultimately, pixelsearch kindly wrote up the code to include that TRUE statement which escaped me because of the presentation before as just describing what to do (and I see now I must still have been affected by mom's passing as I just couldn't make heads or tails of that). Here is the what worked just now, but I removed the suggested "_ArrayDisplay($array)" line as that created some havoc, too, and I find it's not really necessary, just an extra confusing step, it seems. #include <file.au3> #include <Array.au3> Local $array = _FileListToArray(@ScriptDir & "\Startup\", "0*.*", 1, TRUE) ;_ArrayDisplay($array) For $i = 1 To $array[0] ShellExecute($array[$i]) Next Thank you! -
Open all files starting with "0" in subfolder?
Diana (Cda) replied to Diana (Cda)'s topic in AutoIt General Help and Support
Oh, sorry, you were quoting a slightly different script that I didn't try. Please forgive my earlier message of just now into not taking that into account, as I was talking about the original response where the list happened, but then the script still tries to launch _something_ but where I still just get an error message box for each and every one of the shortcuts (files/apps) to be launched. Which is all the original script netted, too. The difference is this script doesn't try to do anything, it just gives a list of the shortcuts with their complete filepath. Then nothing. So not sure what this script is trying to accomplish. Something is still missing that I'm not getting, I guess. I just must not be explaining properly somehow, is my conclusion. My folder contains many files/apps as shortcuts to launch. When I click manually on them, no problem, they all get launched. But doing it manually is a pain. I was trying to automate this process. Is there a way to do this, esp. since I labelled those with a "0- " in front. Thank you!