Jump to content

Lisp communicate with Microsoft Edge


rcb007

Recommended Posts

 

What would be the Program ID to change from the internetexplorer to microsoft-edge?

 

(Apply 'vlax-get-or-create-object '("internetexplorer.application"))

 

Internet Explorer keeps launching and saying it is unsupported. I did not know if it was easier to change it to focus on the Microsoft Edge Browser.

 

Thanks

Link to comment
Share on other sites

Don't know what your trying to do but if edge is set as your default  you can just use the command browser to launch.

(command "_.Browser" "www.google.com")

 

  • Like 2
Link to comment
Share on other sites

This came up the other day: 

 

;;https://www.cadtutor.net/forum/topic/76207-send-a-text-message-by-whatsapp/

(defun open_url_in_chrome (url / sa);by ronjonp
  (and (setq sa (vlax-get-or-create-object "Shell.Application"))
       (null (vlax-invoke sa 'shellexecute "chrome.exe" url))
       (vlax-release-object sa)
  )
)

 

You can put in the 'exe' name ( msedge.exe in this case ), or like MHUPP says will also do _browser for the default browser, a slightly different method to yours and I don't know if the interface will work as you want but it looks like it might

 

  • Like 2
Link to comment
Share on other sites

3 hours ago, mhupp said:

Try this.

 

(Apply 'vlax-get-or-create-object '("Microsoft-edge.application"))

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/launching-ms-edge-from-a-custom-ribbon-button/td-p/8460125

 

 

I'm getting 'nil' with that MHUPP,  though it will open with the example in the link you found

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...