Bot that can call a automated number, inputs dial tones ,listens to answer, adds to list and repeats - input

so I need help making a bot that can call a automated number and pick from a list that has data in lines to be played in dial tones and when done listen for a certain word to be said if so puts the number from the list to a new txt folder and moves to the next line and calls the same number repeats and what not but if after it calls and the word its listing to does not hear it it hangs up can go to the next line and repeats
Code a bot>call #>input from list>into tone>listen to voice >if word is said>put in a list>and repeat> and if word is not said toss>and repeat
i dont know were to start

Related

Outlook/VBA - find UID in Subject and run search for UID in Mail items

I've been in and out of so many Microsoft docs and forums SEARCHING for the answer, I figured I'd just ask.
Long story short - I want to write a macro that, with an email highlighted in the main/mail pane in Outlook ...
Searches the subject line of the email for the case number/UID (always a four digit year, hyphen, and a six digit number, e.g., 2019-012345); and then
runs a basic search (not Advanced Find) in my inbox and all subfolders for any email with that UID in the subject line or body.
I'd offer a jumping off point but Outlook doesn't have a record macro function.
Functionally speaking ... my Outlook search option is set to include results from all folders. I hit Ctrl-E and type in the UID and hit enter to search. Would love to reduce that to one key stroke
Does the code have to get into DASL and MAPI? The extent of my VBA knowledge goes to user forms and template letters so ... I'm in way over my head.

Pick a random name from a text file in VB

I have a file that has names of competitors. I want to write a VB code that selects a random name from the file.What I need is show the names moving quickly once I press enter it will select the name. I hope you got the idea.
If i understand your problem correctly you want to show every names on the file to the user on a button which name is chances rapidly.
If you want to do this little trick you need to load all the names from the file at the begging and keep them in a array so you will not need to reconnect to the file, that contains your names, every time you change the name of the button
Once you get the names you will need to create an infinite loop and attach a timer so the loop will wait for a specific time to change the name of the button.
last thing that you need to do is write a set of code under the button. That breaks the loop and gives the name of the button which was the assigned name at the time of the clicking.
I hope that helps you!
Have a good day

change length of multiple mp3 files

I have several hundred short mp3 files (1-5 seconds) I would like to trim them. namely, the length should be rounded up getting a whole second. for example if a mp3 file is 1.32s long, it should be afterwards 2.00 in length, the lack of time should be filled with silence. is it possible to automate this process? if so with what tool? thanks
Try Audacity, it allows batch processing: http://manual.audacityteam.org/index.php?title=Batch_Processing
I'm not sure whether it will do everything that you need it to do but it's worth checking out what all your options are within this program.
[EDIT]
Ok, so if you do have hundred and also might be something useful for you in the future this is what I would recommend or would personally do myself.
Get mp3DirectCut [freeware]
Get AutoHotKeys [freeware]
Learn how to use both, particularly AutoHotkeys
Save All filenames into a spreadsheet
Create a script that does the following with mp3DirectCut
Load file by name on spreadsheet
Hit the "End" button
Paste a pre-copied silent 1 sec long clip from clipboard
Parse the NAV field in the program (bottom left) to get the Total length
Calculate and enter desired endpoint to total length for Selection (then hit Enter)
Hit the "Del" button
Save complete song
Repeat

Script to modify outlook (2003) contacts

I'm trying to clean up my outlook 2003 contacts, which has become a rather ugly mess of various formatting, etc.
Basically, I have a bunch of contacts, in the form of either:
0xxxxxxxxx [ten digits, starting with 0] 0xxxxxxxx [nine digits, starting with 0] 0xxxxxxxx (xxxxx) [the same nine digits above with the last five repeated in parentheses] +xxxxxxx [some random "complete" number with an international dialing code, etc]
I want all of the numbers to match the last format. The algorithm is simple enough: for the first two types, drop the 0 and add +YYY where YYY is my country code. Ditto for the third, but drop everything in parentheses.
My problem is that I don't know how to go about doing this. I've written a million scripts in my life in Perl, but I'd rather not export everything to text, process it, and re-import; I'd like to have a one-click solution that can easily be re-run (such as when I import a new contact from my companies' directory which comes in one of the forms above). I suspect that VBScript is the way to go; I've seen a few references online to accessing contacts as objects, but I'm not really sure what the best way to get started is.
Any recommended resources?
This is a duplicate of https://superuser.com/questions/15913/script-to-modify-outlook-2003-contacts ; I'm not sure which site is a better location
I would say VBA, rather than VBScript.
Sub GetContactsTel()
Set oFolder = GetNamespace("MAPI").GetDefaultFolder(olFolderContacts)
' Loop through all of the items in the folder.
For i = 1 To oFolder.Items.Count
Debug.Print oFolder.Items(i).BusinessTelephoneNumber
Next
End Sub

Print to POS Display Unit

I have an Epson Display Unit (for the Point of Sale), and have it set up as a printer. I can only get it to print what I want when I go to Printer Properties > Fonts (there is a test input box).
However printing from an app such as notepad yields no results. I'm trying to get it to work with the p.o.s. app I made in Excel. I found a COMM port communication script here, but I can't get past the OPEN command. Seems there's a "file in use". I'd like to know if anyone else has had experience with this sort of thing.
Under the assumption that your printer is connected to serial interface 1, provided that the serial interface parameters are correctly set, and you want to send a string of characters to that interface, you may try this ...
Sub WriteToCOM()
Open "COM1:" For Output As #1
Write #1, "ddd"
Close #1
End Sub
Paste this code into an Excel VBA script and cycle thru it with F8 - it worked for me
You may replace "COM1:" by any existing "COMx:" or "LPTx:" as well (don't forget the semicolon!)
I am using this to control an Amateur Radio (setting the frequency) from an Excel table containing broadcast station names and their frequencies. I am of course sending special characters to my gear using the chr() function.
The Macro is tied to a control button. My Excel is Office 2003 (it worked already in Office97)
Good luck
MikeD