Community discussions

MikroTik App

Search found 8 matches

by ax045Y
Mon Apr 30, 2012 5:39 pm
Forum: Scripting
Topic: what command to enable user ppp at API?
Replies: 9
Views: 3755

Re: what command to enable user ppp at API?

This VB6 API example 'is as is'. Analyze code, when you click 'Send' button command is sent with 'End of Sentence/zero length word' mark. Modify this example to have possibility to send words and words with 'End of Sentence' separately. api_test.JPG As boen_robot wrote: /ppp/secret/enable -> send t...
by ax045Y
Mon Apr 30, 2012 12:17 am
Forum: Scripting
Topic: what command to enable user ppp at API?
Replies: 9
Views: 3755

Re: what command to enable user ppp at API?

=numbers=user1 ? Are you sure the contents of the text box is interpreted properly? Each line should be treated as a different word. The original code didn't do that - the "one line" text field was treated as a single word. If you just changed the "one line" text field to a &quo...
by ax045Y
Sun Apr 29, 2012 11:47 pm
Forum: Scripting
Topic: what command to enable user ppp at API?
Replies: 9
Views: 3755

Re: what command to enable user ppp at API?

Yes, but with the star too, so
/ppp/secret/enable
=numbers=*1
i was try it too,
but this user still disable.
i was try
/ppp/secret/enable
=name=user1
but still disable..
by ax045Y
Sun Apr 29, 2012 10:16 pm
Forum: Scripting
Topic: what command to enable user ppp at API?
Replies: 9
Views: 3755

Re: what command to enable user ppp at API?

You need to do this at two steps. 1. print the "secret" entry you want enabled. To target a specific entry, use query words. 2. From the print, extract the ".id" of the entry you want enabled, and put it in place of the "0". BTW, it's "numbers", not "num...
by ax045Y
Sun Apr 29, 2012 3:03 pm
Forum: Scripting
Topic: what command to enable user ppp at API?
Replies: 9
Views: 3755

what command to enable user ppp at API?

hii,, i got API vb from http://forum.mikrotik.com/viewtopic.php?f=2&t=51584 then i custom text box. http://i46.tinypic.com/xlh07a.jpg whats command to enable ppp user? at CLI it wil be /ppp secret enable 0 then from http://wiki.mikrotik.com/wiki/API_command_notes i translate that CLI become &quo...
by ax045Y
Thu Apr 26, 2012 1:21 pm
Forum: General
Topic: API in Visual Basic 6 working fine!
Replies: 36
Views: 32135

Re: API in Visual Basic 6 working fine!

@ax045Y Do not use Package and Deployment Wizard to compile project, use VB6 IDE 'File/Make...' command instead. In this case compiler shows you what and where is wrong with code. This API example works fine, problem is with 'CRAM_MD5' function in 'MD5.cls'. Remove this function and you will be abl...
by ax045Y
Tue Apr 24, 2012 9:25 pm
Forum: General
Topic: API in Visual Basic 6 working fine!
Replies: 36
Views: 32135

Re: API in Visual Basic 6 working fine!

is this script run correcly at v 5.12?
Yes, working fine!!!
what wrong with mine?
its error when copile to make .exe file

Image
by ax045Y
Sat Apr 21, 2012 11:33 pm
Forum: General
Topic: API in Visual Basic 6 working fine!
Replies: 36
Views: 32135

Re: API in Visual Basic 6 working fine!

is this script run correcly at v 5.12?