is there a way open a´homepage in inprivate mode in ilogic ?

is there a way open a´homepage in inprivate mode in ilogic ?

Darkforce_the_ilogic_guy
Advisor Advisor
167 Views
4 Replies
Message 1 of 5

is there a way open a´homepage in inprivate mode in ilogic ?

Darkforce_the_ilogic_guy
Advisor
Advisor

is there a way open a´homepage in inprivate mode with ilogic ? 

0 Likes
168 Views
4 Replies
Replies (4)
Message 2 of 5

machiel.veldkamp
Collaborator
Collaborator

Try doing this:

https://superuser.com/questions/153245/how-can-i-open-google-chrome-via-command-line-with-a-url-in-i...

 

That should work in iLogic anyway 🙂

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

___________________________
0 Likes
Message 3 of 5

WCrihfield
Mentor
Mentor

Inventor also has its own utility that works as a web browser (WebBrowserDialog), which we can use its WebBrowserDialog.Navigate method to go to a specified web site (URL), but I don't think it has 'private mode'.  There is a VBA code example in the online help area which includes very basic creation and navigation functionality.

https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=WebBrowserDialogSample_Sample 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 5

the problem with that is that chrome is ban where i need it. I have a code today that create an link form info in an inventor file you have open.  some user are force to use inprivate mode (edge) to open that link other are not , but I believe it will work for both group if all are open the web adress inprivate mode... when I created for first code this was not a problem and will only be a problem for the next 6 month or so 🙂

0 Likes
Message 5 of 5

WCrihfield
Mentor
Mentor

Below is a link to another similar external coders blog site, where this sort of thing has been discussed.

https://stackoverflow.com/questions/59983825/launch-microsoft-edge-in-private-incognito-mode-in-net 

Going by examples at that reference, I created the following code within an iLogic rule.  When I ran it, it seemed to work OK, but I believe that the 'InPrivate' mode is disabled where I work, due to corporate IT Dept. restrictions, so I couldn't fully test it properly.  I almost never use MS Edge, and use DuckDuckGo Browser instead.  It can even be installed & used without 'administrator's' rights, at least for me.  I have been a fan of theirs since they started, back about 15 years ago, as an alternative to g@*gle .

Dim oProcStInfo As New ProcessStartInfo()
oProcStInfo.UseShellExecute = True
oProcStInfo.FileName = "msedge.exe"
oProcStInfo.Arguments = "-inprivate https://www.autodesk.com/"
Using oMSE_Proc As Process = Process.Start(oProcStInfo)
	Logger.Info("ProcessName = " & oMSE_Proc.ProcessName & vbCrLf & _
	"Process ID = " & oMSE_Proc.Id.ToString & vbCrLf & _
	"Process MainWindowTitle = " & oMSE_Proc.MainWindowTitle & vbCrLf & _
	"Process SessionId = " & oMSE_Proc.SessionId.ToString)
	
'	oMSE_Proc.Close()
End Using

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes