Solved

asking permission

Posted on 2008-10-04
9
501 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
Comment Utility
Probably, it is prohibited by IE's security option.
0
 

Author Comment

by:ankur3020
Comment Utility
pls give vbs code to omit this
0
 
LVL 5

Expert Comment

by:si_shamil
Comment Utility
0
 

Author Comment

by:ankur3020
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 5

Expert Comment

by:si_shamil
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks i got the anwser from the links u mentioned
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now