Community discussions

MikroTik App

Search found 50 matches

by akira463
Wed Aug 23, 2023 4:10 pm
Forum: Scripting
Topic: How to check if special character is present in the message?
Replies: 4
Views: 2125

Re: How to check if special character is present in the message?

Thank you so much masters! now it works!!!
by akira463
Wed Aug 23, 2023 5:39 am
Forum: Scripting
Topic: How to check if special character is present in the message?
Replies: 4
Views: 2125

How to check if special character is present in the message?

Please do help , im having a hard time fixing my code, but still it does not work , i only want to check if the certain special character is present in the message here's my code :local message "!Your message here" :local specialChars "!@#$%^&*" :local found false :foreach ch...
by akira463
Tue May 02, 2023 7:20 pm
Forum: Scripting
Topic: How to add "or" condition on this code?
Replies: 1
Views: 1365

How to add "or" condition on this code?

Hello again sirs, Im having a hard time on how to put "or" selector on this code, please do help. :local usb "usb4" :local myNum "0951490XXXXX" :local acceptNum {"GCash"; "+6395149XXXX"} /tool sms inbox :foreach item in=[find] do={ :local uphone [get...
by akira463
Sat Apr 29, 2023 6:06 am
Forum: Scripting
Topic: Help cant create ip address list
Replies: 4
Views: 1602

Re: Help cant create ip address list

Thankyou sir rex! IT works! I can now live happily ever after!
by akira463
Wed Apr 26, 2023 1:40 pm
Forum: Scripting
Topic: Help cant create ip address list
Replies: 4
Views: 1602

Re: Help cant create ip address list

I haven't tried your revise code sir. Im riding a jeepney going home right now . I'll gonna try it when I'm on my home 😁😁
by akira463
Wed Apr 26, 2023 1:39 pm
Forum: Scripting
Topic: Help cant create ip address list
Replies: 4
Views: 1602

Re: Help cant create ip address list

Thankyou for your response sir Rex 😊😊😊. so much appreciated. The problem is almost identical to my other post https://forum.mikrotik.com/viewtopic.php?p=986848#p986848 each ppp secret has its own scheduler, if the ppp account scheduler is disabled it will list the ppp active IP of the disabled ppp a...
by akira463
Tue Apr 25, 2023 5:34 pm
Forum: Scripting
Topic: Help cant create ip address list
Replies: 4
Views: 1602

Help cant create ip address list

Please do help, id like to create a script wherein when the sys scheduler is disabled, automatically it will create ip address list base on ppp active name and ip, here's my code /system scheduler :foreach item in=[find where disabled] do={ :local disAcc [get $item name] /ppp active :foreach sname i...
by akira463
Thu Mar 09, 2023 5:30 pm
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 9
Views: 2304

Re: Cant set ppp secret comment

Thankyou again Sir! now it works !!!
by akira463
Thu Mar 09, 2023 7:57 am
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 9
Views: 2304

Re: Cant set ppp secret comment

Sir rextended i change some of the code, but the problem i does not work? ive been so dumb, cant figure out what could be wrong my goal here is when expired since = "blank" then add current date, else rewrite the date since it was expired /ppp secret :foreach accName in=[find where profile...
by akira463
Thu Mar 09, 2023 3:04 am
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 9
Views: 2304

Re: Cant set ppp secret comment

Thankyou sir rextended , so much amazing! it works, i hope you never get tired of teaching us! long live !!!!
by akira463
Wed Mar 08, 2023 4:32 am
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 9
Views: 2304

Cant set ppp secret comment

Hello sir, im having a trouble setting up the comment for all expired ppp users, here's my code /ppp secret :foreach accName in=[find where profile="EXPIRED"] do={ :local date [/system clock get date] :local name [get $accName name] :local comm [/ppp secret get [find name=$accName] comment...
by akira463
Thu Mar 02, 2023 5:10 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 1448

Re: Foreach data string holding

Thankyou again sir. Youre the best!!! 😁😁😁
by akira463
Wed Mar 01, 2023 5:07 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 1448

Re: Foreach data string holding

Thank you sir, It works now, but the problem the limit of the data must only 4000bytes as you said, anyway, thankyou so much!!!
by akira463
Wed Mar 01, 2023 4:12 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 1448

Re: Foreach data string holding

The script on post #2 for me works, but how many items are? The file created on this way can not exceed ~4000 Bytes... On terminal, THIS work? (do not omit parenthesys { }) Yes sir, on terminal it works, but when i create file.txt, it does not.. what could be the solution ? here's the result after ...
by akira463
Wed Mar 01, 2023 2:52 am
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 1448

Re: Foreach data string holding

Thankyou for the reply sir, but the problem sir still insist, it does not work :( . i also tried in telegram, but still i got no reply here's my code #telegram :local botToken "XXXXXXXXX:XXXXXXX" :local chatID "-XXXXXXX" :local filedata "" /ppp secret :foreach i in=[fin...
by akira463
Tue Feb 28, 2023 7:27 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 1448

Foreach data string holding

Hello master, Im here again with another question. I do want to write all ppp secret details txt file format, The problem is, when i run my code, it only register one name , what could be wrong? :local filedata "" :foreach i in=[/ppp secret find] do={ :local name [/ppp secret get $i name] ...
by akira463
Tue Feb 28, 2023 5:31 pm
Forum: Scripting
Topic: ppp secret profile wont set
Replies: 5
Views: 1471

Re: ppp secret profile wont set

sorry for the late reply,

Thank you again sir !!! Youre so amazing!!!
by akira463
Mon Feb 27, 2023 1:20 pm
Forum: Scripting
Topic: ppp secret profile wont set
Replies: 5
Views: 1471

Re: ppp secret profile wont set

Thankyou sir for answering my question 😊 Profile EXPIRED exist I have 200 clients in pppoe The use of scheduler is to check if the client is already paid and also it removes it's ip from restricted-address-list If the ppp client scheduler is disabled after due date I do like to change its profile fr...
by akira463
Mon Feb 27, 2023 6:13 am
Forum: Scripting
Topic: ppp secret profile wont set
Replies: 5
Views: 1471

Re: ppp secret profile wont set

as your guess, the problem sir is that the scheduler names is not match with the ppp secret names, so i did revised my code, but still it does not work sir, /system scheduler :foreach item in=[find] do={ :if ([get $item disabled]) do={ :local disAcc [get $item name] /ppp secret :local pppList [find]...
by akira463
Sun Feb 26, 2023 7:20 pm
Forum: Scripting
Topic: ppp secret profile wont set
Replies: 5
Views: 1471

ppp secret profile wont set

Hello again masters , im here again with another simple question, the problem is ppp secret profile wont set , here's my code :foreach item in=[/sys sch find] do={ :if ([/system scheduler get $item disabled] = true) do={ :local disAcc [/sys sch get $item name] :log warning $disAcc /ppp secret set $d...
by akira463
Mon Feb 06, 2023 2:45 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

ito lang kasi ang aking maibibigay sir, ang aking pasasalamat, at sobrang matulungin po kasi kayo. Godbless always, more luck to come! :D :D :D
by akira463
Mon Feb 06, 2023 2:32 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

woah , you know tagalog sir ? are you a Filipino ?
by akira463
Mon Feb 06, 2023 2:24 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

Sorry, my error, on previous post the chain=srcnat, already fixed.
It works sir, thankyou so much, so so so much appreciated!!!
by akira463
Mon Feb 06, 2023 2:14 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

You can add this on top of your nat rules, it add dynamically any contacted IP, of any protocol, to one firewall address-list thisaddlist /ip firewall nat add action=add-dst-to-address-list address-list=thisaddlist address-list-timeout=none-dynamic chain=dstnat dst-address-list=!thisaddlist \ src-a...
by akira463
Mon Feb 06, 2023 2:13 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

What could be wrong sir? , i cant also capture the torch dst-address, what should i do? here's my code /tool torch :foreach idc in=[find where interface="vlan10-Hotspot" and src-address~"12.0.4.240" and (timeout>2) ] do={ /file print file="dst-address.txt" /file set &qu...
by akira463
Mon Feb 06, 2023 2:07 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

what if in /tool torch sir? does it work ?
by akira463
Mon Feb 06, 2023 2:00 pm
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Re: Help. Log IP List turn values invalid

thankyou for your reply again sir, ill try this code.
by akira463
Mon Feb 06, 2023 10:46 am
Forum: Scripting
Topic: Help. Log IP List turn values invalid
Replies: 13
Views: 1241

Help. Log IP List turn values invalid

Please do help in my simple code, i do like to log all the dst-address of the certain ip, but it returns invalid item number here's my code /ip firewall connection :foreach ip in=[get [find] src-address] do={ :local src [:pick $ip [:find $ip "10.0.4.240"] ([:len $ip] - 6)] :local dstResult...
by akira463
Mon Jan 30, 2023 6:26 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

Thankyou again sir!! It works now furpectly!!! Youre awesome!!!!
by akira463
Mon Jan 30, 2023 6:16 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

Does your code look like mine on post #10? https://forum.mikrotik.com/viewtopic.php?p=981064#p981049 (you have published again the number...) It's late at your home, at midnight is better sleep... sorry sir, i did'nt saw it before, thankyou for mentioning it again, sorry again :( . ok ill try it , ...
by akira463
Mon Jan 30, 2023 6:04 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

Sorry to ask again sir, but the code it does'nt seems to work , when there's a lot of sms , they just do work when it has only one sms, i did already using foreach, but still it does not work, it always says invalid internal item, what could be wrong? this code deletes only one sms if it is only one...
by akira463
Mon Jan 30, 2023 5:46 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

you must remove all chatgtp and leave only my line....

The problem is the rest of the code, is wrong....
hahaha, im laughing at myself now , i did just things complicated, thanks again sir! youre the best!!! :D :D :D
by akira463
Mon Jan 30, 2023 5:34 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

ChatGPT can't compete with logic of CatSTBC :lol: :lol: :lol:
I just now knew chatgpt , I think I must go out in my cave :lol: , i thought there codes will run smooth , hahaha. still gonna think for the answers :lol: :lol:
by akira463
Mon Jan 30, 2023 5:32 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

still same result sir, no such item......
sms 2.PNG
by akira463
Mon Jan 30, 2023 5:28 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

Simply one line:
/tool sms inbox remove [find where message~$refNum]
thankyou sir for your quick response , im gonna try it,
by akira463
Mon Jan 30, 2023 5:27 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Re: Removing certain sms via referene number match.

ChatGPT?

Come here with real questions and probably you have real answers.

(you have revealed true phone number on images and script....)
sorry sir , i just take same ideas on chat gpt code, like this code
by akira463
Mon Jan 30, 2023 5:16 pm
Forum: Scripting
Topic: Removing certain sms via referene number match.
Replies: 14
Views: 1420

Removing certain sms via referene number match.

Im here again for another problem sir, i did follow chatgpt code , and also I made ideas , but it turns out it dont work properly, i do like to remove sms with match refence number, or match acct number, but it turns out to be deleted all , please help. thanks
Here's my code
by akira463
Mon Jan 30, 2023 12:54 am
Forum: Scripting
Topic: How to fix my code? comments turns to be equal to each other?
Replies: 5
Views: 2348

Re: How to fix my code? comments turns to be equal to each other?

Thankyou again , sir rextended , youre such a life saver!!. thankyou so much , i hope that youll never get tired of helping me :-D :-D :-D . Godbless!
by akira463
Sun Jan 29, 2023 7:39 am
Forum: Scripting
Topic: How to fix my code? comments turns to be equal to each other?
Replies: 5
Views: 2348

How to fix my code? comments turns to be equal to each other?

How to fix my code? comments turns to be equal to each other? what could be the problem? heres my code { /ppp secret :foreach item in=[find] do={ :local prof [get $item profile] :local comm [get $item comment] :local profCom "10 MBPS old 599 test" :if (($prof) = ($profCom)) do={ :local acc...
by akira463
Sat Jan 28, 2023 5:45 pm
Forum: Scripting
Topic: Script issue, 0 value turns to be false value?
Replies: 6
Views: 1148

Re: Script issue, 0 value turns to be false value?

It works now sir!!! Thankyou for your help! I hope someday i can repay you, God Bless you !
by akira463
Sat Jan 28, 2023 5:25 pm
Forum: Scripting
Topic: Script issue, 0 value turns to be false value?
Replies: 6
Views: 1148

Re: Script issue, 0 value turns to be false value?

My problem is, when "Cost" counter hit zero or negative amount , it logs that i have remaining balance of 0.00 Pesos. i do want to log it as "Payment receive your account is now activated" it balance is = equal to zero or -negative amount
by akira463
Sat Jan 28, 2023 5:21 pm
Forum: Scripting
Topic: Script issue, 0 value turns to be false value?
Replies: 6
Views: 1148

Re: Script issue, 0 value turns to be false value?

Thankyou sir , for your quick reply.! im gonna analyze again my code, thankyou,
by akira463
Sat Jan 28, 2023 4:58 pm
Forum: Scripting
Topic: Script issue, 0 value turns to be false value?
Replies: 6
Views: 1148

Script issue, 0 value turns to be false value?

Hello again sir, Im having a hard time working on this project. my problem is, even the comment "Counter" is equal to 0 "Zero" the log shows that it has to be paid, and also if you paid not equal to the "Counter" it displays as balance and also needs to be paid, what co...
by akira463
Thu Jan 26, 2023 2:38 pm
Forum: Scripting
Topic: How to get details after a certain text in sms?
Replies: 5
Views: 1609

Re: How to get details after a certain text in sms?

Also thankyou sir zainarbani , so much appreciated too!
by akira463
Thu Jan 26, 2023 2:37 pm
Forum: Scripting
Topic: How to get details after a certain text in sms?
Replies: 5
Views: 1609

Re: How to get details after a certain text in sms?

Thankyou sir Rextended , so much appreciated, ive been working this for wk now, thankyou so much!
by akira463
Wed Jan 25, 2023 2:28 pm
Forum: Scripting
Topic: Using regex in Mikrotik and creating search functions with return values
Replies: 5
Views: 7450

Re: Using regex in Mikrotik and creating search functions with return values

do you have a simplified version? wherein we can only get the exact word ? like a reference number on text sms ?
by akira463
Wed Jan 18, 2023 6:47 pm
Forum: Scripting
Topic: How to get details after a certain text in sms?
Replies: 5
Views: 1609

Re: How to get details after a certain text in sms?

anyone to help ?
by akira463
Tue Jan 17, 2023 5:17 pm
Forum: Scripting
Topic: How to get details after a certain text in sms?
Replies: 5
Views: 1609

How to get details after a certain text in sms?

Im working now for a project called Cashless transaction using sms , wherein when someone paid there bill, mikrotik will automatically look for its account number and Reference number, the problem is I dont know how to code the specific string on the sms. Ex. Text SMS You have received PHP 1.00 of G...
by akira463
Wed Jul 24, 2019 10:52 am
Forum: Wireless Networking
Topic: Faile to add queue
Replies: 1
Views: 879

Faile to add queue

Im always having this kind of problem then afterwards my Gr3 rebooted or else I manually remove queues in order to login the clients. how to fix this?


Capture.JPG