Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: guest! on March 07, 2003, 07:26 PM

Title: Invalid procedure call or argument
Post by: guest! on March 07, 2003, 07:26 PM
I get that error while doing this, i dont understand  :-[ :-/
Shell App.Path & "\Chat(Log).txt", vbMaximizedFocus
Title: Re: Invalid procedure call or argument
Post by: Camel on March 07, 2003, 07:30 PM
when you use shell, you have to run a program

Shell "notepad " & App.Path & "\Chat(log).txt"
Title: Re: Invalid procedure call or argument
Post by: ILurker on March 08, 2003, 12:32 PM
hey anyone know any other way to open a file on notepad?
Title: Re: Invalid procedure call or argument
Post by: Noodlez on March 08, 2003, 01:21 PM
you could run notepad and click file->open
Title: Re: Invalid procedure call or argument
Post by: Camel on March 09, 2003, 07:08 AM
Quotehey anyone know any other way to open a file on notepad?
what's wrong with what i said?
Title: Re: Invalid procedure call or argument
Post by: Yoni on March 09, 2003, 09:14 AM
You could use ShellExecute to open a .txt file with whatever program is associated with .txt files.
Title: Re: Invalid procedure call or argument
Post by: Camel on March 10, 2003, 11:21 AM
you could write your own text editor in your bot, too...