[TUT] Super Easy Way to Make Your Own Scripter

Discussion in 'Programming General' started by Blupig, Dec 3, 2007.

[TUT] Super Easy Way to Make Your Own Scripter
  1. Unread #1 - Dec 3, 2007 at 8:38 AM
  2. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    [TUT] Super Easy Way to Make Your Own Scripter

    [TUT] Super Easy Way to Make Your Own Scripter

    WHAT YOU NEED:
    -Script Control (select by pressing ctrl+t)
    -Textbox
    -Command Button
    -Standard EXE

    Lol this is so easy - Place your command button, your text box and your script control anywhere on the form.

    1. Add this code into your command button:
    Code:
    On Error GoTo Err
    	ScriptControl1.AddCode Text1.Text
    
    Err:
    	If Err.Number = 0 Then
    	Exit Sub
    	End If
    	MsgBox "ERROR " & Err.Number & ": " & Err.Description, vbCritical, "Script Error"
    
    Alright, so that first line tells the application that if something goes wrong to execute th instructions in the "Err" section, define 1 line later. That second line tells the script control to execute the code in the Text1 textbox. The "Err" part is really only 1 message box that tells the user what error happened. Error 0 happens everytime an instruction is sent to the application, so we tell the application that if the error's ID is 0 to not do anything about it. But, if the error is something else, to shout out the error number number and the error description in a message box.

    2. That's actually...It.

    ---------------------------
    Tutorial brought to you by Blupig
    Please thank/rep if available.
     
  3. Unread #2 - Dec 3, 2007 at 11:14 AM
  4. N00b my boob
    Referrals:
    0

    N00b my boob Guest

    [TUT] Super Easy Way to Make Your Own Scripter

    W0w it worked for me! Tnx!
     
  5. Unread #3 - Dec 3, 2007 at 10:00 PM
  6. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    [TUT] Super Easy Way to Make Your Own Scripter

    to bad it doesn't compile but i'm sure there is a way.
     
  7. Unread #4 - Dec 4, 2007 at 8:49 AM
  8. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    [TUT] Super Easy Way to Make Your Own Scripter

    How does it not compile? I can help out, I'm sure.
     
  9. Unread #5 - Dec 4, 2007 at 8:18 PM
  10. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    [TUT] Super Easy Way to Make Your Own Scripter

    compile means to make, i had no trouble with the code. when i say compile i was referring to building an .exe file. i don't think help will be necessary but thank you for the offer.
    sorry, i realize i wasn't clear. when i said 'it' doesn't compile i should have said that to bad the scripter doesn't allow you to save programs that you have made.
     
  11. Unread #6 - Dec 8, 2007 at 8:20 PM
  12. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    [TUT] Super Easy Way to Make Your Own Scripter

    Also if you want a calculator you can do
    [code
    ScriptControl1.Eval(text1.text)
    [/code]
     
< java | Vb [2005] Client [source] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site