BamBuVn Posted February 16, 2015 Share Posted February 16, 2015 Source Autoit 3.3.12 Don't "copy shortcut" on context menu for _IECreateEmbedded(), help me! Link to comment Share on other sites More sharing options...
BamBuVn Posted February 17, 2015 Author Share Posted February 17, 2015 Pls! Help me!!!!!!!!!! Link to comment Share on other sites More sharing options...
argumentum Posted February 17, 2015 Share Posted February 17, 2015 Pls! Help me!!!!!!!!!! it just don't work, I don't think anyone can help you with that, it's IE, not autoit. Follow the link to see my signature's stuff.FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 17, 2015 Moderators Share Posted February 17, 2015 Don't bump a thread within 24 hours (only warning). I know you can disable it from the registry, but that's a permanent solution or at least a well monitored one that shouldn't be trusted. It's a menu, so I'm sure the _GUICtrlMenu* functions will help. The idea would be to find the context menu for IE and use those functions. You have the browser object, so getting a handle to the browser is no problem, but I don't have the patience to do your part in finding examples online on how to do it (even if it's not in autoit). If you can find code in other languages that does what you're looking for, I'm sure someone here can translate it. Another option is to hook the browser object, track/trap the contextmenu primary mouseclick with a callback function and control the outcome from there. And yet another option is to inject javascript to prevent contextmenu primary mouseclick from within the DOM of the object. Those last two suggestions are not very good if you ever want the user to actually be able to use anything in the contextmenu... especially the last one. So there you have it. 3 suggestions on what to do... all require some work on your part. 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 More sharing options...
JohnOne Posted February 17, 2015 Share Posted February 17, 2015 I don't even understand what the question is. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Parsix Posted April 15, 2021 Share Posted April 15, 2021 (edited) _IEHeadInsertEventScript($oIE, "document", "oncontextmenu", "window.event.cancelBubble = true;window.event.returnValue = false;") Edited April 15, 2021 by Parsix Link to comment Share on other sites More sharing options...
wolflake Posted April 15, 2021 Share Posted April 15, 2021 @Parsix you probably didn't notice that you are replying to a post that is 6 years old. Because languages and operating systems change over time often old questions and answers are not relevant over time hence a reluctance to necro-posting. If you believe the question and your answer are still timely to someone searching today please repost the question with your answer. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now