71
Networks / Re: Send an e-mail with a click of a button
« Last post by zero1080 on November 13, 2020, 01:15:52 PM »Many thanks Malkom, i will give it a try and let you know if i need more help.
Hello guys, new to programming, i have just created my interface which includes a picture canvas and a single button. I want, when someone clicks the button an e-mail with subject "TEST" and message "It's me!" to be sent to a specific recipient. How can i make it work?
Local port,server,username,password
Local res
Put 25 into port
Put 'mail.yourdomain.com' into server
Put 'name@yourdomain.com' into username
Put '123456789' into password
EmailSetServer(port,server,username,password)
EmailCreateNew
EmailSetFrom(username)
EmailSetTo('friend@somedomain.com')
EmailSetSubject('TEST')
EmailSetBodyPlain('It's me!')
Put EmailSendFN(600) into res
Put res into field 1
Thank you! I still can't find my project folder.
When I put in a 'go back' button on my movie's card and click it, it takes me back to the desired card, but the movie doesn't go away. How do I fix this? I've tried MovieSetView, MovieViewFN, and such to no avail.
MovieSetHeight(1,0)
MovieSetView(1,0)MovieSetHeight(1,0)
MovieSetView(1,0)
Gotocard 2I tried compiling my program. It goes through alright. Now I'm having issues finding where it puts the file.When HN builds an app(executable) or stack, it places the built app/stack in the project's folder.
For instance if your project is called My Movie Player, then the built app/stack should be in the My Movie Player folder.
Note, when releasing your app or stack, the original project file is not required but remember to make a copy of it somewhere.
Only the app/stack plus any dependencies such as datafiles, images, vidoe setc are required.As for movies, when I run my program and try to start the movie, it doesn't start. What am I doing wrong?There is a bug in a movie player's control panel that prevents some movies such as MP4 from playing.
See number 5 in this post:-
http://www.tigabyte.com/smf/index.php?topic=326.0
However, it is possible to control a movie, play or pause it by using the relevant movie command.
In the scripts below, the movie player control on the card has ID 1.
The movie to be played was dragged and dropped intoto the project's movie library via the Movie Library menu option under the menu Windows.
Use one button to play the movie with the command MoviePlayNormalSpeed:-Code: [Select]MoviePlayNormalSpeed(1)
Use another button to pause the movie with the command MoviePause:-Code: [Select]MoviePause(1)
As a movie player's controller is bugged, it can be hidden using the command MovieSetController.
Its usual to place this or similar commands in the card's open event:-Code: [Select]MovieSetController(1,0)
Attached below is a simple movie player that has a small movie in the project folder.
More MP4 movies can be found here:-
https://file-examples.com/index.php/sample-video-files/sample-mp4-files/
I tried compiling my program. It goes through alright. Now I'm having issues finding where it puts the file.When HN builds an app(executable) or stack, it places the built app/stack in the project's folder.
As for movies, when I run my program and try to start the movie, it doesn't start. What am I doing wrong?There is a bug in a movie player's control panel that prevents some movies such as MP4 from playing.
MoviePlayNormalSpeed(1)
MoviePause(1)
MovieSetController(1,0)
Hello, I want to ask a question.
Does HyperNext support save/load data from the XML/JSON/Plain text file? Like, save a value of a variable(s), load value of a variable from a file, etc.
Because I want to save my program data and settings there.
@ MyAddFN(n1,n2) - simply adds 2 numbers together
Global myResultAddFN
Put n1 into myResultAddFN
Add n2 to myResultAddFN
Global myResultAddFN
Call MyAddFN(2,3)
Put myResultAddFN into field 1
@ 5 should appear in field 1