public class Blank : Photon.PunBehaviour
instead of mono behavior, use this to receive photon callbacks in your script.
public override void OnLeftRoom()
An example of overriding a punbehavior callback
| if((Test-Path -LiteralPath "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main") -ne $true) { New-Item "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main" -force -ea SilentlyContinue }; | |
| New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'DisableFirstRunCustomize' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue; | |
| New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Search Page' -Value '' -PropertyType String -Force -ea SilentlyContinue; | |
| New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Enable Browser Extensions' -Value 'yes' -PropertyType String -Force -ea SilentlyContinue; | |
| New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Start Page' -Value 'https://valantmed.com/ValantWeb1/Login.aspx' -PropertyType String -Force -ea SilentlyContinue; | |
| New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Exp |
| # dism /online /Export-DefaultAppAssociations:"path\to\defaultassociations.xml" | |
| # Use Export on system whose default app associations you wish to copy | |
| # Use Import on User profile where you want your app to be associated | |
| dism /online /Import-DefaultAppAssociations:"path\to\defaultassociations.xml" |
| //Setup driver | |
| WebDriverManager.chromedriver().setup(); | |
| driver = new ChromeDriver(); | |
| driver.manage().window().maximize(); | |
| driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); | |
| driver.get("https://teams.microsoft.com/_?culture=en-in&country=IN&lm=deeplink&lmsrc=NeutralHomePageWeb&cmpid=WebSignIn#/conversations/19:meeting_NjAwYzNjMjYtZWIwYy00ODczLTg0YzMtNjEyNzI3YzdlZmRi@thread.v2?ctx=chat"); | |
| //Keep a breakpoint on below line and login to your account, open Chat and hit resume F8 | |
| //Identify Time on chat, only chat started by host will be identified | |
| List<WebElement> chatOriginsList = driver.findElements(By.xpath("//*[starts-with(@data-scroll-id,'8:orgid')]/div/thread/div//*[@id='messageBody']//*[@data-tid='messageTimeStamp']")); |
| import time | |
| from selenium import webdriver | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urljoin | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| from selenium.webdriver import Chrome |
| import time | |
| from selenium import webdriver | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urljoin | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| from selenium.webdriver import Chrome |
| using OpenQA.Selenium; | |
| using OpenQA.Selenium.Chrome; | |
| using OpenQA.Selenium.Interactions; | |
| using OpenQA.Selenium.Support.UI; | |
| using System; | |
| namespace BigoBot.Bot | |
| { | |
| class AutoBot | |
| { |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| from selenium.webdriver import Chrome | |
| from selenium.common.exceptions import TimeoutException | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from webdriver_manager.chrome import ChromeDriverManager | |
| package bots; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.RemoteWebDriver; |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.bigo</groupId> | |
| <artifactId>bots</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> | |
| <dependencies> | |