Quote:
Originally Posted by maxdu45000
How i can connect me on darkorbit hangar with SID please?
|
Its basically the same code which i posted above for logging straight into the map using SID. Except you want hangar so do this:
Code:
Links To Dark Orbit Home:
"http://{0}.darkorbit.bigpoint.com/indexInternal.es?dosid={1}&action=internalDock"ServerID,SID;
{0}->ServerID //your server ID us1, us2, int1, ect....
{1}->SID //your session ID, right click home pageand view source to get SID
Thats the basics of it, depending on what language you are coding in, the format may be different, plus you need to link the process to your GUI
In c++ it would be something like usually at the bottom of the form.h:
Code:
private: System::Void hangarToolStripMenuItem1_Click(System::Object^ sender, System::EventArgs^ e) {
Process ^p;
ProcessStartInfo ^pInfo;
pInfo = gcnew ProcessStartInfo();
pInfo->Verb = L"open";
pInfo->FileName = String::Format(L"http://{0}.darkorbit.bigpoint.com/indexInternal.es?dosid={1}&action=internalDock",ServerID,SID);
pInfo->UseShellExecute = true;
p = Process::Start(pInfo);
}
And you need to make sure the link you click is activating the event by adding this line to the form generated code:
Code:
//
// hangarToolStripMenuItem1
//
this->hangarToolStripMenuItem1->Name = L"hangarToolStripMenuItem1";
this->hangarToolStripMenuItem1->Size = System::Drawing::Size(92, 22);
this->hangarToolStripMenuItem1->Text = L"Hangar";
this->hangarToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form2::hangarToolStripMenuItem1_Click); //<--this is the line you are adding, the rest above is done for you by windows form generator
This is an example of a link added into a menu, but it can be used the same way for a button too, windows forms will generate the code for you whether its a menu link or a button. You can make a link to every page in the home page like the clan, trade, uridium, shop, galaxy gates, pilot sheet, mail, ect.. Everything you see in the home page has a link. And with your SID you can connect to it directly.
To mae it even simpler, if you can create a loggin function so you dont have to loggin manually and loo for the SID, it would be a lot simpler and better for the use of your program.