
Chetwood
Active Members-
Posts
49 -
Joined
-
Last visited
Chetwood's Achievements

Seeker (1/7)
0
Reputation
-
Thanks but it was a Windows problem. After reinstalling it (had to be done for different reasons) apparently also all icons spread over various user folders where reset and now it looks as it should.
-
I've created an icon file in Sib Icon Studio (with 6 images from 16 to 256 pixels) and used it when converting my script to exe with aut2.exe. When I link to the icon file from the desktop it's black as it should be but when I link to the compiled exe, it's blue like in this 2x screenshot: First I thought this was due to the icon consisting of images with different color depths like 16 and 32 bit but even after setting all to 16 bit it still looks like this after compiling with aut2exe. What am I missing? m3kv.ico
-
I'm thinking about adapting my MultiShrink script to MakeMKV but I seem to be unable to identify anything from a window beyond it's title, no visible text, nothing. Any suggestions?
-
When using my pen drive on someone else's computer I start a script that mounts an encrypted file on it to a new drive letter. Adding a sleep routine for 5 seconds or so till I have entered the password and the drive is done mounting seems a bit clumsy. So how can my script determine that Truecrypt has successfully mounted the file to a drive letter so it can start Total Commander from it?
-
Exit script when no command line parameter is given
Chetwood replied to Chetwood's topic in AutoIt General Help and Support
D'uh. Thanks. -
Apparently I can't see the forest for the trees so maybe someone of you can help me out. I have a little script that among other things opens the cd tray when a drive letter is given as a command-line parameter. "myscript.au3 e" would open drive e. But how do I make the script exit immediately when it is started without any parameter? If $CmdLine[0] Then Exit Else do fancy stuff EndIf Exit does still execute "do fancy stuff" instad of stopping immediately. TIA.
-
Am I missing something again? I want to browse to a folder which has 20 or so subdirs and select 4 or 5 of those. How do I do it? TIA!
-
Problems writing array to text file
Chetwood replied to Chetwood's topic in AutoIt General Help and Support
Thanks, it does what I want. But as you've guessed, I'm not getting the code. Global $f[10] seems to define another array but why one with 10 elements? I want to write as many files as there a discs so why not Global $f[$num_discs]? I also need to check whether each index item ends with a \ and if so the backslash has to be deleted. -
Problems writing array to text file
Chetwood replied to Chetwood's topic in AutoIt General Help and Support
Well, now that I started the AutoIt3Help.exe instead of AutoIt3.chm a search for FileWriteFromArray() turned up results. However, I'm still not sure whether this function does what I want. In my example I have 3 folders written to an array (index 0 to 2) and I want each entry to be written to a seperate text file and add my own text to it, file1.txt looks like this d:\folder1\video_ts.ifo d:\folder1 comes from array index1 \video_ts.ifo is added by me -
Problems writing array to text file
Chetwood replied to Chetwood's topic in AutoIt General Help and Support
Thanks, are this functions mentioned somewhere in the help file? I've used "_FileWriteFromArray("array.txt",$discs)" for my example above, in that case the file is written but the first line is emtpy and folder1 starts in line 2. Also, I'm not too sure about the syntax when adding additional info to each line like folder 1 has disc1 folder 2 ; some comment folder 3\file.lst -
Silly me, I thought a one-dimensional array would be piece of cake but apparently I just don't get it! I want to write the folders one has selected from input boxes into a text file, so here is my array: $num_discs = InputBox("", "How many folders?", "", "") Global $discs[$num_discs] For $i = 0 to $num_discs - 1 $discs[$i] = FileSelectFolder("Select folder", "", 4, "") Next _ArrayDisplay displays the array as expected but I cannot write it to "folders.txt" which would look like this: folder1 folder2 folder3 TIA!
-
Can't close external program started by script
Chetwood replied to Chetwood's topic in AutoIt General Help and Support
$pid=Run("d:\progs\avimuxgui\avimux_gui.exe mux.txt", "", "" ) ProcessClose($pid) works just fine. Thx. -
Since the Avi-muxGUI scripting routines are at an rudimentary level I'm trying to combine them with my own AutoIt script to batch mux a load of avis. Whether I call it up with any of those two commands (mux.txt being the file with the parameters needed for muxing): Run("d:\progs\avimuxgui\avimux_gui.exe mux.txt", "", "" ) or Run(@ComSpec & " /c " & 'd:\progs\avimuxgui\avimux_gui.exe mux.txt', "", "") I am unable to close the Avi-muxGUI window after the muxing has finished. Even when I set a Sleep time of 20 secs and WinExist does find the window it just won't close. What am I missing?
-
How to delete several ListViewItems?
Chetwood replied to Chetwood's topic in AutoIt GUI Help and Support
Thanks for the pointer, I already did so but when I did not get any results from using _GUICtrlListViewDeleteColumn($listview,1) which should have deleted the second column I got a bit discouraged. I still don't get what that column's id is since it must have been assigned automatically by the FileFindNextFile command in conjunction with GUICtrlCreateListViewItem ($movies,$listview) as shown in my code example above. Curiously enough _GUICtrlListViewDeleteColumn($listview,0) does delete the first column, so '1' should be the id of the second unwanted one. Now I've used _GUICtrlListViewSetColumnWidth() to set the first column to fill up the entire listview window which also takes care of the selection width so that I don't need to resort to $LVS_EX_FULLROWSELECT. If anyone knows how to get the id of that columns please let me know, thanks again. -
How to delete several ListViewItems?
Chetwood replied to Chetwood's topic in AutoIt GUI Help and Support
Also, how come that the listviewitems are set to 30 chars? m:\my main movie folder\movie_a is shortened to m:\my main movie folder\mo... I guess it is because there seem to be two columns in the listview even if I do only use the first (and have no idea how I created the second) and I cannot change their width manually because I use '$LVS_NOCOLUMNHEADER' to turn off the column "header". You can see that the blue bar marking the items in my screenshot does not cover the whole width and padding blanks to the column heading definition to control initial column size as suggested in the help file does not work. Any ideas how to get rid of the second column?