Tip for Magic Submitter
Still there is no Documentation for C# in Magic Submitter, but there is sample of it. It can be found in bukisa.com Article directory registration panel.
Sample Below:
string str = ie.Labels[4].Text;
str = str.Replace(” “, “”).Replace(“?”, “”).Replace(“=”, “”);
if (str.Contains(“+”) == true)
{
string[] st = str.Split(new char[] { ‘+’ });
int a = 0;
int b=0;
int.TryParse(st[0], out a);
int.TryParse(st[1], out b);
int result = a + b;
processor.ieTypeText(“cptchfy”, result.ToString());
}
I found some commands and tried it C# code executer , and I’ve get error like this:
1 Errors:
Line: 23 – ; expected
using System;
using System.Windows.Forms;
using System.Da’ta;
using System.Xml;
using csExWB;
using WatiN.Core;
using MagicSubmitter;
using System.Reflection;
using Sys|:em.l0;
using System.Collections;
using System.Text.RegularExpressions;
namespace MagicSubmitter{
public class WestWindScript MarshalByRef0bject,IRemotelnterface{
public object Invoke(string lcMethod,object[] parms){
return
this.Ge’tType0 .Invol:eMember(|cMethod,BindingFlags.lnvokeMethod, nu
ll,this,parms );
}
public object ExecuteCode(params object[] Parame’ters){
Processor processor =(Processor)Parameters[0];
IE ie: processonie;
string Category = “” ;string filename: “” ; if (processor.submititem!=null)
{Category =
processondatamanager.GetCategoryVaIue(processor.profile.Profile_id,
processor.current_service_id, processorsubmititemld);
filename: processonsubmititem.GetFieldResultingValue(“Video
File”);}string str = Request.RawUrI
processor.ieTypeText(“eml”, str.ToString0);
return null;}
}}
That shows what kind of classes are loaded. I’ll keep testing it, but this is all by now.
About this entry
You’re currently reading “Tip for Magic Submitter,” an entry on Visual Basic Senuke Clone
- Published:
- 07.05.10 / 9am
- Category:
- BH
No comments
Jump to comment form | comments rss [?] | trackback uri [?]