Jump to content

_IEAction($oObejct, "paste") prompts for permission


Exit
 Share

Recommended Posts

There are several methods to fill a browser input field:
Send(), ControlSend(), _IEPropertySet(), ...
 
... but I am only interested in _IEAction($oObejct, "paste")

Please do not propose circumventions with other functions.

Here a reproducer:

#include <IE.au3>

_Example()

Func _Example()
    $oIE = _IECreate("http://autoit.oo3.co/example.html")
    $oObejct = _IEGetObjById($oIE, "text")
    _IEAction($oObejct, "focus")
    ClipPut("This is text from clipboard")
    _IEAction($oObejct, "paste")
EndFunc   ;==>_Example

How to prevent this nagging prompt:

post-45639-0-81746900-1416523555_thumb.j

Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

@SmOke_N   Thanks for the useful pointer.

@ALL   Does somebody knows how to change these security setting without using the GUI ?  (WinAPI, Registry, ....)

             I would like to set  https://translate.google.com to allow clipboard operations.

TIA Exit

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Moderators

http://support.microsoft.com/kb/182569

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones

HKEY_LOCAL_USER as well

The key code (Name) is 1407

In zones 0-3, it looks like it needs to be set to 0

P.S.

You could have found this the same way I did, I simply googled it.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...