Using VBScript in tandem with Chrome to fill out forms and download files - html

I need to download a series of credit reports using chrome, has to be chrome because my company uses last pass and I don't actually know the password. I also need to use VBScript with windows default libraries. The script needs to click (and I counted) 2 links -> then a radial button -> then input into 2 text boxes -> select the 6th item in a dropdown list -> click a download button -> then copy a string from the page and rename the downloaded file based on that. This last part I think I could do with windows.xmlhttp get then parse it, but if there's a better way I'm looking for suggestions.
My knowledge of VBscript is ad hock at best, I've had to learn it on the fly on an as needed basis, frankly its a miracle some of the scripts i wrote work at all.
The only solutions I could think of was to use WScript.SendKeys "{tab}" and WScript.SendKeys "{enter}" a few dozen times, this works most of the time, but has no reaction capability and can't copy text from the page and rename it for me. The page also doesn't always have the same number of buttons or links so my tab count will be off at times. My other idea was to use http post and http get but I'm more or less completely in the dark about how those work

Related

Is it possible to discover that I used text expanders or I pasted text into a text box BEFORE sending my form?

I work writing messages on text boxes on a NON SECURE website interface of a company. I work from my pc and google chrome with no spy programs installed because i work from home on my own pc!
They do not want people to paste messages, but there are some words that I repeat a lot and I would like to use text expanders for those words or small expression.
My question is, is it possible that the company read and saves the keys that are digited on a text box BEFORE sending them the final message that I wrote?
Example, I could create a shortcut and use GDM to write Good Morning, is it possible that the company understand that I wrote GDM instead of good morning into the text box of that I pasted a word even if the final sent message will be Good Morning and not GDM? Will they be able to record my pressed keys like CTRL C and V or GDM instead of good morning?
Yes, It is possible to implement a javascript keylogger that logs every keystroke on that page. In your scenario the company would "benefint" from it, if they really want to detect pasting messages.
However this can be tricked by any application that calls the OS's native function that simulates the keystrokes and doesnt use keyboard shorcuts for the text expansion.

How to copy all text from website + pop up windows?

There's a web page with loads of contact info that I would like to copy to my clipboard and paste into an excel doc. The problem is that in order to display the info (phone, email, title, company, etc...) you have to click on the contact name and then a little blurb comes up (similar to a business card) that shows all info. Thus, I am unable to select all and copy and would have to do this one by one. There are thousands of contacts, so obviously this would be impractical. The hyperlink does not change when I click the blurb.
I'm wondering if there's a workaround to this - is there a program I can use that can extract the info from all of these small blurb-type pop ups that come from one page?
Any help is appreciated.
There is no systematic way to crawl web pages, as it depends on how it was developped.
But you can try this :
Click on one such pop-up.
With the "dev tools" of your browser, inspect it and find anything you can use to identify this pop-up (for instance it may have a certain class or name).
Then, look for this class (or name) in the source code : all the other pop-ups may be there.
If so, you can do some text parsing to get the info you want.
Finally, you can use something like "search and replace" in a text editor to display the result in an Excel-friendly way.

Getting a specific text from a website using Regex in Shortcuts

I’m trying to create a Shortcut on iOS that uses Regex, what I’m trying to accomplish is getting the price of a product from a website but no matter what Regex commands I use don’t work. It would be easier if my computer was up and running and I was able to use addons to view the site better but I’m stuck on iOS for the time being. Viewing the source code line 606 displays
'productPrice':'409.99',
But nothing I try pulls the the price even from different lines in the code.
I’m trying to get the price from https://www.microcenter.com/product/512484/intel-core-i7-9700k-coffee-lake-36-ghz-lga-1151-boxed-processor
I just can’t figure out how to retrieve the price being shown, I’ve tried so many combinations I had to turn to more experienced user help.
this works for me: 'productPrice':'(.*?)', - link
Make sure you are getting the part of the page source that contains this information.
The answer was so simple, if using shortcuts on iOS I was able to pull the price of the MicroCenter product by these commands.
URL - microcenter page to product
Get Contents of URL (leave as is)
Get Text from Input
Match Text - Pattern - \$......
Get item from list - Item at Index / 2 (2 is for items on sale or not)
The rest you can decide what to do with it, make a notification or whatever you decide how to display the price. This answer I found was a way to make sure it works. Now I’ll make a menu of multiple items from micro I have my eye on to pull all the prices in 1 click display. https://m.imgur.com/Iljvsx6

I need to build in offline HTML form for completion with a button the print the data in a table

I am looking to build an 'easy on the eye' offline form which will be saved locally on users machines.
The purpose of the form is to record information and minutes taken in a meeting.
The form will include a logo, a header, hopefully some a dividing strip (preferably blue) and fields to complete in a table
Date
Time
Location
Attendees
An expanding (Downwards) text box with gets bigger when you type enough to fill it.
A print button which gives you the option of saving as a PDF or actually print it.
I have trawled the internet and even tried to adapt source codes on forms I like the look of but I'm not confident that even when I have adapted the code that those forms still don't have have some kind of connection to the internet as the information recorded in the forms will be highly confidential.
Can you point me in the direction or give me some pointers?
I have seen tutorials but the forms look very basic.
Many Thanks

hyperlink field in table doesnt work

I have an Access table that has a hyperlink field, with the records being a website link, to look up the UPS Worldship shipment tracking#. My problem is that even though the text has blue colored font, the link doesn’t launch and open the web browser when I click on the field.
originally the hyperlink did work, when I created the table and changed the field properties from “text” to “hyperlink”, but once I ran a delete query and an append query (in order to refresh the data), the link no longer functioned, even though the field has hyperlink properties.
Here is an example of my hyperlink record that I want the browser to launch: http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_us&InquiryNumber1=1Z1467826772975386&track.x=0&track.y=0
Please advise what I need to do in order to make the hyperlink work, so the user doesn’t have to manually copy and paste the link into a web browser.
Thank you very much in advance
Nathaniel, Access 2003
I don't understand what you mean. I need to create an Access app that would be used throughout the day in order to track UPS packages. Ideally the table would provide a link, so that the user doesnt have to manually copy and paste the tracking number into the UPS website. Please advise if this is feasible without VBA.
I do not like hyperlink fields, they are difficult to edit and somewhat confusing for the user. I prefer to use a click event with FollowHyperlink. However, if you must use hyperlink fields, they have to have this format to work:
Descriptive text#link#
So
Stackoverflow#http://stackoverflow.com#
http://stackoverflow.com#http://stackoverflow.com#
Email#mailto:mail#example.com#
I imagine you have lost the link - that is, the bit between the hash signs.
Try going back to the table with the record and change the data type to short text. Close and reopen the table and switch the data type back to hyperlink. If the text is a valid webpage link it should work without any extra coding.
Good luck!