Sad news, i decided i not have time for this project right now
Singature style1 is finished. i started Style 2 but stopped and delete code, because image code for 2nd style is cryped and do not contains username in code.
If some1 want to play, or finish my project, hare is source code:
Basicly, code is verry simple
Public Class frm_sig
Private Sub Style_1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'this simple line makes osu standard as default selection
ComboBox1.SelectedItem = "Osu!"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MessageBox.Show("Please enter your username!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Else
'create singature
If ComboBox1.SelectedItem = "Osu!" Then
picshow.ImageLocation = "http://osusig.ppy.sh/image1.png?uid=" + TextBox1.Text + "&m=0"
ElseIf ComboBox1.SelectedItem = "Taiko" Then
picshow.ImageLocation = "http://osusig.ppy.sh/image1.png?uid=" + TextBox1.Text + "&m=1"
ElseIf ComboBox1.SelectedItem = "CTB" Then
picshow.ImageLocation = "http://osusig.ppy.sh/image1.png?uid=" + TextBox1.Text + "&m=2"
ElseIf ComboBox1.SelectedItem = "Osu!Mania" Then
picshow.ImageLocation = "http://osusig.ppy.sh/image1.png?uid=" + TextBox1.Text + "&m=3"
End If
End If
End Sub
Private Sub picshow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picshow.Click
If picshow.Image Is picshow.ErrorImage Then
MessageBox.Show("I can't copy image code! Image is still loading or is not generated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
ElseIf picshow.Image Is picshow.InitialImage Then
MessageBox.Show("I can't copy image code! Image is still loading or is not generated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Else
Clipboard.Clear()
Clipboard.SetText("[img]" + picshow.ImageLocation.ToString + "[/img]")
MessageBox.Show("Singature forum code copied to clipord!", "Succes", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Also hare is loading and error images
http://wuxo.biz/we2.png (Loading)
http://wuxo.biz/we.png (error)
I also started beatmap downloading tool (just started, only login done. This is simple code too, but not that simple as code for singatures)
This code will not transfer any passwords to my servers, to servers of other ppl (if someone contiune the dev) it send jour login data directly to peppy's servers. What it basicly doo is. when you fill the date in form, code will navigate to "osu.ppy.sh" in hidden webbrowser control. And then imitate your keyboard and type same data to site's textboxes.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.navigate ("https://osu.ppy.sh/forum/ucp.php?mode=login")
WebBrowser1.Document.GetElementById("username").SetAttribute("value", Txt_user.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", Txt_password.Text)
WebBrowser1.Document.GetElementById("login").InvokeMember("click")
If check_remember.checked = true then
WebBrowser1.Document.GetElementById("autologin").InvokeMember("click")
End If
End Sub
Please note, i didn't use any APIs i just analyze sites source code and look up for login form and form's texboxes.
I hope some1 will made something useful with this