Search found 95 matches

by MusoCity
14 Sep 2023, 18:20
Forum: Ask for Help (v1)
Topic: Get All Selected Files in ListBox
Replies: 3
Views: 306

Re: Get All Selected Files in ListBox

Thanks again !
by MusoCity
14 Sep 2023, 03:28
Forum: Ask for Help (v1)
Topic: Get All Selected Files in ListBox
Replies: 3
Views: 306

Get All Selected Files in ListBox

I want to loop through all the multiple selected file names in the ListBox

Code: Select all

loop C:\Temp\Scripts\*.* {
	ListScripts .= "|" . a_LoopFilename
}
ListScripts := substr(ListScripts,2)

Gui, Add, ListBox, x10 y100 w600 h190 Multi vMyListBoxVariable, %ListScripts%
by MusoCity
06 Sep 2023, 07:38
Forum: Ask for Help (v1)
Topic: Matching String in Text File Lines
Replies: 1
Views: 240

Matching String in Text File Lines

I have a text file that has lines of paths C:\Docs\nine\nine^01"some text to end of line" C:\Docs\nine\nine^02"some text to end of line" C:\Docs\seven\seven^1"some text to end of line" C:\Docs\seven\seven^2"some text to end of line" so if I have a needle "seven^" and it has 1 or two digits after it,...
by MusoCity
31 Aug 2023, 17:30
Forum: Ask for Help (v1)
Topic: Multi Line String to ListBox
Replies: 2
Views: 323

Re: Multi Line String to ListBox

Great thanks !
by MusoCity
31 Aug 2023, 09:24
Forum: Ask for Help (v1)
Topic: Multi Line String to ListBox
Replies: 2
Views: 323

Multi Line String to ListBox

I have a multi line sting I want to add the lines to rows but it all going on the one row at the moment

GuiControl,,MyListBoxVariable,|%string3%
by MusoCity
29 Aug 2023, 07:49
Forum: Ask for Help (v1)
Topic: CSV Quick Filter (CSVQF) Find Exact Value
Replies: 0
Views: 231

CSV Quick Filter (CSVQF) Find Exact Value

https://www.autohotkey.com/boards/viewtopic.php?f=6&t=34867&p=536457#p161011

If I use 3|34 in the filter to find all entries with 34 in column 3
I get 134, 234,34,347....
how do I just get the entries with 34 only ?

https://www.autohotkey.com/boards/viewtopic.php?f=6&t=34867&p=536457#p536457
by MusoCity
29 Aug 2023, 07:41
Forum: Scripts and Functions (v1)
Topic: CSV Quick Filter (CSVQF) - filter results in listview as you type
Replies: 16
Views: 5885

Re: CSV Quick Filter (CSVQF) - filter results in listview as you type

If I use 3|34 in the filter to find all entries with 34 in column 3
I get 134, 234,34,347....
how do I just get the entries with 34 only ?
by MusoCity
27 Aug 2023, 06:52
Forum: Ask for Help (v1)
Topic: Vista+ Audio Control Functions Sound Activation
Replies: 2
Views: 223

Vista+ Audio Control Functions Sound Activation

https://www.autohotkey.com/board/topic/21984-vista-audio-control-functions/ I just want to know if there is audio playing, if not it can play the next file. The script below loops and gives a ToolTip with a level meter. I just want to be able to call on a function to get the current level to see if ...
by MusoCity
29 Apr 2022, 23:09
Forum: Ask for Help (v1)
Topic: Select from Right Click Context Menu
Replies: 7
Views: 627

Re: Select from Right Click Context Menu

None the less the menu ID's are showing so there must be some way to send the command with
PostMessage, 0x111 as it's a #32768 menu.
by MusoCity
29 Apr 2022, 17:37
Forum: Ask for Help (v1)
Topic: Select from Right Click Context Menu
Replies: 7
Views: 627

Re: Select from Right Click Context Menu

This works to open the Save As dialog in Notepad

Code: Select all

#NoEnv
#SingleInstance 

WinActivate, ahk_class Notepad
Send, !f
PostMessage, 0x111, 3,,, A ;WM_COMMAND ;Save As...
by MusoCity
29 Apr 2022, 17:32
Forum: Ask for Help (v1)
Topic: Select from Right Click Context Menu
Replies: 7
Views: 627

Re: Select from Right Click Context Menu

It works if I use the above code with Notepad.
I can't get the actual TButton id with SimpleSpy it gets the TMixerPanel27 frame.
by MusoCity
29 Apr 2022, 16:46
Forum: Ask for Help (v1)
Topic: Select from Right Click Context Menu
Replies: 7
Views: 627

Re: Select from Right Click Context Menu

So if I chose 1429 instead of 1430 that means if would be muting the track but it's not, the click is bringing the menu up but that's it.
by MusoCity
29 Apr 2022, 03:32
Forum: Ask for Help (v1)
Topic: Select from Right Click Context Menu
Replies: 7
Views: 627

Select from Right Click Context Menu

I was using down, right, enter to navigate but the menu changes so I need to right click and select an item. Using this this to display the id https://www.autohotkey.com/boards/viewtopic.php?f=6&t=31971 This is what I'm using but I must have something wrong ? #NoEnv #SingleInstance WinActivate, ahk_...
by MusoCity
27 Feb 2022, 16:58
Forum: Ask for Help (v1)
Topic: Remove Character From End Of Lines
Replies: 7
Views: 818

Re: Remove Character From End Of Lines

So I can't have

Code: Select all

For key, val in StrSplit(String,"`n")
	res .= RTrim(val,"|") "`n"
MsgBox % res
I have to have ?

Code: Select all

For key, val in StrSplit(str,"`n")
	res .= RTrim(val,"|") "`n"
MsgBox % res
by MusoCity
27 Feb 2022, 08:08
Forum: Ask for Help (v1)
Topic: Remove Character From End Of Lines
Replies: 7
Views: 818

Re: Remove Character From End Of Lines

sofista wrote:
27 Feb 2022, 07:31
Try this RegEx approach, it works on example data:
Thanks, that worked. The last one worked with the text string in the script but not when copied to the text file.
by MusoCity
27 Feb 2022, 07:18
Forum: Ask for Help (v1)
Topic: Remove Character From End Of Lines
Replies: 7
Views: 818

Re: Remove Character From End Of Lines

It works with you example buts it's not working when I read the text file String

FileRead, String, %Filename%
by MusoCity
27 Feb 2022, 04:26
Forum: Ask for Help (v1)
Topic: Remove Character From End Of Lines
Replies: 7
Views: 818

Remove Character From End Of Lines

I need to remove all | that are at the end of a line however many lines there are from a string:

[SSSSSS]
|test1|test2|test1|test2|test1|test2|
|test7|test7|test9||test7|test7|test9|
[EEEEE}

result
[SSSSSS]
|test1|test2|test1|test2|test1|test2
|test7|test7|test9||test7|test7|test9
[EEEEE}
by MusoCity
05 Feb 2022, 06:20
Forum: Ask for Help (v1)
Topic: RunWait Send Command Line
Replies: 2
Views: 320

Re: RunWait Send Command Line

This will probably work: RunWait %ComSpec% /c ""C:\Temp\Midicsv.exe" "Bass3.mid" "Bass3.csv"" If not you may need to put the full paths to your .mid and .csv files. That is what I tried originally, but as you say it needs the full path, thanks ! RunWait %ComSpec% /c ""%Path%Midicsv.exe" "%Path%Bass...

Go to advanced search