Search found 20 matches

by zgdzgdzgd
Tue Jan 02, 2018 4:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Lock ComboBox but enable mouse scroll
Replies: 2
Views: 2838

Re: Lock ComboBox but enable mouse scroll

Nevermind i think i got it:

on rawKeyDown theKeyNumber
if theKeyNumber is 65308 then pass rawKeyDown -- mouse wheel down (65308 key reiškia pelės ratukas žemyn)
else if theKeyNumber is 65309 then pass rawKeyDown -- mouse wheel up (65309 key reiškia pelės ratukas aukštyn)
else ## -- lock ...
by zgdzgdzgd
Tue Jan 02, 2018 4:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Lock ComboBox but enable mouse scroll
Replies: 2
Views: 2838

Lock ComboBox but enable mouse scroll

Hello,

i want to lock the combobox so user can't change text inside, but i when i lock it the scroling with mouse doesn't work anymore :/

This is my code:

on rawKeyDown theKeyNumber
if theKeyNumber is 65308 then answer down -- mouse wheel down
else if theKeyNumber is 65309 then answer up ...
by zgdzgdzgd
Tue Dec 12, 2017 3:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved
Replies: 7
Views: 8180

Re: Sarah Reichelts smtp library - unicode subject and mail text

I spend half a day and found the solution:

i changed part of the code in library to this:

put "Content-Type: text/plain; charset=utf-8;" & cr after tNewBody
put "Content-Transfer-Encoding: quoted-printable" & cr & cr after tNewBody

also in the main code i added this ugly piece of code hack ...
by zgdzgdzgd
Tue Dec 12, 2017 12:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved
Replies: 7
Views: 8180

Re: Sarah Reichelts smtp library - unicode subject and mail text


in original smtp library code, the mail text is formatted in unicode, but subject field is ASCII :/

To encode a header using this technique you must use this format:

=?charset?encoding?encoded-text?=
And this is an example of its use:

=?utf-8?Q?hello?=
The encoding must be either B or Q ...
by zgdzgdzgd
Mon Dec 11, 2017 5:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved
Replies: 7
Views: 8180

Re: Sarah Reichelts smtp library - unicode subject and mail text


I think her's only handled ASCII characters.. If you find an old copy of the email libraries I wrote, I believe it handled unicode..


at first i didn't noticed the line in library:

put "Content-Type: text/plain; charset=US-ASCII" & CRLF after emailText
put "Content-Transfer-Encoding: 7bit ...
by zgdzgdzgd
Mon Dec 11, 2017 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved
Replies: 7
Views: 8180

Re: Sarah Reichelts smtp library - unicode subject and mail text

shaosean wrote: Mon Dec 11, 2017 1:16 pm I think her's only handled ASCII characters.. If you find an old copy of the email libraries I wrote, I believe it handled unicode..
Hello,

in original smtp library code, the mail text is formatted in unicode, but subject field is ASCII :/
by zgdzgdzgd
Mon Dec 11, 2017 11:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved
Replies: 7
Views: 8180

Sarah Reichelts smtp library - unicode utf-8 subject and mail body - Solved

Hello,

i'am building standalone app based on Sarah Reichelts smtp library but now i'am facing the problem then i want to send email with Lithuanian symbols like (ąčęėįšųūž). Then i receive an email it not recognizing Lithuanian chars and displays ???.
Capture.JPG

My source code:

on mouseUp ...
by zgdzgdzgd
Mon Nov 27, 2017 4:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Re: Send mail in Windows without Outlook

Thank you, very much matthiasr this is code example that i was looking for. S arah Reichelts smtp library is a great tool, and works even in old Windows XP! I just tested it on WinXP virtual box. I searched for this example everywhere it's a discovery for me. It doesn't matter that this doesn't ...
by zgdzgdzgd
Thu Nov 23, 2017 1:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Re: Send mail in Windows without Outlook

i made a short video showing how standalone mailer works i need same example for livecode

http://youtu.be/TEX2LaNJKAI?hd=1


By its very nature, mail will require she other software.

Perhaps simpler to consider writing an API on a remote server and calling that. At least that would keep the local ...
by zgdzgdzgd
Thu Nov 23, 2017 9:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Re: Send mail in Windows without Outlook

i uploaded a good example compiled .exe file you can test in virtual box it runs on any windows os , i tested it in winxp sp3

https://tmpfiles.org/dl/1177/sendmailexample.exe

or

https://file.town/download/ewvja4j2gjy0b7umw5en46qt5


By its very nature, mail will require she other software ...
by zgdzgdzgd
Thu Nov 23, 2017 9:45 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Re: Send mail in Windows without Outlook

I have few examples made in macro scheduler stand alone .exe programs sending mails without any dependencies so i know it's possible, i'am just wondering is possible in livecode because i want to switch from macro scheduler scripting to livecode, but i'am missing functionality from macro scheduler ...
by zgdzgdzgd
Thu Nov 23, 2017 8:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Re: Send mail in Windows without Outlook

If i do that it will not be a standalone program and will require .exe file and .vbs file. I need to make it in one standalone .exe without any dependencies or .vbs files.
FourthWorld wrote: Thu Nov 23, 2017 8:10 am If Windows is all you need you can call that script from LiveCode's shell function.
by zgdzgdzgd
Thu Nov 23, 2017 7:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)
Replies: 12
Views: 20432

Send mail in Windows without Outlook - Solved (use: Sarah Reichelts smtp library)

I can't any good example to send simple mail via smtp in windows OS. For example i have a vbs script like this:

Set MyEmail=CreateObject("CDO.Message")

MyEmail.Subject="test"
MyEmail.From="my@email.com"
MyEmail.To="my@email.com"
MyEmail.TextBody="Testing one two three."

MyEmail.Configuration ...
by zgdzgdzgd
Wed Nov 22, 2017 5:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: ComboBox - How to lock it ? - Solved
Replies: 12
Views: 7708

Re: ComboBox - How to lock it ? - Solved

I understand perfectly, but there is a workaround always. Like you showed me with that small code example. Anyway thank you again :)


Yes, they look different, but not too different for the user not to recognize that it is a combo box. 8)

We only have this kind of combo box in LC, and this is not ...
by zgdzgdzgd
Wed Nov 22, 2017 5:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: ComboBox - How to lock it ? - Solved
Replies: 12
Views: 7708

Re: ComboBox - How to lock it ? - Solved

Klaus helped me a lot, but still it's not the same combobox as i have my example .exe. Take a look i made a short screencap video:

https://youtu.be/HFtxuwqdeIs

In my example .exe combo box opens and closes when i press on a whole combo button not only on arrow button also there is no typing marker ...