Solved

asking permission

Posted on 2008-10-04
9
506 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
 

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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