Search found 26 matches

by Identis
Mon Mar 20, 2023 11:50 am
Forum: Beginners
Topic: Yesterday date
Replies: 6
Views: 7747

Re: Yesterday date

This should work in version 4 onward. //Pure Macro Scheduler Month>mm Day>dd Year>yyyy Let>today=%mm%/%dd%/%yyyy% Sub>today,1 //Variable today is now yesterday's date. MDL>today //Or VBScript VBStart VBEnd VBEval>now-1,yesterday MDL>yesterday //The result is date and time //To have only the date Se...
by Identis
Fri Mar 17, 2023 7:28 am
Forum: Beginners
Topic: Yesterday date
Replies: 6
Views: 7747

Yesterday date

Hello,
I have 12version, is it possible to get yesterday date ?
by Identis
Wed Jan 18, 2023 5:14 am
Forum: Beginners
Topic: Symbol counter
Replies: 4
Views: 7740

Re: Symbol counter

I would have thought so, simply by comparing the existence of a symbol in user input to a list of variables. It would get quite complicated if you didn't want to allow duplicates though. What kind of symbols? I didn't mentioned something about dublicates. They can type everything they want. symbols...
by Identis
Tue Jan 17, 2023 10:50 am
Forum: Beginners
Topic: Symbol counter
Replies: 4
Views: 7740

Symbol counter

Hello,

is it possible to make in dialog window symbol counter? I want to make field where can type max 160 symbols (sms) and counter how many symbols left.

Thanks in advance.
by Identis
Mon Jan 16, 2023 11:22 am
Forum: Beginners
Topic: Read emails from txt and add them to recipients
Replies: 5
Views: 6934

Re: Read emails from txt and add them to recipients

Yes, this does that : readfile>d:\emails.txt,AllTxt StringReplace>AllTxt,CRLF,;,EmailList Let>SMTP_CCLIST=EmailList SMTPSendMail>EmailList,%SMTPServer%,me,myname,Subject,Body, You can also try SMTP_BCCLIST instead of SMTP_CCLIST. However, during my tests (Macro Scheduler 15.0.21) sending via Gmail ...
by Identis
Mon Jan 16, 2023 6:00 am
Forum: Beginners
Topic: Read emails from txt and add them to recipients
Replies: 5
Views: 6934

Re: Read emails from txt and add them to recipients

To loop through the email addresses and send them one by one, the structure would be something like this (assuming you already have the regular SMTPSendMail aspects accomplished) : readfile>d:\emails.txt,AllTxt Separate>AllTxt,CRLF,Lines let>readloop=1 repeat>readloop Let>thisemail=lines_%readloop%...
by Identis
Fri Jan 13, 2023 1:01 pm
Forum: Beginners
Topic: Read emails from txt and add them to recipients
Replies: 5
Views: 6934

Read emails from txt and add them to recipients

Hello,
I have txt file where I have users emails, number of users can change every month.
example txt:
[email protected]
[email protected]
[email protected]
How I can read and add these users to SMTPSendMail> command ?

Thanks in advance.
by Identis
Mon Dec 05, 2016 9:36 am
Forum: Technical / Scripting
Topic: Always looping
Replies: 3
Views: 4362

Re: Always looping

yes i agree with Marcus that it a wrong use of expressions, and of the while loop. but ini is empty if you get the value of the string i broke your code down and managed to create a working one: :D let>vieta1=c:\testdir11 let>vieta2=c:\testdir12 let>vieta3= let>vieta4= Let>numeris=1 let>ini=dummyva...
by Identis
Thu Dec 01, 2016 11:06 am
Forum: Technical / Scripting
Topic: Always looping
Replies: 3
Views: 4362

Always looping

Hello, what's wrong with my script? Why it's always looping even "ini" is empty? In conf.ini I have only vieta1 and vieta2 not empty, but he is always going throw and 3,4,5,6,7,8......... It's not reacting to while>%ini%<>"". Please help to solve it. Thanks. ReadIniFile>%script_dir%\conf.ini,setting...
by Identis
Fri Nov 25, 2016 11:14 am
Forum: Technical / Scripting
Topic: Delete older than 5days files
Replies: 4
Views: 4050

Re: Delete older than 5days files

Use the IfFileChanged command: GetFileList>C:\temp\cs\*.csv,files Separate>files,;,file_names If>file_names_count>0 Let>k=0 Repeat>k Let>k=k+1 Let>this_file=file_names_%k% IfFileChanged>this_file,>5 DeleteFile>this_file Endif Until>k,file_names_count Endif Need more help. I have 1 folder there are ...
by Identis
Thu Nov 24, 2016 9:56 am
Forum: Technical / Scripting
Topic: Delete older than 5days files
Replies: 4
Views: 4050

Re: Delete older than 5days files

Marcus Tettmar wrote:Use the IfFileChanged command:
Thank You!! Works very well :)
by Identis
Thu Nov 24, 2016 5:56 am
Forum: Technical / Scripting
Topic: Delete older than 5days files
Replies: 4
Views: 4050

Delete older than 5days files

Hello, I want to delete older than 5days files, but I don't know how to write "If" for it. Please help me. Thank You. GetFileList>C:\temp\cs\*.csv,files Separate>files,;,file_names Let>k=0 FileDate>C;\temp\cs\*.csv,FailoData GetDate>date Repeat>k Let>k=k+1 if> DeleteFile>k Until>k,file_names_count
by Identis
Fri Oct 28, 2016 9:18 am
Forum: Technical / Scripting
Topic: Log file reading and showing in dialog
Replies: 19
Views: 13027

Re: Log file reading and showing in dialog

Ok most likely cause its dos I need to encapsulate it in quotes, on the train on my phone now, so can't assist until tomorrow now, busy tonight, not at home. Sent from my GT-I9505 using Tapatalk yep, everything working :) Maybe You know how to do, that memo field scroll bar always will go down and ...
by Identis
Fri Oct 28, 2016 6:59 am
Forum: Technical / Scripting
Topic: Log file reading and showing in dialog
Replies: 19
Views: 13027

Re: Log file reading and showing in dialog

Identis wrote:
CyberCitizen wrote:Try the code I posted above.
Tried and it's empty because something wrong with find command, Report.txt file is always empty, if I manually type something everything is ok and result is showed in memo.
solved it. Thanks You very much for help.
by Identis
Fri Oct 28, 2016 6:25 am
Forum: Technical / Scripting
Topic: Log file reading and showing in dialog
Replies: 19
Views: 13027

Re: Log file reading and showing in dialog

CyberCitizen wrote:Try the code I posted above.
Tried and it's empty because something wrong with find command, Report.txt file is always empty, if I manually type something everything is ok and result is showed in memo.
Sign up to our newsletter for free automation tips, tricks & discounts