Sign in to follow this  
Followers 0
Exit

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

5 posts in this topic

#1 ·  Posted (edited)

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

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
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


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

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.


[center]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.[/center]

Share this post


Link to post
Share on other sites

@ SmOke_N    Thanks for the information.

I also tried to google it, but the German keywords mostly don't match and the English words are not visible in German popups.

Anyway, thanks a lot for your time.


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
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
Sign in to follow this  
Followers 0