Scripting Program Better Error Handling

Discussion in 'Programming General' started by mama luigi, Oct 17, 2011.

Scripting Program Better Error Handling
  1. Unread #1 - Oct 17, 2011 at 8:33 PM
  2. mama luigi
    Joined:
    May 5, 2010
    Posts:
    11
    Referrals:
    0
    Sythe Gold:
    0

    mama luigi Newcomer

    Scripting Program Better Error Handling

    Hi,

    I found the source of one of Darthatrons programs from forever ago on my pc (it is a script type program, here's the link ), so I started messing around with it. I rewrote most of the code so it flows better, but I am having trouble with some error handling issues.

    When I type ("movemouse") or any other variable without an x or y coordinate or an interval, or when I type anything other than what im supposed to type, the program crashes on me..
    examples:
    Code:
    movemouse
    or
    Code:
    movemouse aaaaaaaaaaa
    Any way i can provide basic error handling for this program? I'm not really experienced with this type of stuff so this is why i am doing this.

    Can someone help me please? Anyones help will be greatly appreciated!

    Thanks,
    Mama Luigi
     
  3. Unread #2 - Oct 18, 2011 at 12:23 AM
  4. Terrankiller
    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    Scripting Program Better Error Handling

    Do some research on error handling in vb6. I am sure there are a ton of resources on it.
     
  5. Unread #3 - Oct 18, 2011 at 6:02 PM
  6. mama luigi
    Joined:
    May 5, 2010
    Posts:
    11
    Referrals:
    0
    Sythe Gold:
    0

    mama luigi Newcomer

    Scripting Program Better Error Handling

    hmmm... this time searching for error handling in "vb6" gave me an answer on the first try. just shows how unique google can be at times

    thanks a bundle terrankiller :p
     
  7. Unread #4 - Oct 19, 2011 at 7:58 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

    Scripting Program Better Error Handling

    Rewrite the program in VB.net, then you can use Try/Catch statements :love:
     
  9. Unread #5 - Oct 20, 2011 at 3:27 AM
  10. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Scripting Program Better Error Handling

    If you still need a little bit of help mate, just post a bit of code you want me to error handle and i'll do it for ya.
     
  11. Unread #6 - Oct 21, 2011 at 2:25 AM
  12. 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

    Scripting Program Better Error Handling

    VB6 is for noooooobs
     
< Vps for rs gold | Making java scripts >

Users viewing this thread
1 guest


 
 
Adblock breaks this site