Jump to content

How do I send a TrackName from a batch (.au3) file into Audacity?


Recommended Posts

This may take a bit of conversation on what I am doing but in short: I want to take information from a cell in Excel and send it to the present track in Audacity in order to name that track.

I have the Task Scheduler set up to start and stop recording sessions and those batch files are working quite well.  With each start, a new track is created.  I want to name the new track and that name is to come form an Excel file that shows the schedule.  Manually, I can name the track even when it is recording so I feel safe doing it automatically.

Some of the code I am using is:

WinAcivate("Audacity")
SendKeepActive("Audacity")
Send("!^+rr")". {and rs}

I have, somewhere around here, the key strokes to open the dialogue box but don't know how to send the track name other than actually typing it.  I guess if I use this method then I need to know how to close that dialogue box without disturbing the recording session.  I guess that I can send the name of the track just before starting a new one.

This may be a two phase question,

- At first, can someone here tell me how to send a name into Audacity to name the track. 
- Second, how might I look into Excel to pull information from a cell relative to the time indicated in another cell.

Should I start another discussion for that second question?

Suggestions appreciated.

 

Link to comment
Share on other sites

  • Moderators

Have you used the AutoIt Window Info tool (in the same directory where you installed AutoIt) on the dialog box? If you can obtain the window info, you should be able to ControlSend the data you scrape from Excel.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Have you used the AutoIt Window Info tool (in the same directory where you installed AutoIt) on the dialog box? If you can obtain the window info, you should be able to ControlSend the data you scrape from Excel.

Forgive me for not responding sooner. 

I guess I an not enabled to receive notification for post responses.

How do I check this?

Thanks for the encouragement that this might work.

I do not see the "AutoIt Windows Info Tool" in my system. 

Maybe I don't have a full set up.

Am I just not seeing it or is it missing?

Thoughts and suggestions for either point?

Link to comment
Share on other sites

  • Moderators

Emerogork,

 

I guess I an not enabled to receive notification for post responses.

How do I check this?

Go to your user name at top-right and open the dropdown. Select <My Settings> - when the new window opens choose <Notification Options> and look for the <Topics & Posts - Auto follow topics I reply to> section. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...