- Регистрация
- 15.09.2011
- Сообщения
- 157
- Благодарностей
- 4
- Баллы
- 18
I need some1 to help me with codecreator as i still learning using it
1) So im recording examples code(PHP) for login into youtube and i want to know how to get the email:pass from my file on my folder...for example in projectmaker im using {-File.GetString-|-\Results.txt-|-0-|-true-} and i also need to know how to split the email:password :confused:
2) After login into youtube i need to parsed some text(DOM) like exemples:
3) How i supposed to save my email:pass to my file again :confused:
Sorry for my noob question.
Thanks in advance and i include the code that i record and hope some1 can help me by modified the code so that i will know where to edit the code
1) So im recording examples code(PHP) for login into youtube and i want to know how to get the email:pass from my file on my folder...for example in projectmaker im using {-File.GetString-|-\Results.txt-|-0-|-true-} and i also need to know how to split the email:password :confused:
2) After login into youtube i need to parsed some text(DOM) like exemples:
Код:
Get started by adding channels
Sorry for my noob question.
Thanks in advance and i include the code that i record and hope some1 can help me by modified the code so that i will know where to edit the code
Код:
<?php
import namespace System;
import namespace Zennolab:::CommandCenter;
class Step1
{
public static function Execute($instance)
{
// Clearing cookies
$instance->ClearCookie();
// Going to youtube.com
$tb = $instance->MainTab;
if (($tb->IsVoid) || ($tb->IsNull)) return -1;
if ($tb->IsBusy) $tb->WaitDownloading();
$tb->Navigate("youtube.com");
if ($tb->IsBusy) $tb->WaitDownloading();
// Click the link "Sign In"
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("a", "href", "https://accounts.google.com/ServiceLogin\\?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dheader%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US<mpl=sso", "regexp", 0);
if ($he->IsVoid) {
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("a", "InnerText", "Sign\\ In", "regexp", 0);
}
if ($he->IsVoid) return -1;
$he->RiseEvent("click", false);
if ($tb->IsBusy) $tb->WaitDownloading();
if ($instance->GetTabByAddress("popup")->IsBusy) $instance->GetTabByAddress("popup")->WaitDownloading();
// Setting value [riroporge1...] to the element with tag [input:text]
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("Email");
if ($he->IsVoid) {
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildById("Email");
}
if ($he->IsVoid) {
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByAttribute("input:text", "fulltag", "input:text", "text", 0);
}
if ($he->IsVoid) return -1;
$he->SetValue("[email protected]", true);
// Setting value [YGsxUFurtU] to the element with tag [input:password]
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("Passwd");
if ($he->IsVoid) {
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildById("Passwd");
}
if ($he->IsVoid) {
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByAttribute("input:password", "fulltag", "input:password", "text", 0);
}
if ($he->IsVoid) return -1;
$he->SetValue("YGsxUFurtU", true);
// Branch builder, RiseEvent type
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("signIn");
if ($he->IsVoid) return -1;
$he->RiseEvent("click", true);
if ($tb->IsBusy) $tb->WaitDownloading();
if ($instance->GetTabByAddress("popup")->IsBusy) $instance->GetTabByAddress("popup")->WaitDownloading();
return 0;
}
}
?>