Search found 90 matches

by edk
Thu May 25, 2017 8:07 am
Forum: HMG General Help
Topic: mapping network drive inside application -is it possible?
Replies: 34
Views: 815

Re: mapping network drive inside application -is it possible?

Franco, I have prepared a working demo version. I have created a Gmail account for testing purposes. I've previously submitted the wrong AddAttachment method syntax (sorry, but I wrote from my faulty memory :oops: ). Correct syntax should be: :AddAttachment ("c:\temp\readme.txt") I have not tested o...
by edk
Wed May 24, 2017 9:52 pm
Forum: HMG General Help
Topic: mapping network drive inside application -is it possible?
Replies: 34
Views: 815

Re: mapping network drive inside application -is it possible?

Now I am without a PC, check also sm_body, it should be in Html. Try

Code: Select all

sm_body := "<html> Test </html>"
I will try to prepare a working demo tomorrow.
by edk
Wed May 24, 2017 9:08 pm
Forum: HMG General Help
Topic: mapping network drive inside application -is it possible?
Replies: 34
Views: 815

Re: mapping network drive inside application -is it possible?

Do you have existing attachment "c:\temp\readme.txt" ? If not just remove this line :AddAttachment := "c:\temp\readme.txt"
by edk
Wed May 24, 2017 7:41 pm
Forum: HMG General Help
Topic: mapping network drive inside application -is it possible?
Replies: 34
Views: 815

Re: mapping network drive inside application -is it possible?

For Gmail set:

Code: Select all

lSSL := .T.
sm_portsmtp := 465 
by edk
Wed May 24, 2017 11:08 am
Forum: HMG General Help
Topic: mapping network drive inside application -is it possible?
Replies: 34
Views: 815

Re: mapping network drive inside application -is it possible?

Franco, It seems to me that Gmail requires SSL. I think, you should include SSL support: viewtopic.php?f=9&t=586&start=24 Although the description is for hb_tip, but it also applies to hb_SendMail. Personally I prefer to use CDO.Message (thx Pablo César :!: viewtopic.php?f=6&t=5033&hilit=CDO.Message...
by edk
Mon May 22, 2017 6:50 am
Forum: Issues and Discussions related to Harbour
Topic: How does the /d build option work
Replies: 9
Views: 227

Re: How does the /d build option work

Hi Bluebird. Here is the Build.bat, which works fine for me with HMG debugger. @echo off rem ******************************************************************************* rem SYNTAX rem ******************************************************************************* rem build [ /n ] [ /d ] [ /c ] <...
by edk
Thu May 18, 2017 1:40 pm
Forum: HMG General Help
Topic: How do I write binary keys to the registry?
Replies: 8
Views: 264

Re: How do I write binary keys to the registry?

Just convert each character from string into ascii value ASC() and put to array.

Code: Select all

Local aBin := {}
Local c1Chr
FOR EACH c1Chr IN cStringBin
	AADD( aBin, ASC(c1Chr))
NEXT	
by edk
Thu May 18, 2017 11:56 am
Forum: HMG General Help
Topic: How do I write binary keys to the registry?
Replies: 8
Views: 264

Re: How do I write binary keys to the registry?

I have an application that needs to write binary keys to the registry. If I should be in [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU] writes the following data: "a"=hex:6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,00,\ 00,44,00,...
by edk
Wed May 10, 2017 6:00 pm
Forum: HMG General Help
Topic: RICHEDITBOX and TAB-KEY
Replies: 13
Views: 337

Re: RICHEDITBOX and TAB-KEY

Indeed Krzysztof :)
17 is vk_control code
9 is vk_tab code
Keybd_Event ( vk_code , lKeyMessage )
where lKeyMessage: False is for key pressed Down; True for key released Up.
by edk
Wed May 10, 2017 2:07 pm
Forum: HMG General Help
Topic: RICHEDITBOX and TAB-KEY
Replies: 13
Views: 337

Re: RICHEDITBOX and TAB-KEY

Hi Karl.
For hmg version 3.4.3 and above try this (dirty way):

Code: Select all

ON KEY TAB ACTION HMG_PressKey( 17, 9)
For earlier versions of hmg try this:

Code: Select all

ON KEY TAB ACTION (Keybd_Event( 17, .F. ), Keybd_Event( 9, .F. ), Keybd_Event( 9, .T. ), Keybd_Event( 17, .T. ))