<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to use the login() method?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/90b084cbe6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/90b084cbe6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/90b084cbe6/</id><updated>2020-02-27T14:48:30.864000Z</updated><subtitle>Recent posts to How to use the login() method?</subtitle><entry><title>How to use the login() method?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/90b084cbe6/?limit=25#c1d0" rel="alternate"/><published>2020-02-27T14:48:30.864000Z</published><updated>2020-02-27T14:48:30.864000Z</updated><author><name>PhilN</name><uri>https://forge.codesys.com/u/philn/</uri></author><id>https://forge.codesys.com6338fb5f222efdb35fb50debb7dc2b0be6f57af2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;EDIT: I found out that I have to use online.create_online_application() to create the actual object.&lt;br/&gt;
Then the method can be used on that online application.&lt;/p&gt;
&lt;p&gt;Original Question:&lt;br/&gt;
Hi all,&lt;/p&gt;
&lt;p&gt;I'm trying to run a script that will log into the device (Control Win). I have Codesys 3.5.12.10.&lt;/p&gt;
&lt;p&gt;In the documentation, there are 2 login methods:&lt;br/&gt;
1) One requires the project object with user/password as parameters.&lt;br/&gt;
I tried this but my project doesn't require a username and password. The method requires me to put something in as parameters. Have already tried putting blanks with no success.&lt;/p&gt;
&lt;p&gt;2) The other requires the OnlineApplication object&lt;br/&gt;
I'm not sure what object this is. I've tried the Application object and it doesn't exist for it.&lt;/p&gt;
&lt;p&gt;My guess is that I need to use #2 but where would I get the object that uses it?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>