• Log in or sign up for an account here: https://www.sythe.org/login

Scripting Program Better Error Handling

mama luigi

Newcomer
Joined
May 5, 2010
Sythe Gold
0
Messages
11
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
 
Do some research on error handling in vb6.

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
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
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

Rewrite the program in VB.net, then you can use Try/Catch statements :love:
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
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.

VB6 is for noooooobs
 
Back
Top