Solved

asking permission

Posted on 2008-10-04
9
511 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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: …
Suggested Courses

632 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