Solved

asking permission

Posted on 2008-10-04
9
509 Views
Last Modified: 2012-05-05
when i am running the followinf vbs file it pop up message as attached.

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
objIE.document.parentwindow.clipboardData.SetData "text", "" 
objIE.Quit

I WANT THE CODE SHOULD RUN WITHOUT ANY POP/PERMISSION. WHAT CHANGES REQUIRED TO DO SO.
popup.jpeg
0
Comment
Question by:ankur3020
  • 4
  • 3
  • 2
9 Comments
 
LVL 5

Expert Comment

by:si_shamil
ID: 22643584
Probably, it is prohibited by IE's security option.
0
 

Author Comment

by:ankur3020
ID: 22643704
pls give vbs code to omit this
0
 
LVL 5

Expert Comment

by:si_shamil
ID: 22643781
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:ankur3020
ID: 22643864
if i want to use notepad instead of word ,make changes required in following code.

' Set what you want to put in the clipboard '
strMessage = "Imagine that, it works!"

' Declare an object for the word application '
Set objWord = CreateObject("Word.Application")

' Using the object '
With objWord
   .Visible = False             ' Don't show word '
   .Documents.Add               ' Create a document '
   .Selection.TypeText strMessage   ' Put text into it '
   .Selection.WholeStory        ' Select everything in the doc '
   .Selection.Copy              ' Copy contents to clipboard '
   .Quit False                  ' Close Word, don't save '
End With

0
 
LVL 5

Expert Comment

by:si_shamil
ID: 22643884
It is not possible to do it from notepad, because there is not application object for notepad.

I suggest you use a freeware utility called NIRCMD:
http://www.nirsoft.net/utils/nircmd.html

the you can use it to set the cliboard:
 
nircmd.exe clipboard set "Hello World!"
0
 
LVL 13

Assisted Solution

by:Michael_D
Michael_D earned 50 total points
ID: 22645282
Ankur  This question you asked and been answered in another 3 posts.

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23788105.html
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23788097.html
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23775469.html

Also you opened 30 questions - (most of them answered but not closed). Almost all are somehow related to each other.  it seems like you break your problem into small chunks and trying to solve them one by one. while it good idea when working on complex problem you must know the "big picture". We are trying to help you but you are not cooperating when asked to explain WHY you need this to be done THAT way.

Why not to explain the big picture and get your problem solved?  


0
 

Author Comment

by:ankur3020
ID: 22646839
dear , i know in one of your experts answer he told me to close above permission. but when i asked him about the code to close that instead of manual way, i did not get response for long time. so i thought let me ask a fresh question.

anyway, i followed his idea and able to do it but again the question is still there. i want to enable "allow programmatic clipboard access" in scripting of internet security with vbs code.

pls help me to provide it.. can i do the same with registry dwrod key. ?
0
 
LVL 13

Expert Comment

by:Michael_D
ID: 22647253
all three questions in the list I posted provide the answer to your question using registry settings or other way
but you ignored them and ask the same question 4th time ....
0
 

Accepted Solution

by:
ankur3020 earned 0 total points
ID: 22668292
thanks i got the anwser from the links u mentioned
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create Consolidation Sheet 3 38
get the ALL CAPITAL words from a cell 4 19
I'm trying to understand this simple vb code! 2 20
Having trouble with a VB Script 17 16
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question