Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

asking permission

Posted on 2008-10-04
9
Medium Priority
?
513 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 200 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

721 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