Recent Posts

Pages: [1] 2 3 ... 10
1
General Questions / Re: Email and Facebook
« Last post by Andy on July 16, 2018, 06:16:56 AM »
Brian,

Thanks for that, I took a little while to read up on what you've mentioned, and I think that is the way to do it, i.e. send a message via email.

Thanks,
Andy.
2
General Questions / Re: Email and Facebook
« Last post by Brian Pugh on July 15, 2018, 06:45:50 AM »
Andy, I found this:

Determine the contact's Facebook address. You can check if the contact has sent you the address to use. Otherwise, you can navigate to the user's Facebook timeline and locate their public username at the end of their URL. For example, for the URL "http://facebook.com/user" the public username would be "user." This public username is the first part of the Facebook email address, so the email address would be "user@facebook.com."

Brian
3
General Questions / Re: Email and Facebook
« Last post by Andy on July 15, 2018, 04:45:21 AM »
Thanks every one!

So any thoughts on Facebook? and how to send a message / email to a FB user?

Anyone?

I don't do FB.

Thanks,
Andy.


4
General Questions / Re: Region button image not showing
« Last post by Andy on July 13, 2018, 05:59:33 AM »
Larry,

I was simply using the rgn_button example.

Once they had become 32 bit colour, the problem went away.

Thanks,
Andy.
 
5
General Questions / Re: Region button image not showing
« Last post by LarryMc on July 12, 2018, 10:53:40 AM »
without your specific images I can't test your code
BUT, what strikes me odd is that you're using your region "mask" also as the image you are displaying.

I have always created my mask in black(the outside color) and white(the inside color). Yes, I know you can use any two colors.
And then my displayed image(s) has always been totally unrelated to the rgn image.
6
General Questions / Region button image not showing
« Last post by Andy on July 12, 2018, 10:05:27 AM »
This is probably a simple you for someone, but I just can't see it.

The second button bitmap is not showing, the path is correct.

Code: [Select]
CONTROL mainmenu,@RGNBUTTON,"",309,148,187,161,@CTLBTNFLAT,BUT_login

hrgn = RGNFROMBITMAP("C:\\1\\red.bmp")

SETFONT mainmenu,"Arial",14,800,0,BUT_login
SETCONTROLCOLOR mainmenu,BUT_login,RGB(0,0,0),RGB(0,0,0)
SETBUTTONRGN mainmenu,BUT_login,hrgn
SETBUTTONBITMAPS mainmenu,BUT_login,LOADIMAGE("C:\\1\\red.bmp",@IMGBITMAP),0,0

CONTROL mainmenu,@RGNBUTTON,"",500,148,187,161,@CTLBTNFLAT,BUT_help

hrgn2 = RGNFROMBITMAP("C:\\1\\gray.bmp")

SETFONT mainmenu,"Arial",14,800,0,BUT_help
SETCONTROLCOLOR mainmenu,BUT_help,RGB(0,0,0),RGB(0,0,0)
SETBUTTONRGN mainmenu,BUT_help,hrgn2
SETBUTTONBITMAPS mainmenu,BUT_help,LOADIMAGE("C:\\1\\grey.bmp",@IMGBITMAP),0,0

I'm just getting a black button instead.

Thanks,
Andy.
7
General Questions / Re: Email and Facebook
« Last post by fasecero on July 10, 2018, 07:20:53 AM »
I think that if you or one of your customers does not have a default email application there is not much that can be done. Maybe you can check the return value from ShellExecute.

Far from ideal, but you can check the browser that comes in the sample codes. Edit the address to something like ATTACHBROWSER(wb, "mailto: Name@Example.com") and see what happens. If it works, you could create a hidden browser for this purpose.

Edit. Here's some additional info about this
https://stackoverflow.com/questions/27176849/what-does-mailto-do-when-there-is-no-email-client
8
General Questions / Re: Email and Facebook
« Last post by Andy on July 10, 2018, 06:56:26 AM »

Okay, this works:

Code: [Select]
$include "windowssdk.inc"
$include "commctrl.inc"

CoInitialize(NULL)
ShellExecuteA(0,"open","mailto:" + "sss@sss.com" + "?subject=Hi", 0, 0, 1)
CoUninitialize()

But you still need an email client on your machine.

Andy.
9
General Questions / Re: Email and Facebook
« Last post by Andy on July 09, 2018, 10:57:40 PM »
Thanks guys, but I don't have a default email program.

So what do I do, or am I missing the obvious?  ???

Andy.
10
General Questions / Re: Email and Facebook
« Last post by fasecero on July 09, 2018, 01:15:31 PM »
In theory (we already know how unpredictable Windows can be) MailTo is a command that receives the default browser declared in default app settings. Chrome, for example, can ignore this command according to an user-defined variable. On the other hand, ShellExecute + "Open" is a command that goes directly to the OS Shell and it should (!) always work... Just in case, remember that it is a COM function and you need to call CoInitialize/CoUninitialize.
Pages: [1] 2 3 ... 10