avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday February 27, 2021, 10:30 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - questorfla [ switch to compact view ]

Pages: prev1 2 3 4 [5] 6 7 8 9 10 ... 23next
Right click the desktop is easy enough to find.  As well as left clicking an icon for an application or file.  If you are already in a file like word, outlook etc, left click functions are documented.  But I cant locate anything for left clicking on an empty spot on Windows desktop?  Does a registry function exist for that option and if not could one be added?

I can draw a "box" (that disappears unless I drag it over to hit some icons) so there must be some way to capture that initial action of a left click on the empty desktop and use it to initiate an action just like right clicking the same spot.

AS for the other thing I emailed you:
if I could simply string together two SendTo options the first being "sendto"> compressed zip folder and then the output from that going to the emel.vbs script I sent you that would solve my other  wish.
Can you pull another rabbit out of your magic hat on that one?
As in ...  First select the files then right click>sendto> | email.vbs?

IanB  This did the trick for me!

"If you find a way to initiate WebPageDump or any other script to download a webpage, from the command line, then I'd be very interested to know how you did it please."

I am sure you already tried 'httrack' as that is my preferred "full-court-press" site backup. 
But I did not need a backup I needed a single file document and this did it!!

What I had was a php script used as the index.php file in a website that was dedicated only to making a specific type of layout of images linked to webpages.
Like a visual website menu.  But they wanted a document that could be emailed to people they wanted to have it and not have them going to the website that created the document to start with.

Anyway, the odds of you needing it for what I needed it for are less than zero.
Suffice it to say that 4WD came through (as usual though I think he has helpers at Stack overflow as I can Never find the codes he does).
Running the command line exactly as stated exchanging the webpage you want and place you wan t it stored makes a perfect mht file that includes the exact images along with their html presentation aspect plus the correct hypelinks.
In other words, it look and acts exactly as if the user were on that page

In all fairness, every element needed WAS on the page I created from so no elements from offsite are include as they are not needed.
But it would be worth experimenting to see if it might suit your needs as well

Thanks 4wd.
With luck, maybe I can drop in in a few months and bring a few shrimp for the barby eh?
(More like a porterhouse though!)

This VBS script from StackOverflow worked fine here from the command line.

NOTE: You do need IE to be installed.

Code: Text [Select]
  1. cscript SaveAsMHT.vbs K:\test.mht
Gave a .mht file that could be opened in IE with the DC home page.

Considering you're talking about a single page capture it might be easier than using wget.
Sigh~ :huh: line 1 char 23 expected end of statement
Duh missed the part about getting the original script I figured it was one of your best one-liners.
Forget anything bad I ever said about you 4wd (tho I never did!)  the darn thing worked!!

>>And Yes, it beats the heck out of Wget which I never could  get to return everything exactly like it showed on  the web.  Script is Perfect!

Wow.  Talk about switches!  How about I tell you that the link is  It is hosted on localhost only so it isn't an actual WEB site per se.
But I open it by typing into any browser. Can you narrow down the switches a bit with that info?   I feel "whipped" :)
This is just a single page like "the home page" that the site opens to.  All I need is that one page.  As a manual download with Ctrl+S it is an approx 2MB MHTML file.  If I could find that old Mouse Keys programmer I would just program the mouse strokes into a script to do it :(

I need a way to be able to download a webpage through use of a script.  I can get to the page with no problem in batch, vbs etc.   Use of Ctrl+S in Chrome for example allows me to download and save it to MHTML (Once the correct flags options were set) and the resulting MHTML file is perfect.  It opens locally and ll the contents work exactly as they would have if I were on that site.  Including all images, links, and other visual html design.

I need to be able to do the same as ctrl+S(ave) to MHTML in a script that can be run on demand to create this document as needed. 

Using Wget I end up with a variety of results depending on how I word the statement but none of them is even close to the same as the ctrl+S to get the MHTML version.  If there is a command-line version of SAVE AS for Chrome I have not yet found it.  It seems that something so simple in GUI surely must have some way to accomplish the same results in what should be one line in a script.

Thanks to all for the contributions to the problem.
I have the solution in hand just in time to enjoy the Memorial weekend. 
For anyone else who might ever try anything like this, there is one extremely important fact that was holding everything up.  If you happen to be a Die-Hard Google Chrome User as I am, it was something I had never thought about or needed till now.

But at some point in the past, Google Chrome has "Disabled" the capacity to download MHTML webpages even though you CAN choose that you want "SingleFile  Webpage Complete" format.  What you Get, though, is normal Html code which does NOT work for what I was trying to accomplish. 
This can be "fixed" (if one knows that it needs to be) in the flags area of Chrome.  Doing this made a much better solution to everything.  Html code will not support a "Single-file" option having image with embedded hyperlinks so I kept getting a half-solution no matter what was tried. MHTML is a perfect fit though.

I will trade you mine for one that works :).
Actually, this one makes a very nice photo album!
It just wont allow me to load the a^href value read from the matching text file for each PNG


I just got home and was about to try your first one with WORD.
The 2nd looks very much like the script that i came up with to create the HTML "photo album" which is what it was meant to do.  And I agree that it works fine.  HTML is actually a better format for what i need and going forward, it will work a charm.
But.  I have to make the FIRST one    one by one    for 76 sites.  OR  figure out why it won't script.

Right now working from a folder copy of all the invitation images plus text files loaded with the url for each invitation, i am still having the Dickens of a time getting the value of the invitation.TXT (which is storing the actual URL) to be read into the script variable to for loading the a^href section of the line.

The original code I am working with is PHP and being as how I know "Nothing" abut PHP maybe i picked a bad starting point.  But it did so well with the CSS display characteristics i hated to give it up.  It reads every png file perfectly and puts the image right where it should.  But the code loads the png's actual "local drive" location to the a^href value.  I will try to attach it here in a sec and maybe you ca see where I am "blind"

4WD, I have to apologize.

 I can see I am just not making my requests difficult enough :(
:)Next time I will see if I can ask fot the world AND the stars !! :up:Would you believe that I had people on Stack-Overflow asking me what I meant by a "Word Document"!
If you do have anything at all that can hold images and want to test, That is all I really need.  Unless :tellme: it is for a MAC!
I just wanted to give them a picture sheet as most of these people apparently can't read anyway but even if they could some of the titles are less than obvious.
Msufaosdeanofp would be an example of a folder-name.  I can see where a picture might help there.   :thmbsup:
ps: msufaosdeanofp could be shortened to msufaosdop also depends on my mood that day..

Last request (for the day!)  If you have ever seen CopyQ can you tell me why it doesn't work  I don't have anything but Windows 10 and maybe it isn't compatible  I have a lot of thngs that command would work nicely with

I will try. 
Each Project has an image created for it called invite.png. Each one is a specific picture that is like a miniature of the login page that section of the main site.  During creation of each new Project, there is a script that takes several components to create this and performs many other housekeeping functions. 
The Names for each project are kept as short as possible by using initials that com from the project name so it could be\joedoe\cdcsoi.  This is short and simple but if you were to see that name later and it was one of a 100 others you have no way to know for sure what it is.
The "invitation" is a 30% reduction image of the complete login page which makes it easy on humans to see what the initials stand for.
in this case: joe doe is looking for a chief dog catcher (for the) state of Illinois.
During the creation of the project, when i have the invite.png file at hand if i could add the invite.png as a PICTURE to a WORD doc listing all the Projects along with their URL's it would be a handy thing to have

I already make a list of the URL's but "1 picture speaks 1000 bytes"  I could embed the URL into the png and the person using the list could just click the invite.png image to get to that Project page

In order to do this and make it fully automatic, i have to be able to copy that image and add it to the Site List plus Use the Hyperlink took to embed the URL within the original creation script

I can go back afterward and do this on a one by one basis very easy.  Copy the invite.png, paste to word doc , it pastes just fine as an image cRight click the image click the hyperlink option and type in the correct URL.
Job done to perfection.

But it is a lot more complicated thanvthat and i have all the parts needed at hand when the site is created to be able to automate the creation of the picture list with embedded URL's if i had a command that would runs in the script.

Think of it like a catalog where you click the image to open to the page for the description of the item.  Pretty easy straightforward stuff and i was amazed to find out that while i can find a ton of ways to do it in LINUX Windows apparently does not have a "copy file as Image option.  And definitely not one that had scriptable command line interface for automation.

illinoise dogs catcher.jpg

SO I would have a nice page full of pictures that can easily descrive where they go thta can be clicked to reach each project.

I hope this helps but i don't think all this description will do much to help find a way to do it because there probably thousands of other reasons why someone might want to "copy a file as an image" instead of just copying a file-name or path to a document.   Think Signatures, photo albums, catalogs, etc.  And it is VERY easy to do by hand one at  time. 
But this is MY reason for wanting it and why i want to be able to script it rather than doing a one-up by hand

Well, it might have worked. :(
Apparently graphics Magic has some issues on Windows 10. 
CopyQ seemed like a good choice too but still no luck in the scipt.
Nircmd may be my only hope!

Perfect 4wd. Thanks I had looked high and low for something like tha
I have started using Image Magick quite a bit and only recently learned of it's 'sister fork' Graphics Magick
I am always amazed at what can be done with image files through command line which is essential in order to automate things.
I was looking into converting all the png to pdf and then compiling the pages but that is a waste as only one image per  page.

Don't suppose it can be tweaked to add the URL link embedded as can be done in WORD, Outlook etc?
Had to ask :).
You are alread familiar with the setup, it is that same bunch of mini websites and I was sked to add the invitation image to the list, Before someone asks me also add the URL I figured I would so it so whe they ask I can just :)
Smile..  Hehe

PS:  I thought 750 pixel by 350 pixel was pretty good description.  If I paste it here I am not sure the size would be representative of the true measure.
I only wanted to impress that that I can put more than one on a page by using copy/paste.  If I knew how to access the contents of clipboard directly, I could have loaded the image in the batch then pasted it from the batch but clipboard access in Windows 10 is not so easy now.  Win-send-keys is deprecated to the point of no .dll file now. But I was looking at "Xclip'"

I am trying to find the best way to perform a 'copy/paste' action on certain images in a group of folders so they end up displayed stacked over the next in a Word document or pdf file.  The script is used to gather various pieces of information from a group of folders and one item that needs to be added is an image file in each folder set named invite.png (or jpg).   This image is about 5"W x 2.5"H  (750x350p approx) and I can get close to 4 on a page doing copy/paste manually. 

But every variation I have tried in the looping script ends up with a list of 'file path names" in a list instead of a stack of images where the image file is copied as a picture not a file-path. 
I have tried various functions from Image Magick and Graphics Magick but nothing has worked so far.  Any advice appreciated.

Ha!   :)  Well I finally answered my own question.  I have exactly what i wanted for many things and so much more.  When everything came together it just seemed to all fall in place at once.  I may need to post a couple of these on the board for others but not sure how to post an answer without a question  :-\

The first part is a program called ECMenu.  I found it on one of those Windows boards.  But the Documentation as well as some of the commands take a bit of thought to get them right.  The 2nd part is command from sysinternals called regjumper.

And almost at the same time I ran across Clipout which can be used for registry jumping but has better use for putting the contents of Clipboard almost anywhere.

By using ECMenu to provide access to Regjumper i got exactly what I asked for.  highlight the written key, right-click choose jumper and regedit opens to the key.

I should add here that I also found the same functions in the best Secondary Command System in the world:  :Thmbsup: Nircmd.   :D
It also has many of the same capabilities and i will probably add it to Ecmenu as well as this is a fully configurable Right-click menu system

Thanks for everyone who gave the problem any thought and more thanks to those any who offered solutions.
If you are ever interested in trying to do any of these things (that no one but me ever wants it seems), I can tell you that these listed so far have been GREAT!  Google them by name.  They are all separate links

I gotta learn to be careful what I wish for

Skips all the fun part of figuring it out and gets right to the 'Meat' of what did I want to do with it when i found it.

Apparently it has been around and lately been further improved.  I still don't get to find out how to manually do any of the nifty "copy as text and send to Google search via registry edit " but...

I can still get it there even if I don't know how it happened.  I have never heard of it but I must have been in a vacuum as it has been around since at least 2012.  Heck, I wanted to 'do it myself' but...Oh Well :-\


Thanks Curt. 
I do not use Firefox but your information led me to a similar setup for Chrome using an 'extension'
For some reason it only worked for a day or so then stopped.  I have not yet discovered why.

Everyone who has said this couldn't be done across various programs has said that the issue would be that text is not the same from one application to the next.  Yet I can highlight almost any text on any page in a browser or windows explorer and if it is made up of legible letters, I can highlight to select, right click to copy, then paste to another application as text.

This would seem to indicate some kind of capacity to distinguish 'text' when displayed as words.  If that is the case, then there should be a way to write an application that would be able to also perform a function based on the text highlighted having certain phrases at the front such as HKCU or other norms for a registry key regardless of whether I highlight it in Firefox, or Edge, or Chrome etc.

While I am sure there will be places it cannot be done it seems that any page that is showing directions to a registry location where the info displayed can be copied into regedit to open to that key; why can't I select it and use a right click option to do the same thing?

THIS  is the best I can find for Chrome and it is extremely convoluted to use.

Yeah, I think I read everything in StackOverflow and all their sister sites as well.  Plus several including MS Tech Net and all of them are vague to nonexistent about doing what this script does in a way to keep it all on full auto. 

If it requires any interaction then it can't be used as a drag and drop receptacle as I do it now.  Currently, if there is more than one file with same name it follows the normal windows doctrine of using (2) etc for duplicate files but does not stop to ask me anything.  Both copies get attached if they come from different paths.

Generally speaking, there would normally not be duplicates though.
Surprise!  Thanks for a wake up Miles!  I had given up on Stack but this was one I had not read yet and does have some interesting options using Java.

The thing is, if you check the script it does not actually copy or move anything at all.  It attaches the files directly tot he email based on the path to the file to be attached.  There is no point in time that I could perform the compression on all the files without adding a complete section to do that.

I was hoping I could intercept the calls for the files to be attached and run each of them through a compression before the get attached.  I actually would prefer each to be a separate file if possible so a procedure such as this would do that.

As an aside.  While this is more of a 'stunt' than anything else,  I did figure out that I could get by if I simply add the extension of .txt to each file-name.  Then program.exe would become program.exe.txt before being attached and this works perfectly. Outlook sends them with no complaints then.

The only VPN I use is the one we host for ourselves.  It is a "Free Product" from SoftEther and has proven extremely reliable for our needs.  I have seen a service called 'Total VPN' that got some of the highest marks for a Free VPN but I have never used it so cannot say more.  That and another called 'Incognito' is all I have seen lately but there are surely others out there.

There may not be a way to do this.  I have seen a few comments about VBS and zip not being compatible. 
The current working VBS script is used to automate adding multiple attachments to an Outlook pre-addressed email and sending it out all at once.  As written, the files can be selected from anywhere on the system by using Ctrl+click to select them and copy/paste or drag-drop to get them to the script which then does the rest.  They all get attached regardless of where they are located once selected. I have never tried to add more than about 10 but I think the only limit is the file-size allowed by Outlook for an attachment.

Most file types can only be attached to an email by first adding them to a zip or other 'protective' shell and adding all the collected files to a single zip when they come from multiple locations is the problem.  There seems to be no way to do this within the bounds of the VBS script and also no way to do it externally and then bring the results back into the script for completion.

If anyone can supply the missing "zip from anywhere" lines to the script it would be appreciated. :)

Somewhere after this line is where I presume it needs to be added.   
..       Set objArgs = WScript.Arguments 'gets paths of selected files   ..
Once the selected paths are set, those files need to be either zipped separately or added to a single larger zip before they are added to the email as attachments so Outlook will process it without choking up.  This works as-is as long as all files are .txt or other allowed file types.

Code: Visual Basic [Select]
  1. Option Explicit
  2. Dim objArgs, OutApp, oNameSpace, oInbox, oEmailItem, olMailItem
  3. Dim a, oAttachments, subjectStr, olFormatHTML
  4. olMailItem = 0
  5. olFormatHTML = 2
  6. Set objArgs = WScript.Arguments 'gets paths of selected files
  7. Set OutApp = CreateObject("Outlook.Application") 'opens Outlook
  8. Set oEmailItem = OutApp.CreateItem(olMailItem) 'opens new email
  9. oEmailItem.To = " "
  10. = " "
  11. For a = 0 to objArgs.Count - 1
  12. Set oAttachments = oEmailItem.Attachments.Add(objArgs(a))
  13. subjectStr = subjectStr & Right(objArgs(a),Len(objArgs(a))-(InStrRev(objArgs(a),"\"))) & ", " 'recreates the default Subject e.g. Emailing: file1.doc, file2.xls
  14. Next
  15. If subjectStr = "" then subjectStr = "No Subject "
  16. oEmailItem.Subject = "" & Left(subjectStr, (Len(subjectStr)-2))
  17. oEmailItem.BodyFormat = olFormatHTML
  18. oEmailItem.Display
  19. oEmailItem.Send

If there is another method of accomplishing the same goals in another language that would be OK as well. :thmbsup:

Note:  Giving credit where credit is due:  This code is originally from the 'Slipstick Outlook Forum' and named 'Joseph's Script Method'
It works extremely well for what it was originally written to do.

ok count this one DONE!  Put a Fork in it.  (hmm I never considered the possibilites of that phrase when used in writing computer code) :huh:

Thanks to 4wd I have a nifty one liner ps1 scipt and another friend provided the equivalent VBS option so that makes two solutions for one problem.
 Not so bad  :-\

Thanks for the input from all.

4WD: ;D

That is what they call "Old Timers Disease" :)  Us Old Timers get to "FORget" , it is one of the benefits of age.

It also allows us to make new friends from old friends every day and even old enemies are forgotten and get a new chance.

Some become new enemies. (but only unil they are forgotten again) 
Some, though, become New friends.

Life gets to be fun again as you get to learn everything "for the first time" every every new is the First Day of the Rest of the Rest of your Life.

I have always felt that this was a good outlook to have on aging as there isn't much you can do about it and it beats the only alternative~!

4 WD, I sent you a few emails with attached zips withthe setup as needed to run elevated PS1 from normal batch  file. 

That was about my only contribution.  Your Original script worked and was plain to see this once i slowed it down a little  :(  I am not so "fleet of mind"
This is exactly the thing that the people on that "other forum" spent so much time telling me could not be done at all.
Thanks for the help.  If you look at what i sent, i only need the added means to input a choice of types to be used for the command and Powershell is not something i know much at all.

With that added, i ahve the perfect "portable" utility that could be used on any system for the same reasons. :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup:

For the current active connection, in an elevated PowerShell console:

Code: PowerShell [Select]
  1. $net = get-netconnectionprofile;Set-NetConnectionProfile -Name $net.Name -NetworkCategory Private

THanks again 4wd  HOW do You DO it>?  I looked evrywhere.  Posted allover Microsoft as well as every possible forum i could find.  The WORST was Spiceworks where I got nothing but a Hundred and One reasons why it was "Impossible" to do.  Or suggestons on why I needed to do it a way they KNEW how to do (none of which would work in my case anyway and I got tired of explaining that).  I figured I would have to wait for the 12 hour time difference for you to come up with the answer :)
Not Yet TESTED but I am sure it works!  Dont suppose you have the addon to make it run elevatd in the same script.  I need to put this on every system with all the other "For Emergency Click HERE" scripts.  They won't know how to open an elevated PS prompt.

<Side note:  I STILL would love a way to step through a section of registry making multiple changes where needed based on the main key and not the specific reference in it.  All of those profiles could be changed to private whether active or not and in this cae it would not have hurt anything.  If i could have determned the single active one, I would have deleted the rest on a company system and never thought twice about it.

...As would that 'D' word thing you're tired of us mentioning.
Delete user account?  :huh:
Yeah  well.  I figured is was a side-swipe at the copany using a Non-Domain network but.. I kinda like "Delete the User myslef! ;).
OR maybe it is a "hint" 
or  <Donations , Dummy!>    Oops  Double 'D'

Pages: prev1 2 3 4 [5] 6 7 8 9 10 ... 23next