messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2007-11-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No borland control's. \n\nI try to use in most dialog's the same procedure\n\nFirst , in main , a MDI window is opened in a global var ownd. Other modules have GLOBAL EXTERNAL oWnd\n\nWhen in the menu is choosen to edit a dbf , a dialog from oWnd (no wait clausule)with xbrowse is opened to choose the record. This can be done with RETURN or lDblClick. \nI noticed that when lDblClick is used the memory tends to increase, not with RETURN\n\nAll the dialog's follow the same procedure :\n[code:1am0wcfs]\nDEFINE DIALOG oDlg RESOURCE \"INVLEV\" OF oWnd TITLE WinTit\noDlg:bGotFocus = { ||dbSelectArea(cAlias) }\n....\nDefine xbrowse and some buttons\n....\nACTIVATE DIALOG oDlg NOMODAL;\nON INIT (SetXpos(oBrw,nLast) , oBrw:Setsize(BrwWidth) , InitDlg(oDlg));\nVALID ( IIF(lSluit , .T. , IIF(GETKEYSTATE(VK_ESCAPE) , (oBut:Setfocus() , .F.) , .T.) ) )\n[/code:1am0wcfs]\n\nlSluit is set to .T. with the action from the ok-button\n\nFrom this dialog the edit dialog is opened , same procedure \n\nAntonio , it is a serious problem , making it impossible to use fwh7.11\nMonday (+/- 10 customers) , i had 15 errors. After compiling with 7.7 and activating this exe , no errors anymore !!!!!!\n\nOn some computers , the error happens after 30 min , other after one or two hours.\n\nFrank",
"time": "09:41",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank,\n\nPlease post the RC source for RESOURCE \"INVLEV\"\n\nAlso please remove NOMODAL, just for a test, and lets see if that makes a difference. Thanks",
"time": "09:47",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank,\n\nCould you recompile FWH 7.10 PRGs with the xHarbour build used with 7.07 and build your EXE again ? \n\nOr recompile FWH 7.07 PRGs with current xHarbour build. Both tests are fine.\n\nJust to check that it is not a xHarbour related issue, thanks",
"time": "09:51",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2005-10-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola foro, estoy migrando mi aplicación de clip53+fw2.0 a harbour+fwh.\nMe encuentro con el horrible error que pongo en el título y me lo produce el control tsbrowse.\n\nAQUI VA EL .RC que uso.\n\nPIDEUSU DIALOG 65, 46, 276, 208\nSTYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE\nFONT 8, \"MS Sans Serif\"\n{\n EDITTEXT 102, 231, 166, 32, 12, ES_PASSWORD | WS_BORDER | WS_TABSTOP\n LTEXT \"Clave de acceso del usuario\", -1, 130, 169, 91, 8\n PUSHBUTTON \"&Aceptar\", 400, 121, 185, 50, 14\n PUSHBUTTON \"&Cancelar\", 401, 176, 185, 50, 14\n CONTROL \"\", 200, \"TBitmap\", 0 | WS_CHILD | WS_VISIBLE, 5, 3, 107, 194\n LTEXT \"Aplicación de Contabilidad General\", -1, 131, 28, 111, 8\n LTEXT \"Copyright (c) 1997-2005 Sigev, S.L.\", -1, 131, 39, 112, 8\n LTEXT \"info@sigev.com\", 250, 4, 198, 54, 8\n LTEXT \"Selección de usuario\", -1, 125, 80, 93, 8\n LTEXT \"www.sigev.com\", 251, 60, 198, 53, 8\n LTEXT \"SICONTAWIN\", 252, 131, 11, 127, 16\n CONTROL \"\", 201, \"TBitmap\", 0 | WS_CHILD | WS_VISIBLE, 132, 51, 22, 18\n LTEXT \"Teléfono : 964 455 551\", -1, 158, 50, 85, 8\n LTEXT \"Fax : 964 450 664\", -1, 158, 60, 79, 8\n CONTROL \"\", 103, \"TBitmap\", 0 | WS_CHILD | WS_VISIBLE, 216, 95, 53, 63\n CONTROL \"\", 110, \"TSBrowse\", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 125, 96, 83, 62\n}\n\n\nPues bien, si quito el control 110 \"TsBrowse\" el programa presenta el diálogo sin problemas, pero al ponerlo me peta con el cannot create dialog box. Estoy usando el workshop y grabo rc que luego compilo.\n\nNecesito ayuda urgente.\nGracias.",
"time": "10:05",
"topic": "Can not create dialog box (tsbrowse)",
"username": "Anonymous"
}
] |
Can not create dialog box (tsbrowse)
|
[
{
"date": "2005-10-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Que no me había \"logueado\" y he salido como guest.",
"time": "10:07",
"topic": "Can not create dialog box (tsbrowse)",
"username": "AngelSalom"
}
] |
Can not create dialog box (tsbrowse)
|
[
{
"date": "2005-10-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estás redefiniendo el control 110 desde el PRG ?",
"time": "10:07",
"topic": "Can not create dialog box (tsbrowse)",
"username": "Antonio Linares"
}
] |
Can not create dialog box (tsbrowse)
|
[
{
"date": "2005-10-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Cieeeerto, ese era el problema.\nAl estar migrando desde Clip53+FW, llamaba a una función que me crea los Browses y estaba llamando al que usaba con FW.\n\nGracias.",
"time": "11:15",
"topic": "Can not create dialog box (tsbrowse)",
"username": "AngelSalom"
}
] |
Can not create dialog box (tsbrowse)
|
[
{
"date": "2015-02-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio,\n\nI was upgraded yesterday, fwh15.02.\nBy the way, can not detect explanation of recently add function in fwfun.chm or wiki.fivetechsoft.com.\nFor example, FW _ OpenAdoConnection() ? FW _ QuotedColSQL() ? FW _ OpenRecordSet() etc. ...\n\nIf is added in help, was wished to record together when was added from fwh version.\n\nAlso, ran respectively programs in examples but was so old or data file has thing which do not discharge because is not,.\nWas wished to supplement perfectly.",
"time": "04:37",
"topic": "Can not detect explanation of function in chm or your wiki.",
"username": "dbmanfwh"
}
] |
Can not detect explanation of function in chm or your wiki.
|
[
{
"date": "2015-02-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Moon,\n\nPlease review our wiki:\n\n[url:3oywnkzj]http://wiki.fivetechsoft.com/doku.php?id=fwh_ado_api[/url:3oywnkzj]\n\nNot all functions are listed there yet, but surely it will help you <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nFull source code is available from FWH\\source\\function\\adofuncs.prg",
"time": "09:20",
"topic": "Can not detect explanation of function in chm or your wiki.",
"username": "Antonio Linares"
}
] |
Can not detect explanation of function in chm or your wiki.
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nIs this a bug or a feature? <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\r\n\r\nYou can not disable any control when you use a WHEN clause. For example:\r\n\r\n[code:395yy0t0]#include \"FiveWin.ch\"\n\nFUNCTION Main()\n\n LOCAL oDlg, oGet1, oGet2\n LOCAL cVar1:=\"test 1\"\n LOCAL cVar2:=\"test 2\"\n \n SetGetColorFocus()\n\n DEFINE DIALOG oDlg TITLE \"Test\"\n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10\n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN .T.\n \n oGet2:Disable()\n\n @ 3, 7 BUTTON \"&Ok\" OF oDlg SIZE 30, 12 ACTION oDlg:End()\n @ 3,16 BUTTON \"&Cancel\" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL\n\n ACTIVATE DIALOG oDlg CENTERED\n\nRETURN NIL[/code:395yy0t0]\r\n\r\nIs this a feature or a bug?\r\n\r\nPatrick",
"time": "11:05",
"topic": "Can not disable GET when using WHEN clause",
"username": "Patrick Mast"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\r\n\r\n[quote=\"Patrick Mast\":r3g8lvlx]Hello,\n\nIs this a bug or a feature? <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\n\nYou can not disable any control when you use a WHEN clause. For example:\n\n[code:r3g8lvlx]#include \"FiveWin.ch\"\n\nFUNCTION Main()\n\n LOCAL oDlg, oGet1, oGet2\n LOCAL cVar1:=\"test 1\"\n LOCAL cVar2:=\"test 2\"\n \n SetGetColorFocus()\n\n DEFINE DIALOG oDlg TITLE \"Test\"\n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10\n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 //when .T.\n \n \n @ 3, 7 BUTTON \"&Ok\" OF oDlg SIZE 30, 12 ACTION oDlg:End()\n @ 3,16 BUTTON \"&Cancel\" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL\n\n ACTIVATE DIALOG oDlg CENTERED ON INIT(oGet2:Disable())\n\nRETURN NIL[/code:r3g8lvlx]\n\nIs this a feature or a bug?\n\nPatrick[/quote:r3g8lvlx]",
"time": "12:08",
"topic": "Can not disable GET when using WHEN clause",
"username": "MGA"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hey SGS,\r\n\r\nThanks for your sample. But I actualy want to do this:\r\n\r\n[code:1swwe4ge]#include \"FiveWin.ch\"\n\nFUNCTION Main()\n\n LOCAL oDlg, oGet1, oGet2\n LOCAL cVar1:=\"test 1\"\n LOCAL cVar2:=\"test 2\"\n \n SetGetColorFocus()\n\n DEFINE DIALOG oDlg TITLE \"Test\"\n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10\n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN .T.\n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION oGet2:Disable()\n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION oGet2:Enable()\n\n ACTIVATE DIALOG oDlg CENTERED\n\nRETURN NIL[/code:1swwe4ge]\r\nAnd that does not work.\r\n\r\nPatrick",
"time": "13:07",
"topic": "Can not disable GET when using WHEN clause",
"username": "Patrick Mast"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick\r\n\r\nIt is normal. I placed a tracelog in the when clausule :\r\n@ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN (tracelog(),.T.)\r\nwith as result :\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n DIALOG.PRG->TDIALOG:INITIATE(0)\r\n DIALOG.PRG->TDIALOG:HANDLEEVENT(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n CONTROL.PRG->TGET:FORWHEN(0)\r\n CONTROL.PRG->TGET:FWLOSTFOCUS(0)\r\n CONTROL.PRG->TCONTROL:HANDLEEVENT(0)\r\n TGET.PRG->TGET:HANDLEEVENT(0)\r\n WINDOW.PRG->_FWH(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n CONTROL.PRG->(b)TCONTROL:TCONTROL(0)\r\n ->TCONTROL:CLICK(0)\r\n BUTTON.PRG->TBUTTON:CLICK(0)\r\n CONTROL.PRG->TBUTTON:HANDLEEVENT(0)\r\n WINDOW.PRG->_FWH(0)\r\n ->SENDMESSAGE(0)\r\n DIALOG.PRG->TDIALOG:COMMAND(0)\r\n ->TWINDOW:HANDLEEVENT(0)\r\n DIALOG.PRG->TDIALOG:HANDLEEVENT(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\nAfter the disable is executed follows a aevalwhen and is the when clausule evaluated.\r\n\r\nThe when clausule must depend from the action from the button !\r\n\r\nFrank\r\n\r\n\r\n[code:25oq25lw]#include \"FiveWin.ch\"\n\nFUNCTION Main() \n\n LOCAL oDlg, oGet1, oGet2 \n LOCAL cVar1:=\"test 1\" \n LOCAL cVar2:=\"test 2\" \n\t LOCAL lEnable := .T.\n \n SetGetColorFocus() \n\n DEFINE DIALOG oDlg TITLE \"Test\" \n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10 \n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN (tracelog(),lEnable) \n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION (lEnable := .F.) \n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION (lEnable := .T.) \n\n ACTIVATE DIALOG oDlg CENTERED \n\nRETURN NIL\n[/code:25oq25lw]\n\n\n[quote=\"Patrick Mast\":25oq25lw]Hey SGS,\n\nThanks for your sample. But I actualy want to do this:\n\n[code:25oq25lw]#include \"FiveWin.ch\"\n\nFUNCTION Main()\n\n LOCAL oDlg, oGet1, oGet2\n LOCAL cVar1:=\"test 1\"\n LOCAL cVar2:=\"test 2\"\n \n SetGetColorFocus()\n\n DEFINE DIALOG oDlg TITLE \"Test\"\n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10\n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN .T.\n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION oGet2:Disable()\n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION oGet2:Enable()\n\n ACTIVATE DIALOG oDlg CENTERED\n\nRETURN NIL[/code:25oq25lw]\nAnd that does not work.\n\nPatrick[/quote:25oq25lw]",
"time": "15:13",
"topic": "Can not disable GET when using WHEN clause",
"username": "demont frank"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick\r\n\r\nIt is normal. I placed a tracelog in the when clausule :\r\n@ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN (tracelog(),.T.)\r\nwith as result :\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n DIALOG.PRG->TDIALOG:INITIATE(0)\r\n DIALOG.PRG->TDIALOG:HANDLEEVENT(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n CONTROL.PRG->TGET:FORWHEN(0)\r\n CONTROL.PRG->TGET:FWLOSTFOCUS(0)\r\n CONTROL.PRG->TCONTROL:HANDLEEVENT(0)\r\n TGET.PRG->TGET:HANDLEEVENT(0)\r\n WINDOW.PRG->_FWH(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\n[testfw.prg->(b)MAIN] (14) Called from: \r\n WINDOW.PRG->TDIALOG:AEVALWHEN(0)\r\n CONTROL.PRG->(b)TCONTROL:TCONTROL(0)\r\n ->TCONTROL:CLICK(0)\r\n BUTTON.PRG->TBUTTON:CLICK(0)\r\n CONTROL.PRG->TBUTTON:HANDLEEVENT(0)\r\n WINDOW.PRG->_FWH(0)\r\n ->SENDMESSAGE(0)\r\n DIALOG.PRG->TDIALOG:COMMAND(0)\r\n ->TWINDOW:HANDLEEVENT(0)\r\n DIALOG.PRG->TDIALOG:HANDLEEVENT(0)\r\n ->DIALOGBOXINDIRECT(0)\r\n DIALOG.PRG->TDIALOG:ACTIVATE(0)\r\n testfw.prg->MAIN(19)\r\n\r\nAfter the disable is executed follows a aevalwhen and is the when clausule evaluated.\r\n\r\nThe when clausule must depend from the action from the button !\r\n\r\nFrank\r\n\r\n\r\n[code:3743wyhu]#include \"FiveWin.ch\"\n\nFUNCTION Main() \n\n LOCAL oDlg, oGet1, oGet2 \n LOCAL cVar1:=\"test 1\" \n LOCAL cVar2:=\"test 2\" \n\t LOCAL lEnable := .T.\n \n SetGetColorFocus() \n\n DEFINE DIALOG oDlg TITLE \"Test\" \n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10 \n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN (tracelog(),lEnable) \n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION (lEnable := .F.) \n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION (lEnable := .T.) \n\n ACTIVATE DIALOG oDlg CENTERED \n\nRETURN NIL\n[/code:3743wyhu]\n\n\n[quote=\"Patrick Mast\":3743wyhu]Hey SGS,\n\nThanks for your sample. But I actualy want to do this:\n\n[code:3743wyhu]#include \"FiveWin.ch\"\n\nFUNCTION Main()\n\n LOCAL oDlg, oGet1, oGet2\n LOCAL cVar1:=\"test 1\"\n LOCAL cVar2:=\"test 2\"\n \n SetGetColorFocus()\n\n DEFINE DIALOG oDlg TITLE \"Test\"\n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10\n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN .T.\n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION oGet2:Disable()\n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION oGet2:Enable()\n\n ACTIVATE DIALOG oDlg CENTERED\n\nRETURN NIL[/code:3743wyhu]\nAnd that does not work.\n\nPatrick[/quote:3743wyhu]",
"time": "15:13",
"topic": "Can not disable GET when using WHEN clause",
"username": "demont frank"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2008-08-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\r\n\r\nTry it this way:\r\n[code:2q1jkt6v]\n#include \"FiveWin.ch\" \n\nFUNCTION Main() \n\n LOCAL oDlg, oGet1, oGet2, lStatus := .T. \n LOCAL cVar1:=\"test 1\" \n LOCAL cVar2:=\"test 2\" \n \n SetGetColorFocus() \n\n DEFINE DIALOG oDlg TITLE \"Test\" \n \n @ 1, 6 GET oGet1 VAR cVar1 OF oDlg SIZE 60, 10 \n @ 2, 6 GET oGet2 VAR cVar2 OF oDlg SIZE 60, 10 WHEN lStatus \n \n @ 3, 7 BUTTON \"Disable\" SIZE 30, 12 OF oDlg ACTION ( lStatus := .F., oDlg:AEvalWhen() )\n @ 3,16 BUTTON \"Enable\" SIZE 30, 12 OF oDlg ACTION ( lStatus := .T., oDlg:AEvalWhen() )\n\n ACTIVATE DIALOG oDlg CENTERED \n\nRETURN NIL\n[/code:2q1jkt6v]",
"time": "20:10",
"topic": "Can not disable GET when using WHEN clause",
"username": "Antonio Linares"
}
] |
Can not disable GET when using WHEN clause
|
[
{
"date": "2012-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This issue relates to BUILDH.BAT linking the required exe using [color=#FF0000:22bawcju]iLink.exe --> Borland 582.[/color:22bawcju]\n\nSolution: Open the iLink.cfg file to be found in the folder: borland\\bcc582\\bin and correct the path",
"time": "07:41",
"topic": "Can not open UUID.DLL",
"username": "compaqt"
}
] |
Can not open UUID.DLL
|
[
{
"date": "2012-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=17&t=13098\">viewtopic.php?f=17&t=13098</a><!-- l -->",
"time": "10:33",
"topic": "Can not open UUID.DLL",
"username": "Antonio Linares"
}
] |
Can not open UUID.DLL
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nWe have a very interesting problem with [b:3qhujscw]Microsoft Compatibe[/b:3qhujscw] DLL files build from resources. If we compile the resource file with Borland, the problem goes away.\n\nIf we use a _ (underscore) in a resource name, and there is another resource name that begins with the same letter as the one with the _ in it, the app crashes if the resource name is a dialog or does not show the bitmap if the resource is a bitmap.\nWe found out that this is because the app can not find the resource name without the _ in it if there is a resource that starts with the same letter.\n\nFor example:\n[u:3qhujscw]This does NOT work:[/u:3qhujscw]\nIN_DBFYES\nINSERT -> Starts with IN\n\n[u:3qhujscw]This works:[/u:3qhujscw]\nIN_DBFYES\nNOINSERT -> Works because this resource name does NOT start with IN\n\nThis is the source for a reduced sample:\n\nPRG:[code:3qhujscw]#include \"FiveWin.ch\"\n\nFunction Test_Resource()\n LOCAL oDlg, oBmp\n \n SET RESOURCES TO \"Test.dll\"\n\n DEFINE DIALOG oDlg TITLE \"Dll problem\" FROM 0,0 TO 200,500 PIXEL\n\n @ 10,10 IMAGE oBmp RESOURCE \"INSERT\" SIZE 20, 20 PIXEL OF oDlg \n @ 10,40 IMAGE oBmp RESOURCE \"CHANGE\" SIZE 20, 20 PIXEL OF oDlg \n @ 10,70 IMAGE oBmp RESOURCE \"IN_DBFNO\" SIZE 20, 20 PIXEL OF oDlg \n @ 10,100 IMAGE oBmp RESOURCE \"IN_DBFYES\" SIZE 20, 20 PIXEL OF oDlg \n \n ACTIVATE DIALOG oDlg CENTERED \n \nRETURN NIL\n[/code:3qhujscw]\n\nRC:\n[code:3qhujscw]IN_DBFYES BITMAP \"BITMAPS\\\\IN_DBF_YES.BMP\" \nIN_DBFNO BITMAP \"BITMAPS\\\\IN_DBF_NO.BMP\" \n\nINSERT BITMAP \"BITMAPS\\\\INSERT.BMP\" \nCHANGE BITMAP \"BITMAPS\\\\CHANGE.BMP\"\n[/code:3qhujscw]\n\nTo download the source to build this test app, please download\n[url:3qhujscw]http://s194970364.onlinehome.us/Test_resource.zip[/url:3qhujscw]\n\nWe are puzzled why this works with a Borland compiled DL, and NOT with a Microsoft build DLL.\n\nCan someone confirm, or even better, is there a solution or bugfix for this? <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->\n\nThanks!\n\nPatrick Mast",
"time": "10:50",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nTry to write the resources this way:\n\nIN_DBFYES BITMAP \"BITMAPS/IN_DBF_YES.BMP\" \nIN_DBFNO BITMAP \"BITMAPS/IN_DBF_NO.BMP\" \n\nINSERT BITMAP \"BITMAPS/INSERT.BMP\" \nCHANGE BITMAP \"BITMAPS/CHANGE.BMP\"",
"time": "10:57",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nYou may also (binary) compare the RES files from Borland and Microsoft to check what the differences are",
"time": "11:00",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1pdkelzg]Patrick,\n\nTry to write the resources this way:\nIN_DBFYES BITMAP \"BITMAPS/IN_DBF_YES.BMP\" \nIN_DBFNO BITMAP \"BITMAPS/IN_DBF_NO.BMP\" \nINSERT BITMAP \"BITMAPS/INSERT.BMP\" \nCHANGE BITMAP \"BITMAPS/CHANGE.BMP\"[/quote:1pdkelzg]\nNo.. It does not fix it.\n\nPatrick",
"time": "12:07",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nHave you binary compared the two RES files ?",
"time": "12:16",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":h7xbpedk]Have you binary compared the two RES files ?[/quote:h7xbpedk]Yes, and they have a few bytes difference. You can download both BCC and MSVC build DLL, MAP, RC and RES from here:\n<!-- m --><a class=\"postlink\" href=\"http://s194970364.onlinehome.us/Test_resource_.dll.zip\">http://s194970364.onlinehome.us/Test_resource_.dll.zip</a><!-- m --> (32KB)\n\nThose RES files are binary files, so, I only \"See\" differences, WHAT they are, I have no clue <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\nI also tried to build the MSVC DLL with Resource Builder form <!-- m --><a class=\"postlink\" href=\"http://www.resource-builder.com\">http://www.resource-builder.com</a><!-- m --> but it has the same problem. So, it seems it's not the \"building\" itself that's the problem, but maybe the reading of the DLL by the EXE?\n\nPatrick",
"time": "12:22",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nHave you tried to place the Borland RES file into the Microsoft compatible DLL ?\n\nIf you open the RES files with PellesC, they look exactly the same except that Borland is using Dutch (Belgium) instead of English (United States)",
"time": "12:38",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":2oe6s5g3]Have you tried to place the Borland RES file into the Microsoft compatible DLL ?[/quote:2oe6s5g3]Yes, but problem stays the same.\n\n[quote:2oe6s5g3]If you open the RES files with PellesC, they look exactly the same except that Borland is using Dutch (Belgium) instead of English (United States)[/quote:2oe6s5g3]Ok. But since it also does not work with the RES file from Borland, it seems that it's not the RES file.\n\nDo you think that's the bug is in BUILDING the DLL, or maybe in the EXE READING the DLL? I seem to be thinking its the READING? \n\nPatrick",
"time": "12:48",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nI think the difference comes from building the DLL, as the DLL reading is performed by standard Windows API functions",
"time": "12:53",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\n\nPellesC IDE properly opens the Borland DLL, but fails opening the other DLL with error: \"user stopped resources enumeration\"",
"time": "12:55",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":3il5b73o]I think the difference comes from building the DLL, as the DLL reading is performed by standard Windows API functions[/quote:3il5b73o]Ok.\nNow, problem is, I build the MSVC Compatible Testdll with xHarbour Builder AND for test also with Resoure Builder, and they both show the same problem.\n\nAny more ideas?\n\nPatrick",
"time": "12:58",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Have you tried to build the DLL using MSVC ?",
"time": "13:00",
"topic": "Can not use resources with _ (Underscore)",
"username": "Antonio Linares"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2007-05-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":32p5v3py]Have you tried to build the DLL using MSVC ?[/quote:32p5v3py]It works OK when I build the DLL with Visual Studio 2005.\n\nPatrick",
"time": "14:03",
"topic": "Can not use resources with _ (Underscore)",
"username": "Patrick Mast"
}
] |
Can not use resources with _ (Underscore)
|
[
{
"date": "2008-09-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Can raw keyboard input be implemented?\r\n\r\nThe Idea is-\r\nYou have a multi monitor pc.\r\n1st execution of your application is displayed on monitor 1.\r\n2nd execution of your application is displayed on monitor 2.\r\n3rd execution of your application is displayed on monitor 3.\r\n4th execution of your application is displayed on monitor 4.\r\n5th execution of your application is displayed on monitor 5.\r\n6th execution of your application is displayed on monitor 6.\r\n\r\nThen each application executing could be assigned a keyboard to use. \r\n(Based on the keyboard device handle.)\r\n\r\nYou then have a 6 terminal application with only 1 pc and no network.\r\nThis would create big money savings for your end users.\r\n\r\nI found an article on The Code Project that shows how to do this.\r\nLink <!-- m --><a class=\"postlink\" href=\"http://www.codeproject.com/KB/system/rawinput.aspx\">http://www.codeproject.com/KB/system/rawinput.aspx</a><!-- m -->\r\n\r\nYou can download an install of the project from <!-- m --><a class=\"postlink\" href=\"http://trimpos.net/RawInput.zip\">http://trimpos.net/RawInput.zip</a><!-- m --> \r\nAnd install multiple keyboards on one pc and see the keyboard device handle change each time you press a key on the different keyboards.\r\n\r\nI have no idea where or how to implement in FiveWin / Xharbour applications any help would be appreciated.\r\n\r\nMike.\r\n\r\n\r\n[url][/url]",
"time": "00:17",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nIt doesn't look difficult to be implemented:\r\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms645590(VS.85\">http://msdn.microsoft.com/en-us/library/ms645590(VS.85</a><!-- m -->).aspx\r\n\r\nAs a start you could inherit a new Class TMyWindow FROM TWindow and redefine the Method HandleEvent() to process WM_INPUT messages, once the application has be registered to receive raw input messages, using RegisterRawInputDevices().\r\n\r\nJust a curiosity: If several users use the same computer, how will you control them from doing some tasks that may generate a conflict ? Or will you just allow them to use your application ?",
"time": "22:41",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio – I am hoping that when I implement this into an executable that it would only be active in that executable.\r\n\r\nCan anyone help with the dll32 function calls to user32.dll to process the raw keyboard calls. I have no idea where to start with this. Once I can see how to get the keyboards handle and the key pressed I will be off and running. If I can get this working I will post an example so that anyone can use.\r\nI found an article on The Code Project that shows how to do this. \r\nLink <!-- m --><a class=\"postlink\" href=\"http://www.codeproject.com/KB/system/rawinput.aspx\">http://www.codeproject.com/KB/system/rawinput.aspx</a><!-- m -->\r\n\r\nAny help would be greatly appreciated.\r\nThanks in advance.\r\nMike",
"time": "23:42",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nHere you have a first prototype. Actually it is just receiving the keyboard events. We need to find the flag for the mouse events too. \r\n\r\nClick on the window and then press some keyboard keys. You will hear \"beeps\" <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nThough this example is already workable, please notice that this is a work in progress:\r\n\r\nrawinput.prg\r\n[code:6ru4agp7]\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n MsgInfo( RegisterRawInputDevices( oWnd:hWnd ) )\n\n oWnd:Activate()\n\nreturn nil\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n MsgBeep() // ok, we are receiving WM_INPUT messages\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid;\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid.usUsagePage = 0x01;\n rid.usUsage = 0x06;\n rid.dwFlags = RIDEV_INPUTSINK;\n rid.hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( &rid, 1, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\n#pragma ENDDUMP\n[/code:6ru4agp7]",
"time": "12:21",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This new version manages the mouse and the keyboard. Please notice that it will beep like crazy because it detects all the mouse movements <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nNext we need to select the events that are just for our window:\r\n\r\nrawinput.prg\r\n[code:16994jgq]\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n MsgInfo( RegisterRawInputDevices( oWnd:hWnd ) )\n\n oWnd:Activate()\n\nreturn nil\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n MsgBeep() // ok, we are receiving WM_INPUT messages\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\n#pragma ENDDUMP\n[/code:16994jgq]",
"time": "12:38",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wow that’s great I can’t thank you enough.\r\nI was out of the office today and was very excited to see a response from you.\r\nI don’t know if I understand correctly how this will work.\r\nWill it be that we filter the device id for a particular keyboard and mouse for the active application?(one on each screen)\r\nI have already put setups in my application to define the monitor to be displayed on up to 6 monitors.\r\nAnyway I feel that this would be such a great contribution to FiveWin that I would like to offer to pay you for your time working on this, please bill me for your time.\r\nThank You Very Very Much\r\nMike S. Buckler",
"time": "00:47",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "A new version implementing GETRAWINPUTDATA():\r\n[code:gciwes64]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n MsgInfo( RegisterRawInputDevices( oWnd:hWnd ) )\n\n oWnd:Activate()\n\nreturn nil\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n MsgBeep() // ok, we are receiving WM_INPUT messages\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n\n#define RID_INPUT 0x10000003\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n \n FreeLibrary( hUser32 );\n} \n\n#pragma ENDDUMP\n[/code:gciwes64]\r\nNext we are going to list the available HIDs (Human Interface Devices) to select the ones that we want to use from our applications.",
"time": "23:50",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for your time Antonio\r\nMike.",
"time": "00:12",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nLets see if we get a good and well designed Raw Input implementation, as simple as possible <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nI am still reading a lot about this interesting Windows API to find the right way to do it and make it real easy to be used <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "00:16",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This version already list the available HIDs.\r\n\r\nMike, please connect several keyboards and mouses and lets see how they look like in the list, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n[code:1gfnpu50]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local aHIDevices := GetRawInputDeviceList()\n \n MsgSelect( aHIDevices, \"\", \"Human Interface Devices\" )\n \n /*\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n MsgInfo( RegisterRawInputDevices( oWnd:hWnd ) )\n\n oWnd:Activate()\n */\n\nreturn nil\n\nfunction MsgSelect( aItems, cValue, cTitle )\n\n local oDlg\n\n DEFAULT cTitle := \"Please, select\"\n\n DEFINE DIALOG oDlg FROM 5,10 TO 24, 80 TITLE cTitle\n\n @ 0.5, 0.7 LISTBOX cValue ITEMS aItems SIZE 268, 110 OF oDlg\n\n @ 7, 14 BUTTON \"&OK\" OF oDlg SIZE 40, 12 ;\n ACTION oDlg:End() DEFAULT\n\n @ 7, 24 BUTTON \"&Cancel\" OF oDlg SIZE 40, 12 ;\n ACTION ( cValue := nil, oDlg:End() )\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn cValue\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n MsgBeep() // ok, we are receiving WM_INPUT messages\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n#define RID_INPUT 0x10000003\n#define RIDI_DEVICENAME 0x20000007\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n \n FreeLibrary( hUser32 );\n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n FreeLibrary( hUser32 );\n}\n\n#pragma ENDDUMP\n[/code:1gfnpu50]",
"time": "01:12",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Keyboard and Mouse devices seem to use KBD and MOU in their names:\r\n[url=http://imageshack.us:3070p13h][img:3070p13h]http://img529.imageshack.us/img529/3865/hidsbz0.jpg[/img:3070p13h][/url:3070p13h]",
"time": "01:16",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here you have the EXE and PRG for those of you that want to try it on your computers:\r\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/148687954/rawinput.zip.html\">http://rapidshare.com/files/148687954/rawinput.zip.html</a><!-- m -->",
"time": "01:19",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think that the easiest implementation would be something like this <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nSET KEYBOARD TO 1\r\nSET MOUSE TO 1\r\n\r\nFor another application:\r\n\r\nSET KEYBOARD TO 2\r\nSET MOUSE TO 2\r\n\r\nor even simpler: The application automatically selects the next available device (?)",
"time": "01:29",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "A new version that counts the number of mouses and returns the handle for each one.\r\n[code:23f0uu99]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local nMouses := GetRawMouses(), n\n\n MsgInfo( \"Number of available mouses: \" + AllTrim( Str( nMouses ) ) )\n \n for n = 1 to nMouses\n MsgInfo( GetRawMouse( n ), \"Mouse \" + AllTrim( Str( n ) ) )\n next \n \n /*\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n MsgInfo( RegisterRawInputDevices( oWnd:hWnd ) )\n\n oWnd:Activate()\n */\n\nreturn nil\n\nfunction MsgSelect( aItems, cValue, cTitle )\n\n local oDlg\n\n DEFAULT cTitle := \"Please, select\"\n\n DEFINE DIALOG oDlg FROM 5,10 TO 24, 80 TITLE cTitle\n\n @ 0.5, 0.7 LISTBOX cValue ITEMS aItems SIZE 268, 110 OF oDlg\n\n @ 7, 14 BUTTON \"&OK\" OF oDlg SIZE 40, 12 ;\n ACTION oDlg:End() DEFAULT\n\n @ 7, 24 BUTTON \"&Cancel\" OF oDlg SIZE 40, 12 ;\n ACTION ( cValue := nil, oDlg:End() )\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn cValue\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n MsgBeep() // ok, we are receiving WM_INPUT messages\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n#define RID_INPUT 0x10000003\n#define RIDI_DEVICENAME 0x20000007\n#define RIDI_DEVICEINFO 0x2000000b\n\n#define RIM_TYPEMOUSE 0\n#define RIM_TYPEKEYBOARD 1\n#define RIM_TYPEHID 2\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef struct tagRID_DEVICE_INFO_MOUSE {\n DWORD dwId;\n DWORD dwNumberOfButtons;\n DWORD dwSampleRate;\n BOOL fHasHorizontalWheel;\n} RID_DEVICE_INFO_MOUSE, * PRID_DEVICE_INFO_MOUSE;\n\ntypedef struct tagRID_DEVICE_INFO_KEYBOARD {\n DWORD dwType;\n DWORD dwSubType;\n DWORD dwKeyboardMode;\n DWORD dwNumberOfFunctionKeys;\n DWORD dwNumberOfIndicators;\n DWORD dwNumberOfKeysTotal;\n} RID_DEVICE_INFO_KEYBOARD, * PRID_DEVICE_INFO_KEYBOARD;\n\ntypedef struct tagRID_DEVICE_INFO_HID {\n DWORD dwVendorId;\n DWORD dwProductId;\n DWORD dwVersionNumber;\n USHORT usUsagePage;\n USHORT usUsage;\n} RID_DEVICE_INFO_HID, * PRID_DEVICE_INFO_HID;\n\ntypedef struct tagRID_DEVICE_INFO { \n DWORD cbSize; \n DWORD dwType; \n union { \n RID_DEVICE_INFO_MOUSE mouse; \n RID_DEVICE_INFO_KEYBOARD keyboard; \n RID_DEVICE_INFO_HID hid; \n };\n} RID_DEVICE_INFO, * PRID_DEVICE_INFO, * LPRID_DEVICE_INFO;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n \n FreeLibrary( hUser32 );\n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWMOUSE ) // nMouse --> hDevice\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n UINT uiMouses = 0;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n UINT uiMouse = hb_parnl( 1 );\n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n {\n if( ++uiMouses == uiMouse )\n {\n hb_retnl( ( unsigned long ) pRawInputDeviceList[ ui ].hDevice );\n hb_xfree( ( void * ) pRawInputDeviceList );\n return;\n } \n } \n } \n \n hb_retnl( 0 );\n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWMOUSES ) // --> nMouses\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n UINT uiMouses = 0;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n uiMouses++;\n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n hb_retnl( --uiMouses ); // Windows reports an extra mouse (?)\n FreeLibrary( hUser32 );\n}\n\n#pragma ENDDUMP\n[/code:23f0uu99]\r\nHere you have the source code and EXE to test it:\r\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/148757037/rawinput.zip.html\">http://rapidshare.com/files/148757037/rawinput.zip.html</a><!-- m -->",
"time": "08:51",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In this new version we can select the mouse to use, though we are not processing its events yet:\r\n[code:zqjg23n6]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw Input test\" )\n \n oWnd:hMouse = GetRawMouse( 2 ) // Use mouse 2 only\n \n RegisterRawInputDevices( oWnd:hWnd )\n\n oWnd:Activate()\n\nreturn nil\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n \n DATA hMouse // handle of the mouse to use\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n if nMsg == WM_INPUT\n if RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse\n // MsgBeep()\n LogFile( \"rawinput.txt\", { RawIsMouse( nLParam ), RawGetHandle( nLParam ), ::hMouse } )\n endif \n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_INPUTSINK 0x00000100\n#define RID_INPUT 0x10000003\n#define RID_HEADER 0x10000005\n#define RIDI_DEVICENAME 0x20000007\n#define RIDI_DEVICEINFO 0x2000000b\n\n#define RIM_TYPEMOUSE 0\n#define RIM_TYPEKEYBOARD 1\n#define RIM_TYPEHID 2\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, * PRAWMOUSE, * LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef struct tagRID_DEVICE_INFO_MOUSE {\n DWORD dwId;\n DWORD dwNumberOfButtons;\n DWORD dwSampleRate;\n BOOL fHasHorizontalWheel;\n} RID_DEVICE_INFO_MOUSE, * PRID_DEVICE_INFO_MOUSE;\n\ntypedef struct tagRID_DEVICE_INFO_KEYBOARD {\n DWORD dwType;\n DWORD dwSubType;\n DWORD dwKeyboardMode;\n DWORD dwNumberOfFunctionKeys;\n DWORD dwNumberOfIndicators;\n DWORD dwNumberOfKeysTotal;\n} RID_DEVICE_INFO_KEYBOARD, * PRID_DEVICE_INFO_KEYBOARD;\n\ntypedef struct tagRID_DEVICE_INFO_HID {\n DWORD dwVendorId;\n DWORD dwProductId;\n DWORD dwVersionNumber;\n USHORT usUsagePage;\n USHORT usUsage;\n} RID_DEVICE_INFO_HID, * PRID_DEVICE_INFO_HID;\n\ntypedef struct tagRID_DEVICE_INFO { \n DWORD cbSize; \n DWORD dwType; \n union { \n RID_DEVICE_INFO_MOUSE mouse; \n RID_DEVICE_INFO_KEYBOARD keyboard; \n RID_DEVICE_INFO_HID hid; \n };\n} RID_DEVICE_INFO, * PRID_DEVICE_INFO, * LPRID_DEVICE_INFO;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n \n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n \n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n \n FreeLibrary( hUser32 );\n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWMOUSE ) // nMouse --> hDevice\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n UINT uiMouses = 0;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n UINT uiMouse = hb_parnl( 1 );\n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n {\n if( ++uiMouses == uiMouse )\n {\n hb_retnl( ( unsigned long ) pRawInputDeviceList[ ui ].hDevice );\n hb_xfree( ( void * ) pRawInputDeviceList );\n return;\n } \n } \n } \n \n hb_retnl( 0 );\n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( GETRAWMOUSES ) // --> nMouses\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\n PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\n UINT uiMouses = 0;\n\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n uiMouses++;\n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n hb_retnl( --uiMouses ); // Windows reports an extra mouse (?)\n FreeLibrary( hUser32 );\n}\n\nHB_FUNC( RAWISMOUSE )\n{\n LPRAWINPUT pri = ( LPRAWINPUT ) hb_parnl( 1 );\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_HEADER, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_HEADER, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n hb_retl( ( ( PRAWINPUTHEADER ) lpb )->dwType == RIM_TYPEMOUSE );\n hb_xfree( ( void * ) lpb );\n \n FreeLibrary( hUser32 );\n} \n\nHB_FUNC( RAWGETHANDLE )\n{\n LPRAWINPUT pri = ( LPRAWINPUT ) hb_parnl( 1 );\n UINT dwSize;\n LPBYTE lpb;\n PGETRAWINPUTDATA pGetRawInputData;\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_HEADER, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_HEADER, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n hb_retnl( ( unsigned long ) ( ( PRAWINPUTHEADER ) lpb )->hDevice );\n hb_xfree( ( void * ) lpb );\n \n FreeLibrary( hUser32 );\n} \n\n#pragma ENDDUMP\n[/code:zqjg23n6]",
"time": "10:21",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Olá Antonio,\r\n\r\nÉ possível saber:\r\n\r\n1) Qual objeto esta focado na WM_INPUT ?\r\n2) Se estou usando o teclado, qual tecla foi pressionada.\r\n3) Se estou usando o mouse, em qual objeto cliquei.\r\n\r\nObrigado,\r\n\r\nRossine.",
"time": "18:02",
"topic": "Can raw keyboard input be implemented????",
"username": "Rossine"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rossine,\r\n\r\nWe are doing many tests to find the right way to use the Raw Input API. \r\n\r\nWe think there is a mistake in Microsoft docs regarding DefRawInputProc():\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms645594(VS.85\">http://msdn.microsoft.com/en-us/library/ms645594(VS.85</a><!-- m -->).aspx\r\n\r\nMicrosoft docs says: \"DefRawInputProc is called with the same parameters received by the window procedure.\" But thats not true according to the function prototype:\r\n[code:31a57qj3]\nLRESULT DefRawInputProc( \n PRAWINPUT *paRawInput,\n INT nInput,\n UINT cbSizeHeader\n);\n[/code:31a57qj3]\nThose are not the parameters that a window procedure receives. So we need to find the right way to call DefRawInputProc().\n\nThis is our most recent code. You will find some answers to your questions in it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n[code:31a57qj3]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd1 := TMyWindow():New(), oWnd2 := TMyWindow():New()\n\n oWnd1:SetText( \"Mouse 1\" )\n oWnd2:SetText( \"Mouse 2\" )\n \n oWnd1:hMouse = GetRawMouse( 1 ) // Use mouse 1 only\n oWnd2:hMouse = GetRawMouse( 2 ) // Use mouse 2 only\n \n RegisterRawInputDevices( oWnd1:hWnd )\n RegisterRawInputDevices( oWnd2:hWnd )\n\n WndTop( oWnd2:hWnd, 350 )\n oWnd2:Show()\n oWnd2:bLClicked = { || MsgInfo( \"mouse 2 click\" ) }\n\n ACTIVATE WINDOW oWnd1 ;\n ON CLICK MsgInfo( \"mouse 1 click\" )\n\nreturn nil\n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n \n DATA hMouse // handle of the mouse to use\n DATA lProcessMouse INIT .F.\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n local nButtons\n\n if nMsg == WM_INPUT\n ::SetText( Str( RawGetHandle( nLParam ) ) )\n ::lProcessMouse = RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse\n return DefRawInputProc( nLParam )\n endif \n \n if nMsg == WM_LBUTTONDOWN .and. ! ::lProcessMouse\n return nil\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_NOLEGACY 0x00000030\n#define RIDEV_INPUTSINK 0x00000100\n\n#define RID_INPUT 0x10000003\n#define RID_HEADER 0x10000005\n\n#define RIDI_DEVICENAME 0x20000007\n#define RIDI_DEVICEINFO 0x2000000b\n\n#define RIM_TYPEMOUSE 0\n#define RIM_TYPEKEYBOARD 1\n#define RIM_TYPEHID 2\n\n#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 // Left Button changed to down.\n#define RI_MOUSE_LEFT_BUTTON_UP 0x0002 // Left Button changed to up.\n#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 // Right Button changed to down.\n#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 // Right Button changed to up.\n#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 // Middle Button changed to down.\n#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 // Middle Button changed to up.\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, * PRAWMOUSE, * LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef struct tagRID_DEVICE_INFO_MOUSE {\n DWORD dwId;\n DWORD dwNumberOfButtons;\n DWORD dwSampleRate;\n BOOL fHasHorizontalWheel;\n} RID_DEVICE_INFO_MOUSE, * PRID_DEVICE_INFO_MOUSE;\n\ntypedef struct tagRID_DEVICE_INFO_KEYBOARD {\n DWORD dwType;\n DWORD dwSubType;\n DWORD dwKeyboardMode;\n DWORD dwNumberOfFunctionKeys;\n DWORD dwNumberOfIndicators;\n DWORD dwNumberOfKeysTotal;\n} RID_DEVICE_INFO_KEYBOARD, * PRID_DEVICE_INFO_KEYBOARD;\n\ntypedef struct tagRID_DEVICE_INFO_HID {\n DWORD dwVendorId;\n DWORD dwProductId;\n DWORD dwVersionNumber;\n USHORT usUsagePage;\n USHORT usUsage;\n} RID_DEVICE_INFO_HID, * PRID_DEVICE_INFO_HID;\n\ntypedef struct tagRID_DEVICE_INFO { \n DWORD cbSize; \n DWORD dwType; \n union { \n RID_DEVICE_INFO_MOUSE mouse; \n RID_DEVICE_INFO_KEYBOARD keyboard; \n RID_DEVICE_INFO_HID hid; \n };\n} RID_DEVICE_INFO, * PRID_DEVICE_INFO, * LPRID_DEVICE_INFO;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\ntypedef LRESULT WINAPI ( * PDEFRAWINPUTPROC ) ( \n PRAWINPUT * paRawInput,\n INT nInput,\n UINT cbSizeHeader\n);\n\nstatic PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\nstatic PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\nstatic PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\nstatic PGETRAWINPUTDATA pGetRawInputData;\nstatic PDEFRAWINPUTPROC pDefRawInputProc;\n\nstatic void RawInit( void )\n{\n static BOOL bInit = FALSE;\n \n if( ! bInit )\n {\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n pDefRawInputProc = ( PDEFRAWINPUTPROC ) GetProcAddress( hUser32, \"DefRawInputProc\" );\n \n FreeLibrary( hUser32 );\n bInit = TRUE;\n } \n} \n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n\n RawInit();\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK; // RIDEV_NOLEGACY;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit();\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSE ) // nMouse --> hDevice\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n UINT uiMouses = 0;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n UINT uiMouse = hb_parnl( 1 );\n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n {\n if( ++uiMouses == uiMouse )\n {\n hb_retnl( ( unsigned long ) pRawInputDeviceList[ ui ].hDevice );\n hb_xfree( ( void * ) pRawInputDeviceList );\n return;\n } \n } \n } \n \n hb_retnl( 0 );\n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSES ) // --> nMouses\n{\n UINT nDevices, uiMouses = 0;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n uiMouses++;\n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n hb_retnl( --uiMouses ); // Windows reports an extra mouse (?)\n}\n\nHB_FUNC( RAWISMOUSE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retl( ( ( PRAWINPUT ) lpb )->header.dwType == RIM_TYPEMOUSE );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWGETHANDLE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->header.hDevice );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWBUTTONS )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->data.mouse.usButtonFlags );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( DEFRAWINPUTPROC )\n{\n LPRAWINPUT pri = ( LPRAWINPUT ) hb_parnl( 1 );\n\n RawInit();\n hb_retnl( ( unsigned long ) pDefRawInputProc( &pri, 1, sizeof( RAWINPUTHEADER ) ) );\n} \n\n#pragma ENDDUMP\n[/code:31a57qj3]",
"time": "18:48",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is the most recent PRG and EXE:\r\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/148882254/rawinput.zip.html\">http://rapidshare.com/files/148882254/rawinput.zip.html</a><!-- m -->\r\n\r\nWe need to properly call DefRawInputProc() or the first window does not receive WM_INPUT messages.",
"time": "18:52",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is a better example that lets you select the mouse to use. Please connect several mouses to your computer and select the one to use from the main menu:\r\n\r\nPRG and EXE here:\r\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/148918411/rawinput.zip.html\">http://rapidshare.com/files/148918411/rawinput.zip.html</a><!-- m -->\r\n[code:2z72b8hb]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw API test\" )\n oWnd:SetMenu( BuildMenu( oWnd ) )\n \n oWnd:hMouse = GetRawMouse( 1 )\n \n RegisterRawInputDevices( oWnd:hWnd )\n\n SET MESSAGE OF oWnd TO \"Click on the window to test it\" 2007\n\n ACTIVATE WINDOW oWnd ;\n ON CLICK MsgInfo( \"mouse click\" )\n\nreturn nil\n\nfunction BuildMenu( oWnd )\n\n local oMenu, oMit1, oMit2, oMit3\n \n MENU oMenu\n MENUITEM \"Select Mouse\"\n MENU\n MENUITEM oMit1 PROMPT \"Mouse 1\" CHECKED ACTION ( oWnd:hMouse := GetRawMouse( 1 ), oMit1:SetCheck( .T. ), oMit2:SetCheck( .F. ), oMit3:SetCheck( .F. ) ) \n MENUITEM oMit2 PROMPT \"Mouse 2\" ACTION ( oWnd:hMouse := GetRawMouse( 2 ), oMit1:SetCheck( .F. ), oMit2:SetCheck( .T. ), oMit3:SetCheck( .F. ) ) \n MENUITEM oMit3 PROMPT \"Mouse 3\" ACTION ( oWnd:hMouse := GetRawMouse( 3 ), oMit1:SetCheck( .F. ), oMit2:SetCheck( .F. ), oMit3:SetCheck( .T. ) ) \n SEPARATOR\n MENUITEM \"Exit\" ACTION oWnd:End()\n ENDMENU\n ENDMENU\n \nreturn oMenu \n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n \n DATA hMouse // handle of the mouse to use\n DATA lProcessMouse INIT .F.\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n local nButtons\n\n if nMsg == WM_INPUT\n ::lProcessMouse = RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse\n endif \n \n if nMsg == WM_LBUTTONDOWN .and. ! ::lProcessMouse\n return nil\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_NOLEGACY 0x00000030\n#define RIDEV_INPUTSINK 0x00000100\n\n#define RID_INPUT 0x10000003\n#define RID_HEADER 0x10000005\n\n#define RIDI_DEVICENAME 0x20000007\n#define RIDI_DEVICEINFO 0x2000000b\n\n#define RIM_TYPEMOUSE 0\n#define RIM_TYPEKEYBOARD 1\n#define RIM_TYPEHID 2\n\n#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 // Left Button changed to down.\n#define RI_MOUSE_LEFT_BUTTON_UP 0x0002 // Left Button changed to up.\n#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 // Right Button changed to down.\n#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 // Right Button changed to up.\n#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 // Middle Button changed to down.\n#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 // Middle Button changed to up.\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, * PRAWMOUSE, * LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef struct tagRID_DEVICE_INFO_MOUSE {\n DWORD dwId;\n DWORD dwNumberOfButtons;\n DWORD dwSampleRate;\n BOOL fHasHorizontalWheel;\n} RID_DEVICE_INFO_MOUSE, * PRID_DEVICE_INFO_MOUSE;\n\ntypedef struct tagRID_DEVICE_INFO_KEYBOARD {\n DWORD dwType;\n DWORD dwSubType;\n DWORD dwKeyboardMode;\n DWORD dwNumberOfFunctionKeys;\n DWORD dwNumberOfIndicators;\n DWORD dwNumberOfKeysTotal;\n} RID_DEVICE_INFO_KEYBOARD, * PRID_DEVICE_INFO_KEYBOARD;\n\ntypedef struct tagRID_DEVICE_INFO_HID {\n DWORD dwVendorId;\n DWORD dwProductId;\n DWORD dwVersionNumber;\n USHORT usUsagePage;\n USHORT usUsage;\n} RID_DEVICE_INFO_HID, * PRID_DEVICE_INFO_HID;\n\ntypedef struct tagRID_DEVICE_INFO { \n DWORD cbSize; \n DWORD dwType; \n union { \n RID_DEVICE_INFO_MOUSE mouse; \n RID_DEVICE_INFO_KEYBOARD keyboard; \n RID_DEVICE_INFO_HID hid; \n };\n} RID_DEVICE_INFO, * PRID_DEVICE_INFO, * LPRID_DEVICE_INFO;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\ntypedef LRESULT WINAPI ( * PDEFRAWINPUTPROC ) ( \n PRAWINPUT * paRawInput,\n INT nInput,\n UINT cbSizeHeader\n);\n\nstatic PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\nstatic PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\nstatic PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\nstatic PGETRAWINPUTDATA pGetRawInputData;\nstatic PDEFRAWINPUTPROC pDefRawInputProc;\n\nstatic void RawInit( void )\n{\n static BOOL bInit = FALSE;\n \n if( ! bInit )\n {\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n pDefRawInputProc = ( PDEFRAWINPUTPROC ) GetProcAddress( hUser32, \"DefRawInputProc\" );\n \n FreeLibrary( hUser32 );\n bInit = TRUE;\n } \n} \n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n\n RawInit();\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK; // RIDEV_NOLEGACY;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit();\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSE ) // nMouse --> hDevice\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n UINT uiMouses = 0;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n UINT uiMouse = hb_parnl( 1 );\n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n {\n if( ++uiMouses == uiMouse )\n {\n hb_retnl( ( unsigned long ) pRawInputDeviceList[ ui ].hDevice );\n hb_xfree( ( void * ) pRawInputDeviceList );\n return;\n } \n } \n } \n \n hb_retnl( 0 );\n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSES ) // --> nMouses\n{\n UINT nDevices, uiMouses = 0;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n uiMouses++;\n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n hb_retnl( --uiMouses ); // Windows reports an extra mouse (?)\n}\n\nHB_FUNC( RAWISMOUSE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retl( ( ( PRAWINPUT ) lpb )->header.dwType == RIM_TYPEMOUSE );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWGETHANDLE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->header.hDevice );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWBUTTONS )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->data.mouse.usButtonFlags );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( DEFRAWINPUTPROC )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n pDefRawInputProc( ( LPRAWINPUT * ) &lpb, 1, sizeof( RAWINPUTHEADER ) );\n hb_xfree( ( void * ) lpb );\n} \n\n#pragma ENDDUMP\n[/code:2z72b8hb]",
"time": "21:23",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "First Off Great Work Antonio\r\nThis is what I noticed.\r\n\r\nI added to METHOD HandleEvent()\r\nif nMsg == WM_MOUSEMOVE \r\n if RawGetHandle( nLParam ) == ::hMouse \r\n ::MouseMove( nHiWord( nLParam ), nLoWord( nLParam ), nWParam )\r\n return nil\r\n else\r\n return nil\r\n endif\r\nendif\r\n\r\nAnd also added to the window-\r\noWnd:OnMouseMove:= {|SELF,X,Y,FLAGS|(oWnd:SetText( \"Raw API test Mouse at\"+str(x)+\" \"+str(y) ) ,oWnd:refresh())}\r\n\r\nWhen you move the mouse that is not active the mouse moves.\r\nI there a way to fake a mouse that is only displayed on a specific monitor?\r\nThanks Mike",
"time": "01:40",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nLet me explain you what we have discovered so far:\r\n\r\n1) When we use RIDEV_INPUTSINK when we call REGISTERRAWINPUTDEVICES() then we receive standard Windows mouse and keyboard messages besides the WM_INPUT messages.\r\n\r\n2) If we use RIDEV_NOLEGACY instead of RIDEV_INPUTSINK, then Windows does not send any mouse or keyboard message at all, so it is our responsability to translate WM_INPUT messages into the WM_(mouse)... and WM_(keyb)... equivalents ones.\r\n\r\nIf using 2) then we can not directly call the FWH methods as there are many processes (i.e. when you drag and move a window) that have to be managed by Windows. So basically we have to do: SendMessage( ::hWnd, WM_(proper message), proper params... )\r\n\r\nOn our first tests the 2) seems more complex to be implemented, but obviously we will have full control on what it is allowed and what we don't allow.",
"time": "09:31",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio what are your thoughts on how to move forward?\r\nMike",
"time": "00:36",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nI think that we have to go for the option 2) to have full control of the mouse and keyboard",
"time": "00:59",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio if I knew how to do c programming I would jump right in there and help you. I believe that the hardware dollar savings that an end user could realize, would make our FiveWin applications really shine over our competition.\r\nThanks Again \r\nMike",
"time": "01:19",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-09-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio,\r\n\r\nI find this important and very interesting matter.\r\n\r\nCongratulations,\r\n\r\nRossine.",
"time": "15:10",
"topic": "Can raw keyboard input be implemented????",
"username": "Rossine"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In this example we try to analize all mouse input that we receive. If you run this example you will see that we get all the mouse activity. We need to find a way to select just the messages for the used window:\r\n[code:t67evavg]\n// Windows Raw Input API support demo, (c) FiveTech Software\n\n#include \"FiveWin.ch\"\n\n#define WM_INPUT 0x00FF\n\n#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 // Left Button changed to down.\n#define RI_MOUSE_LEFT_BUTTON_UP 0x0002 // Left Button changed to up.\n#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 // Right Button changed to down.\n#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 // Right Button changed to up.\n#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 // Middle Button changed to down.\n#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 // Middle Button changed to up.\n\nfunction Main()\n\n local oWnd := TMyWindow():New()\n\n oWnd:SetText( \"Raw API test\" )\n oWnd:SetMenu( BuildMenu( oWnd ) )\n \n oWnd:hMouse = GetRawMouse( 1 ) // First mouse is not valid\n \n RegisterRawInputDevices( oWnd:hWnd )\n\n SET MESSAGE OF oWnd TO \"Click on the window to test it\" 2007\n\n ACTIVATE WINDOW oWnd ;\n ON CLICK MsgInfo( \"mouse click\" )\n\nreturn nil\n\nfunction BuildMenu( oWnd )\n\n local oMenu, oMit1, oMit2, oMit3\n \n MENU oMenu\n MENUITEM \"Select Mouse\"\n MENU\n MENUITEM oMit1 PROMPT \"Mouse 1\" CHECKED ACTION ( oWnd:hMouse := GetRawMouse( 1 ), oMit1:SetCheck( .T. ), oMit2:SetCheck( .F. ), oMit3:SetCheck( .F. ) ) \n MENUITEM oMit2 PROMPT \"Mouse 2\" ACTION ( oWnd:hMouse := GetRawMouse( 2 ), oMit1:SetCheck( .F. ), oMit2:SetCheck( .T. ), oMit3:SetCheck( .F. ) ) \n MENUITEM oMit3 PROMPT \"Mouse 3\" ACTION ( oWnd:hMouse := GetRawMouse( 3 ), oMit1:SetCheck( .F. ), oMit2:SetCheck( .F. ), oMit3:SetCheck( .T. ) ) \n SEPARATOR\n MENUITEM \"Exit\" ACTION oWnd:End()\n ENDMENU\n ENDMENU\n \nreturn oMenu \n\nCLASS TMyWindow FROM TWindow\n\n CLASSDATA lRegistered\n \n DATA hMouse // handle of the mouse to use\n DATA lProcessMouse INIT .F.\n\n METHOD HandleEvent( nMsg, nWParam, nLParam ) \n\nENDCLASS\n\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TMyWindow\n\n local nButtons\n\n if nMsg == WM_INPUT\n // ::lProcessMouse = RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse\n if RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse\n nButtons = RawButtons( nLParam )\n do case \n case nAnd( nButtons, RI_MOUSE_LEFT_BUTTON_DOWN ) == RI_MOUSE_LEFT_BUTTON_DOWN\n MsgInfo( \"Left button down\" )\n\n endcase \n endif \n endif \n \n if nMsg == WM_LBUTTONDOWN .and. ! ::lProcessMouse\n return nil\n endif \n\nreturn Super:HandleEvent( nMsg, nWParam, nLParam )\n\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <windows.h>\n\n#define RIDEV_NOLEGACY 0x00000030\n#define RIDEV_INPUTSINK 0x00000100\n\n#define RID_INPUT 0x10000003\n#define RID_HEADER 0x10000005\n\n#define RIDI_DEVICENAME 0x20000007\n#define RIDI_DEVICEINFO 0x2000000b\n\n#define RIM_TYPEMOUSE 0\n#define RIM_TYPEKEYBOARD 1\n#define RIM_TYPEHID 2\n\n#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001 // Left Button changed to down.\n#define RI_MOUSE_LEFT_BUTTON_UP 0x0002 // Left Button changed to up.\n#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004 // Right Button changed to down.\n#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008 // Right Button changed to up.\n#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010 // Middle Button changed to down.\n#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020 // Middle Button changed to up.\n\ntypedef struct tagRAWINPUTDEVICE \n{\n USHORT usUsagePage;\n USHORT usUsage;\n DWORD dwFlags;\n HWND hwndTarget;\n} RAWINPUTDEVICE, * PRAWINPUTDEVICE, * LPRAWINPUTDEVICE;\n\ntypedef BOOL WINAPI ( * PREGISTERRAWINPUTDEVICES ) ( \n PRAWINPUTDEVICE pRawInputDevices,\n UINT uiNumDevices,\n UINT cbSize\n);\n\ntypedef struct tagRAWINPUTHEADER {\n DWORD dwType;\n DWORD dwSize;\n HANDLE hDevice;\n WPARAM wParam;\n} RAWINPUTHEADER, * PRAWINPUTHEADER;\n\ntypedef struct tagRAWMOUSE { \n USHORT usFlags; \n union {\n ULONG ulButtons;\n struct {\n USHORT usButtonFlags;\n USHORT usButtonData;\n };\n };\n ULONG ulRawButtons;\n LONG lLastX;\n LONG lLastY;\n ULONG ulExtraInformation;\n} RAWMOUSE, * PRAWMOUSE, * LPRAWMOUSE;\n\ntypedef struct tagRAWKEYBOARD {\n USHORT MakeCode;\n USHORT Flags;\n USHORT Reserved;\n USHORT VKey;\n UINT Message;\n ULONG ExtraInformation;\n} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD;\n\ntypedef struct tagRAWHID {\n DWORD dwSizeHid;\n DWORD dwCount;\n BYTE bRawData;\n} RAWHID, **LPRAWHID;\n\ntypedef struct tagRAWINPUT { \n RAWINPUTHEADER header; \n union {\n RAWMOUSE mouse; \n RAWKEYBOARD keyboard; \n RAWHID hid; \n } data;\n} RAWINPUT, * PRAWINPUT, * LPRAWINPUT;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDATA ) ( \n LPRAWINPUT hRawInput,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize,\n UINT cbSizeHeader\n);\n\ntypedef struct tagRAWINPUTDEVICELIST {\n HANDLE hDevice;\n DWORD dwType;\n} RAWINPUTDEVICELIST, * PRAWINPUTDEVICELIST;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICELIST ) ( \n PRAWINPUTDEVICELIST pRawInputDeviceList,\n PUINT puiNumDevices,\n UINT cbSize \n);\n\ntypedef struct tagRID_DEVICE_INFO_MOUSE {\n DWORD dwId;\n DWORD dwNumberOfButtons;\n DWORD dwSampleRate;\n BOOL fHasHorizontalWheel;\n} RID_DEVICE_INFO_MOUSE, * PRID_DEVICE_INFO_MOUSE;\n\ntypedef struct tagRID_DEVICE_INFO_KEYBOARD {\n DWORD dwType;\n DWORD dwSubType;\n DWORD dwKeyboardMode;\n DWORD dwNumberOfFunctionKeys;\n DWORD dwNumberOfIndicators;\n DWORD dwNumberOfKeysTotal;\n} RID_DEVICE_INFO_KEYBOARD, * PRID_DEVICE_INFO_KEYBOARD;\n\ntypedef struct tagRID_DEVICE_INFO_HID {\n DWORD dwVendorId;\n DWORD dwProductId;\n DWORD dwVersionNumber;\n USHORT usUsagePage;\n USHORT usUsage;\n} RID_DEVICE_INFO_HID, * PRID_DEVICE_INFO_HID;\n\ntypedef struct tagRID_DEVICE_INFO { \n DWORD cbSize; \n DWORD dwType; \n union { \n RID_DEVICE_INFO_MOUSE mouse; \n RID_DEVICE_INFO_KEYBOARD keyboard; \n RID_DEVICE_INFO_HID hid; \n };\n} RID_DEVICE_INFO, * PRID_DEVICE_INFO, * LPRID_DEVICE_INFO;\n\ntypedef UINT WINAPI ( * PGETRAWINPUTDEVICEINFO ) ( \n HANDLE hDevice,\n UINT uiCommand,\n LPVOID pData,\n PUINT pcbSize\n);\n\ntypedef LRESULT WINAPI ( * PDEFRAWINPUTPROC ) ( \n PRAWINPUT * paRawInput,\n INT nInput,\n UINT cbSizeHeader\n);\n\nstatic PREGISTERRAWINPUTDEVICES pRegisterRawInputDevices;\nstatic PGETRAWINPUTDEVICELIST pGetRawInputDeviceList;\nstatic PGETRAWINPUTDEVICEINFO pGetRawInputDeviceInfo;\nstatic PGETRAWINPUTDATA pGetRawInputData;\nstatic PDEFRAWINPUTPROC pDefRawInputProc;\n\nstatic void RawInit( void )\n{\n static BOOL bInit = FALSE;\n \n if( ! bInit )\n {\n HINSTANCE hUser32 = LoadLibrary( \"user32.dll\" );\n\n pRegisterRawInputDevices = ( PREGISTERRAWINPUTDEVICES ) GetProcAddress( hUser32, \"RegisterRawInputDevices\" );\n pGetRawInputDeviceList = ( PGETRAWINPUTDEVICELIST ) GetProcAddress( hUser32, \"GetRawInputDeviceList\" );\n pGetRawInputDeviceInfo = ( PGETRAWINPUTDEVICEINFO ) GetProcAddress( hUser32, \"GetRawInputDeviceInfoA\" );\n pGetRawInputData = ( PGETRAWINPUTDATA ) GetProcAddress( hUser32, \"GetRawInputData\" );\n pDefRawInputProc = ( PDEFRAWINPUTPROC ) GetProcAddress( hUser32, \"DefRawInputProc\" );\n \n FreeLibrary( hUser32 );\n bInit = TRUE;\n } \n} \n\nHB_FUNC( REGISTERRAWINPUTDEVICES )\n{\n RAWINPUTDEVICE rid[ 2 ];\n\n RawInit();\n \n rid[ 0 ].usUsagePage = 0x01;\n rid[ 0 ].usUsage = 0x02; // Mouse\n rid[ 0 ].dwFlags = RIDEV_INPUTSINK; // RIDEV_NOLEGACY;\n rid[ 0 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n\n rid[ 1 ].usUsagePage = 0x01;\n rid[ 1 ].usUsage = 0x06; // Keyboard\n rid[ 1 ].dwFlags = RIDEV_INPUTSINK;\n rid[ 1 ].hwndTarget = ( HWND ) hb_parnl( 1 );\n \n hb_retl( pRegisterRawInputDevices( rid, 2, sizeof( RAWINPUTDEVICE ) ) );\n}\n\nHB_FUNC( GETRAWINPUTDATA )\n{\n UINT dwSize;\n LPBYTE lpb;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n \n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n hb_retnl( ( unsigned long ) lpb ); \n} \n\nHB_FUNC( GETRAWINPUTDEVICELIST )\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit();\n \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n hb_reta( nDevices );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n char name[ 512 ];\n UINT uiSize = 511;\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICENAME, ( void * ) name, &uiSize );\n hb_storclen( name, uiSize, -1, ui + 1 ); \n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSE ) // nMouse --> hDevice\n{\n UINT nDevices;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n UINT uiMouses = 0;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n UINT uiMouse = hb_parnl( 1 );\n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n {\n if( ++uiMouses == uiMouse )\n {\n hb_retnl( ( unsigned long ) pRawInputDeviceList[ ui ].hDevice );\n hb_xfree( ( void * ) pRawInputDeviceList );\n return;\n } \n } \n } \n \n hb_retnl( 0 );\n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n}\n\nHB_FUNC( GETRAWMOUSES ) // --> nMouses\n{\n UINT nDevices, uiMouses = 0;\n PRAWINPUTDEVICELIST pRawInputDeviceList;\n\n RawInit(); \n pGetRawInputDeviceList( NULL, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n if( nDevices )\n {\n UINT ui;\n \n pRawInputDeviceList = ( PRAWINPUTDEVICELIST ) hb_xgrab( sizeof( RAWINPUTDEVICELIST ) * nDevices );\n \n pGetRawInputDeviceList( pRawInputDeviceList, &nDevices, sizeof( RAWINPUTDEVICELIST ) );\n \n for( ui = 0; ui < nDevices; ui++ )\n {\n RID_DEVICE_INFO rdi;\n UINT uiSize = sizeof( RID_DEVICE_INFO ); \n \n rdi.cbSize = sizeof( RID_DEVICE_INFO );\n \n pGetRawInputDeviceInfo( pRawInputDeviceList[ ui ].hDevice, RIDI_DEVICEINFO, ( void * ) &rdi, &uiSize );\n \n if( rdi.dwType == RIM_TYPEMOUSE )\n uiMouses++;\n } \n \n hb_xfree( ( void * ) pRawInputDeviceList );\n } \n\n hb_retnl( --uiMouses ); // Windows reports an extra mouse (?)\n}\n\nHB_FUNC( RAWISMOUSE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retl( ( ( PRAWINPUT ) lpb )->header.dwType == RIM_TYPEMOUSE );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWGETHANDLE )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->header.hDevice );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( RAWBUTTONS )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n hb_retnl( ( unsigned long ) ( ( PRAWINPUT ) lpb )->data.mouse.usButtonFlags );\n hb_xfree( ( void * ) lpb );\n} \n\nHB_FUNC( DEFRAWINPUTPROC )\n{\n LPBYTE lpb;\n UINT dwSize;\n\n RawInit();\n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, NULL, &dwSize, \n sizeof( RAWINPUTHEADER ) );\n lpb = ( LPBYTE ) hb_xgrab( dwSize ); \n pGetRawInputData( ( LPRAWINPUT ) hb_parnl( 1 ), RID_INPUT, lpb, &dwSize, \n sizeof( RAWINPUTHEADER ) ); \n pDefRawInputProc( ( LPRAWINPUT * ) &lpb, 1, sizeof( RAWINPUTHEADER ) );\n hb_xfree( ( void * ) lpb );\n} \n\n#pragma ENDDUMP\n[/code:t67evavg]",
"time": "08:53",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks For Your Effort Antonio\r\nMike",
"time": "05:23",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I am googling for info about how to proceed. It looks as other programmers have our same questions:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.ui/2008-03/msg00021.html\">http://www.tech-archive.net/Archive/Dev ... 00021.html</a><!-- m -->\r\n\r\nThe problem is that WM_INPUT does not provide info about the windows handle where the event hapenned. Meanwhile I am typing this an idea arised: if our windows has the focus and we get a WM_INPUT message then it is for us. If we don't have the focus, it is not for us...\r\n\r\nTime for more tests <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "08:25",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This line may be the missing part that we need:\r\n[code:1lbifc5t]\n if ::hWnd == GetFocus() .and. RawIsMouse( nLParam ) .and. RawGetHandle( nLParam ) == ::hMouse \n[/code:1lbifc5t]\r\nMore tests... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "08:41",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No, not yet.\r\n\r\nWe need to keep searching how to do the right conversion from WM_INPUT to WM_(mouse) and WM_(keyb) messages.",
"time": "09:35",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Olá Antonio,\r\n\r\nNão sei se isto tem algo a ver com o que procura: \r\n\r\n[code:2cz6c1ec]\n#define WH_MIN (-1)\n#define WH_MSGFILTER (-1)\n#define WH_JOURNALRECORD 0\n#define WH_JOURNALPLAYBACK 1\n#define WH_KEYBOARD 2\n#define WH_GETMESSAGE 3\n#define WH_CALLWNDPROC 4\n#define WH_CBT 5\n#define WH_SYSMSGFILTER 6\n#define WH_MOUSE 7\n[/code:2cz6c1ec]\r\n\r\nDesculpe não esntendo muito de \"C++\"\r\n\r\nVeja este link também: [url:2cz6c1ec]http://bytes.com/forum/thread534448.html[/url:2cz6c1ec]\r\n\r\nSaludos,\r\n\r\nRossine.",
"time": "13:33",
"topic": "Can raw keyboard input be implemented????",
"username": "Rossine"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nVeja este link também: [url:1jp99abd]http://www.purebasic.fr/english/viewtopic.php?t=25750&postdays=0&postorder=asc&start=0[/url:1jp99abd]\r\n\r\nSaludos\r\n\r\nRossine.",
"time": "13:50",
"topic": "Can raw keyboard input be implemented????",
"username": "Rossine"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rossine,\r\n\r\nThanks for the link. I had already reviewed it before <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nWe need to know the right way to translate WM_INPUT into WM_(mouse) and WM_(keyb) messages (if possible!) <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "14:04",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio Said -\r\nThe problem is that WM_INPUT does not provide info about the windows handle where the event hapenned. Meanwhile I am typing this an idea arised: if our windows has the focus and we get a WM_INPUT message then it is for us. If we don't have the focus, it is not for us... \r\n\r\nThat is a good thought but-\r\nSay we have 6 Touch Screens, 6 mouse and 6 keyboards on one pc displaying the same application in each screen. (If my application is app.exe it will be executing 6 times, once for each screen) Can we have the different application keep focus on the screen or dialog that each person is entering data on? \r\nThanks Mike",
"time": "22:29",
"topic": "Can raw keyboard input be implemented????",
"username": "Mike Buckler"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2008-10-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mike,\r\n\r\nI have been thinking about it, and I see there is a major problem with it:\r\n\r\nWe can't have several applications having the focus at the same time, in the same computer. So it may be impossible to manage them simultaneously.\r\n\r\nUnless I am missing something...",
"time": "19:43",
"topic": "Can raw keyboard input be implemented????",
"username": "Antonio Linares"
}
] |
Can raw keyboard input be implemented????
|
[
{
"date": "2009-02-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n i have lot of problem while learning FWH as a beginer .so Please upload a ebook or path to find it\n so it will a real boost for me. <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \nRegards\nsajith",
"time": "09:46",
"topic": "Can some one share a ebook of fwh",
"username": "sajith"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2009-02-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sajith,\n\nIt is available from here:\n[url:36166zaa]http://www.fivetechsoft.com/files/fivewin.chm[/url:36166zaa]",
"time": "10:22",
"topic": "Can some one share a ebook of fwh",
"username": "Antonio Linares"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2009-02-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "many thanks for your support for ebook. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->\nbut this book does not provide entire feature can u provide a book with entire feature so it will be greatful for my work. \nRegards\nsajith",
"time": "10:40",
"topic": "Can some one share a ebook of fwh",
"username": "sajith"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2009-02-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sajith,\n\nWhen you buy FWH then you get the full documentation, thanks",
"time": "13:25",
"topic": "Can some one share a ebook of fwh",
"username": "Antonio Linares"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2009-02-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sajith,\n\nThere is no book that covers all of FW's capabilities.\n\nThere are a few articles that I wrote thay may help. You can find them on my website here.\n\n[url:3o8jmzko]http://ourworld.compuserve.com/homepages/jbott/program.htm[/url:3o8jmzko]\n\nRegards,\nJames",
"time": "16:49",
"topic": "Can some one share a ebook of fwh",
"username": "James Bott"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2009-02-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "many thanks for ur great help <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nRegards \nsajith",
"time": "07:59",
"topic": "Can some one share a ebook of fwh",
"username": "sajith"
}
] |
Can some one share a ebook of fwh
|
[
{
"date": "2020-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear friends, I need to close the preview with ESC. Can it be done?\n\nEMG",
"time": "09:05",
"topic": "Can the preview be closed with ESC?",
"username": "Enrico Maria Giordano"
}
] |
Can the preview be closed with ESC?
|
[
{
"date": "2016-08-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm calling a FWH (GUI) program from a harbour console (text) one. The FWH program displays an image, but I want to return control to the caller (console) one leaving the image open. Here's the code but it's not working:\n[code=fw:3eyyqxrz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> SetFocus<span style=\"color: #000000;\">(</span> FindWindow<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, cCaller <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:3eyyqxrz]\n\ncCaller has the correct caption for the caller program.",
"time": "11:42",
"topic": "Can this be done ?",
"username": "HunterEC"
}
] |
Can this be done ?
|
[
{
"date": "2016-08-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ah!, I do understand\n\nPlease test ACTIVATE DIALOG............... NOMODAL",
"time": "11:51",
"topic": "Can this be done ?",
"username": "cnavarro"
}
] |
Can this be done ?
|
[
{
"date": "2016-08-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cristobal:\n\nDe programa closes itself with the NOMODAL clause.",
"time": "13:52",
"topic": "Can this be done ?",
"username": "HunterEC"
}
] |
Can this be done ?
|
[
{
"date": "2014-02-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear All,\n\nI have no idea that can we connect and get translate function from google.com/translate? \n\nThanks for any idea.",
"time": "04:12",
"topic": "Can we connect and get function from Google/translate?",
"username": "dutch"
}
] |
Can we connect and get function from Google/translate?
|
[
{
"date": "2014-03-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dutch,\n\nIt appears that Google Translate only works for websites. Is that what you need? If so you can use the Translate gadget if it is your own website, otherwise for other websites you have to use the Translate API which is a paid service.\n\n<!-- m --><a class=\"postlink\" href=\"https://developers.google.com/translate/v2/getting_started\">https://developers.google.com/translate ... ng_started</a><!-- m -->\n\nJames",
"time": "18:40",
"topic": "Can we connect and get function from Google/translate?",
"username": "James Bott"
}
] |
Can we connect and get function from Google/translate?
|
[
{
"date": "2017-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nMy Mailing provider has API stuff to let me retrieve data from my account into php.\nI never used it, but maybe if it can be cenverted to FWH it becomes interesting.\n\nHas someone done something simular once ?\n\n[code=fw:329x5kvd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><?php<br /><br />require_once <span style=\"color: #ff0000;\">'YMLP_API.class.php'</span>;<br /><br /><span style=\"color: #B900B9;\">// variables: your key & username</span><br />$ApiKey = <span style=\"color: #ff0000;\">\"YourAPIKey\"</span>;<br />$ApiUsername = <span style=\"color: #ff0000;\">\"YourUsername\"</span>;<br /><br /><span style=\"color: #B900B9;\">// create API class</span><br />$api = <span style=\"color: #00C800;\">new</span> YMLP_API<span style=\"color: #000000;\">(</span>$ApiKey,$ApiUsername<span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #B900B9;\">// run command</span><br />$NewsletterID = <span style=\"color: #ff0000;\">'123'</span>;<br />$UniqueOpens = <span style=\"color: #ff0000;\">''</span>;<br />$Page = <span style=\"color: #ff0000;\">''</span>;<br />$NumberPerPage = <span style=\"color: #ff0000;\">''</span>;<br />$Sorting = <span style=\"color: #ff0000;\">''</span>;<br /><br />$output=$api->ArchiveGetOpens<span style=\"color: #000000;\">(</span>$NewsletterID , $UniqueOpens , $Page , $NumberPerPage , $Sorting<span style=\"color: #000000;\">)</span>;<br /><br /><span style=\"color: #B900B9;\">// output results</span><br /><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> $api->ErrorMessage <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> echo <span style=\"color: #ff0000;\">\"There's a connection problem: \"</span> . $api->ErrorMessage;<br /><span style=\"color: #000000;\">}</span><br /><span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> isset<span style=\"color: #000000;\">(</span>$output<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Code\"</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> echo <span style=\"color: #ff0000;\">\"{$output[\"</span>Code<span style=\"color: #ff0000;\">\"]} => {$output[\"</span>Output<span style=\"color: #ff0000;\">\"]}\"</span>;<br /> <span style=\"color: #000000;\">}</span><br /> elseif <span style=\"color: #000000;\">(</span>!<span style=\"color: #0000ff;\">count</span><span style=\"color: #000000;\">(</span>$output<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> echo <span style=\"color: #ff0000;\">\"No data available\"</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> foreach <span style=\"color: #000000;\">(</span>$output as $item<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> foreach <span style=\"color: #000000;\">(</span>$item as $key=>$value<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> echo $key . <span style=\"color: #ff0000;\">\":\"</span>. $value . <span style=\"color: #ff0000;\">\",\"</span>;<br /> <span style=\"color: #000000;\">}</span><br /> echo <span style=\"color: #ff0000;\">\"<br>\"</span>; <br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /><br />?></div>[/code:329x5kvd]\n\nThis is the class :\n[code=fw:329x5kvd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><?php<br /><br /><span style=\"color: #00C800;\">class</span> YMLP_API <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #0000ff;\">var</span> $ErrorMessage;<br /> <span style=\"color: #0000ff;\">var</span> $ApiUrl = <span style=\"color: #ff0000;\">\"www.ymlp.com/api/\"</span>;<br /> <span style=\"color: #0000ff;\">var</span> $ApiUsername;<br /> <span style=\"color: #0000ff;\">var</span> $ApiKey;<br /> <span style=\"color: #0000ff;\">var</span> $Secure = <span style=\"color: #00C800;\">false</span>;<br /> <span style=\"color: #0000ff;\">var</span> $Curl = <span style=\"color: #00C800;\">true</span>;<br /> <span style=\"color: #0000ff;\">var</span> $CurlAvailable = <span style=\"color: #00C800;\">true</span>;<br /><br /> <span style=\"color: #00C800;\">function</span> __construct<span style=\"color: #000000;\">(</span>$ApiKey=<span style=\"color: #00C800;\">null</span>,$ApiUsername=<span style=\"color: #00C800;\">null</span>,$secure=<span style=\"color: #00C800;\">false</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $this->ApiKey = $ApiKey;<br /> $this->ApiUsername = $ApiUsername;<br /> $this->Secure = $secure;<br /> $this->CurlAvailable = function_exists<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'curl_init'</span> <span style=\"color: #000000;\">)</span> && function_exists<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'curl_setopt'</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> useSecure<span style=\"color: #000000;\">(</span>$val<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>$val===<span style=\"color: #00C800;\">true</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">{</span><br /> $this->Secure = <span style=\"color: #00C800;\">true</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> $this->Secure = <span style=\"color: #00C800;\">false</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> doCall<span style=\"color: #000000;\">(</span>$method = <span style=\"color: #ff0000;\">''</span>,$params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /><br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"key\"</span><span style=\"color: #000000;\">]</span> = $this->ApiKey;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"username\"</span><span style=\"color: #000000;\">]</span> = $this->ApiUsername;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"output\"</span><span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"PHP\"</span>;<br /> $this->ErrorMessage = <span style=\"color: #ff0000;\">\"\"</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>!isset<span style=\"color: #000000;\">(</span>$postdata<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span>$postdata = <span style=\"color: #ff0000;\">''</span>;<span style=\"color: #000000;\">}</span><br /> foreach <span style=\"color: #000000;\">(</span> $params as $k => $v <span style=\"color: #000000;\">)</span><br /> $postdata .= <span style=\"color: #ff0000;\">'&'</span> . $k . <span style=\"color: #ff0000;\">'='</span> .rawurlencode<span style=\"color: #000000;\">(</span>utf8_encode<span style=\"color: #000000;\">(</span>$v<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> $this->Curl && $this->CurlAvailable <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $ch = curl_init<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> curl_setopt<span style=\"color: #000000;\">(</span> $ch, CURLOPT_POST, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> curl_setopt<span style=\"color: #000000;\">(</span> $ch, CURLOPT_POSTFIELDS, $postdata <span style=\"color: #000000;\">)</span>;<br /> curl_setopt<span style=\"color: #000000;\">(</span> $ch, CURLOPT_RETURNTRANSFER, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>$this->Secure<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">{</span><br /> curl_setopt<span style=\"color: #000000;\">(</span> $ch, CURLOPT_URL, <span style=\"color: #ff0000;\">\"https://\"</span> .$this->ApiUrl . $method <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> curl_setopt<span style=\"color: #000000;\">(</span> $ch, CURLOPT_URL, <span style=\"color: #ff0000;\">\"http://\"</span> .$this->ApiUrl . $method <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <br /> $response = curl_exec<span style=\"color: #000000;\">(</span> $ch <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>curl_errno<span style=\"color: #000000;\">(</span>$ch<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $this->ErrorMessage = curl_error<span style=\"color: #000000;\">(</span>$ch<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">false</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> $this->ApiUrl = parse_url<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://\"</span> .$this->ApiUrl . $method<span style=\"color: #000000;\">)</span>;<br /> $payload = <span style=\"color: #ff0000;\">\"POST \"</span> . $this->ApiUrl<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"path\"</span><span style=\"color: #000000;\">]</span> . <span style=\"color: #ff0000;\">\"?\"</span> . $this->ApiUrl<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"query\"</span><span style=\"color: #000000;\">]</span> . <span style=\"color: #ff0000;\">\" HTTP/1.0<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= <span style=\"color: #ff0000;\">\"Host: \"</span> . $this->ApiUrl<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"host\"</span><span style=\"color: #000000;\">]</span> . <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= <span style=\"color: #ff0000;\">\"User-Agent: YMLP_API<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= <span style=\"color: #ff0000;\">\"Content-type: application/x-www-form-urlencoded<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= <span style=\"color: #ff0000;\">\"Content-length: \"</span> . <span style=\"color: #0000ff;\">strlen</span><span style=\"color: #000000;\">(</span>$postdata<span style=\"color: #000000;\">)</span> . <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= <span style=\"color: #ff0000;\">\"Connection: close <span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span><span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>;<br /> $payload .= $postdata;<br /><br /> ob_start<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>$this->Secure<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">{</span><br /> $sock = fsockopen<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ssl://\"</span>.$this->ApiUrl<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"host\"</span><span style=\"color: #000000;\">]</span>, <span style=\"color: #000000;\">443</span>, $errno, $errstr<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> $sock = fsockopen<span style=\"color: #000000;\">(</span>$this->ApiUrl<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"host\"</span><span style=\"color: #000000;\">]</span>, <span style=\"color: #000000;\">80</span>, $errno, $errstr<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>!$sock<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $this->ErrorMessage = <span style=\"color: #ff0000;\">\"ERROR $errno: $errstr\"</span>;<br /> ob_end_clean<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">false</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> $response = <span style=\"color: #ff0000;\">\"\"</span>;<br /> fwrite<span style=\"color: #000000;\">(</span>$sock, $payload<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">while</span><span style=\"color: #000000;\">(</span>!feof<span style=\"color: #000000;\">(</span>$sock<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $response .= fread<span style=\"color: #000000;\">(</span>$sock,<span style=\"color: #000000;\">8192</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> fclose<span style=\"color: #000000;\">(</span>$sock<span style=\"color: #000000;\">)</span>;<br /> ob_end_clean<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /><br /> list<span style=\"color: #000000;\">(</span>$throw, $response<span style=\"color: #000000;\">)</span> = explode<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span><span style=\"color: #000000;\">\\r</span><span style=\"color: #000000;\">\\n</span>\"</span>, $response, <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>ini_get<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"magic_quotes_runtime\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $response = stripslashes<span style=\"color: #000000;\">(</span>$response<span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>strtoupper<span style=\"color: #000000;\">(</span>$params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"output\"</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"PHP\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $serial = unserialize<span style=\"color: #000000;\">(</span>$response<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>$response && $serial === <span style=\"color: #00C800;\">false</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $this->ErrorMessage = <span style=\"color: #ff0000;\">\"Bad Response: \"</span> . $response;<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">false</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> $response = $serial;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> $response;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> Ping<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Ping\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// GROUPS [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> GroupsGetList<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Groups.GetList\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> GroupsAdd<span style=\"color: #000000;\">(</span>$GroupName = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupName\"</span><span style=\"color: #000000;\">]</span> = $GroupName;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Groups.Add\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> GroupsDelete<span style=\"color: #000000;\">(</span>$GroupId = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupId\"</span><span style=\"color: #000000;\">]</span> = $GroupId;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Groups.Delete\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> GroupsUpdate<span style=\"color: #000000;\">(</span>$GroupId = <span style=\"color: #ff0000;\">''</span>, $GroupName = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupId\"</span><span style=\"color: #000000;\">]</span> = $GroupId;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupName\"</span><span style=\"color: #000000;\">]</span> = $GroupName;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Groups.Update\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> GroupsEmpty<span style=\"color: #000000;\">(</span>$GroupId = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupId\"</span><span style=\"color: #000000;\">]</span> = $GroupId;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Groups.Empty\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// GROUPS [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// FIELDS [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> FieldsGetList<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fields.GetList\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> FieldsAdd<span style=\"color: #000000;\">(</span>$FieldName = <span style=\"color: #ff0000;\">''</span>, $Alias = <span style=\"color: #ff0000;\">''</span>, $DefaultValue = <span style=\"color: #ff0000;\">''</span>, $CorrectUppercase = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldName\"</span><span style=\"color: #000000;\">]</span> = $FieldName;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Alias\"</span><span style=\"color: #000000;\">]</span> = $Alias;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"DefaultValue\"</span><span style=\"color: #000000;\">]</span> = $DefaultValue;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"CorrectUppercase\"</span><span style=\"color: #000000;\">]</span> = $CorrectUppercase;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fields.Add\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> FieldsDelete<span style=\"color: #000000;\">(</span>$FieldId = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldId\"</span><span style=\"color: #000000;\">]</span> = $FieldId;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fields.Delete\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> FieldsUpdate<span style=\"color: #000000;\">(</span>$FieldId = <span style=\"color: #ff0000;\">''</span>, $FieldName = <span style=\"color: #ff0000;\">''</span>, $Alias = <span style=\"color: #ff0000;\">''</span>, $DefaultValue = <span style=\"color: #ff0000;\">''</span>, $CorrectUppercase = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldId\"</span><span style=\"color: #000000;\">]</span> = $FieldId;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldName\"</span><span style=\"color: #000000;\">]</span> = $FieldName;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Alias\"</span><span style=\"color: #000000;\">]</span> = $Alias;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"DefaultValue\"</span><span style=\"color: #000000;\">]</span> = $DefaultValue;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"CorrectUppercase\"</span><span style=\"color: #000000;\">]</span> = $CorrectUppercase;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Fields.Update\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// FIELDS [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// CONTACTS [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> ContactsAdd<span style=\"color: #000000;\">(</span>$Email = <span style=\"color: #ff0000;\">''</span>, $OtherFields = <span style=\"color: #ff0000;\">''</span>, $GroupID = <span style=\"color: #ff0000;\">''</span>, $OverruleUnsubscribedBounced = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Email\"</span><span style=\"color: #000000;\">]</span> = $Email;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>!is_array<span style=\"color: #000000;\">(</span>$OtherFields<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> $OtherFields=array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> foreach <span style=\"color: #000000;\">(</span>$OtherFields as $key=>$value<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params<span style=\"color: #000000;\">[</span>$key<span style=\"color: #000000;\">]</span> = $value;<br /> <span style=\"color: #000000;\">}</span><br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupID\"</span><span style=\"color: #000000;\">]</span> = $GroupID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"OverruleUnsubscribedBounced\"</span><span style=\"color: #000000;\">]</span> = $OverruleUnsubscribedBounced;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.Add\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsUnsubscribe<span style=\"color: #000000;\">(</span>$Email = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Email\"</span><span style=\"color: #000000;\">]</span> = $Email;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.Unsubscribe\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsDelete<span style=\"color: #000000;\">(</span>$Email = <span style=\"color: #ff0000;\">''</span>, $GroupID = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Email\"</span><span style=\"color: #000000;\">]</span> = $Email;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupID\"</span><span style=\"color: #000000;\">]</span> = $GroupID;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.Delete\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsGetContact<span style=\"color: #000000;\">(</span>$Email = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Email\"</span><span style=\"color: #000000;\">]</span> = $Email;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.GetContact\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsGetList<span style=\"color: #000000;\">(</span>$GroupID = <span style=\"color: #ff0000;\">''</span>, $FieldID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $StartDate = <span style=\"color: #ff0000;\">''</span>, $StopDate = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupID\"</span><span style=\"color: #000000;\">]</span> = $GroupID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldID\"</span><span style=\"color: #000000;\">]</span> = $FieldID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StartDate\"</span><span style=\"color: #000000;\">]</span> = $StartDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StopDate\"</span><span style=\"color: #000000;\">]</span> = $StopDate;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.GetList\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsGetUnsubscribed<span style=\"color: #000000;\">(</span>$FieldID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $StartDate = <span style=\"color: #ff0000;\">''</span>, $StopDate = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldID\"</span><span style=\"color: #000000;\">]</span> = $FieldID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StartDate\"</span><span style=\"color: #000000;\">]</span> = $StartDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StopDate\"</span><span style=\"color: #000000;\">]</span> = $StopDate;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.GetUnsubscribed\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsGetDeleted<span style=\"color: #000000;\">(</span>$FieldID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $StartDate = <span style=\"color: #ff0000;\">''</span>, $StopDate = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldID\"</span><span style=\"color: #000000;\">]</span> = $FieldID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StartDate\"</span><span style=\"color: #000000;\">]</span> = $StartDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StopDate\"</span><span style=\"color: #000000;\">]</span> = $StopDate;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.GetDeleted\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ContactsGetBounced<span style=\"color: #000000;\">(</span>$FieldID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $StartDate = <span style=\"color: #ff0000;\">''</span>, $StopDate = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FieldID\"</span><span style=\"color: #000000;\">]</span> = $FieldID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StartDate\"</span><span style=\"color: #000000;\">]</span> = $StartDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StopDate\"</span><span style=\"color: #000000;\">]</span> = $StopDate;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Contacts.GetBounced\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// CONTACTS [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// FILTERS [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> FiltersGetList<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Filters.GetList\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> FiltersAdd<span style=\"color: #000000;\">(</span>$FilterName = <span style=\"color: #ff0000;\">''</span>, $Field = <span style=\"color: #ff0000;\">''</span>, $Operand = <span style=\"color: #ff0000;\">''</span>, $Value = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FilterName\"</span><span style=\"color: #000000;\">]</span> = $FilterName;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Field\"</span><span style=\"color: #000000;\">]</span> = $Field;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Operand\"</span><span style=\"color: #000000;\">]</span> = $Operand;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Value\"</span><span style=\"color: #000000;\">]</span> = $Value;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Filters.Add\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> FiltersDelete<span style=\"color: #000000;\">(</span>$FilterId = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FilterId\"</span><span style=\"color: #000000;\">]</span> = $FilterId;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Filters.Delete\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// FILTERS [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// ARCHIVE [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> ArchiveGetList<span style=\"color: #000000;\">(</span>$Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $StartDate = <span style=\"color: #ff0000;\">''</span>, $StopDate = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span>, $ShowTestMessages = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StartDate\"</span><span style=\"color: #000000;\">]</span> = $StartDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"StopDate\"</span><span style=\"color: #000000;\">]</span> = $StopDate;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"ShowTestMessages\"</span><span style=\"color: #000000;\">]</span> = $ShowTestMessages;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetList\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> ArchiveGetSummary<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetSummary\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetContent<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetContent\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetRecipients<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetRecipients\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetDelivered<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetDelivered\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetBounces<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $ShowHardBounces = <span style=\"color: #ff0000;\">''</span>, $ShowSoftBounces = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"ShowHardBounces\"</span><span style=\"color: #000000;\">]</span> = $ShowHardBounces;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"ShowSoftBounces\"</span><span style=\"color: #000000;\">]</span> = $ShowSoftBounces;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetBounces\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetOpens<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $UniqueOpens = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"UniqueOpens\"</span><span style=\"color: #000000;\">]</span> = $UniqueOpens;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetOpens\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetUnopened<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetUnopened\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetTrackedLinks<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetTrackedLinks\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetClicks<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $LinkID = <span style=\"color: #ff0000;\">''</span>, $UniqueClicks = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"LinkID\"</span><span style=\"color: #000000;\">]</span> = $LinkID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"UniqueClicks\"</span><span style=\"color: #000000;\">]</span> = $UniqueClicks;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetClicks\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> ArchiveGetForwards<span style=\"color: #000000;\">(</span>$NewsletterID = <span style=\"color: #ff0000;\">''</span>, $Page = <span style=\"color: #ff0000;\">''</span>, $NumberPerPage = <span style=\"color: #ff0000;\">''</span>, $Sorting = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NewsletterID\"</span><span style=\"color: #000000;\">]</span> = $NewsletterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Page\"</span><span style=\"color: #000000;\">]</span> = $Page;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"NumberPerPage\"</span><span style=\"color: #000000;\">]</span> = $NumberPerPage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Sorting\"</span><span style=\"color: #000000;\">]</span> = $Sorting;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Archive.GetForwards\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// ARCHIVE [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// NEWSLETTER [begin]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #00C800;\">function</span> NewsletterGetFroms<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Newsletter.GetFroms\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">function</span> NewsletterAddFrom<span style=\"color: #000000;\">(</span>$FromEmail = <span style=\"color: #ff0000;\">''</span>, $FromName = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FromEmail\"</span><span style=\"color: #000000;\">]</span> = $FromEmail;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FromName\"</span><span style=\"color: #000000;\">]</span> = $FromName;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Newsletter.AddFrom\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> NewsletterDeleteFrom<span style=\"color: #000000;\">(</span>$FromID = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FromID\"</span><span style=\"color: #000000;\">]</span> = $FromID;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Newsletter.DeleteFrom\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">function</span> NewsletterSend<span style=\"color: #000000;\">(</span>$Subject = <span style=\"color: #ff0000;\">''</span>, $HTML = <span style=\"color: #ff0000;\">''</span>, $Text = <span style=\"color: #ff0000;\">''</span>, $DeliveryTime = <span style=\"color: #ff0000;\">''</span>,<br /> $FromID = <span style=\"color: #ff0000;\">''</span>, $TrackOpens = <span style=\"color: #ff0000;\">''</span>, $TrackClicks = <span style=\"color: #ff0000;\">''</span>, $TestMessage = <span style=\"color: #ff0000;\">''</span>,<br /> $GroupID = <span style=\"color: #ff0000;\">''</span>, $FilterID = <span style=\"color: #ff0000;\">''</span>, $CombineFilters = <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> $params = array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Subject\"</span><span style=\"color: #000000;\">]</span> = $Subject;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"HTML\"</span><span style=\"color: #000000;\">]</span> = $HTML;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"Text\"</span><span style=\"color: #000000;\">]</span> = $Text;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"DeliveryTime\"</span><span style=\"color: #000000;\">]</span> = $DeliveryTime;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FromID\"</span><span style=\"color: #000000;\">]</span> = $FromID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"TrackOpens\"</span><span style=\"color: #000000;\">]</span> = $TrackOpens;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"TrackClicks\"</span><span style=\"color: #000000;\">]</span> = $TrackClicks;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"TestMessage\"</span><span style=\"color: #000000;\">]</span> = $TestMessage;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"GroupID\"</span><span style=\"color: #000000;\">]</span> = $GroupID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"FilterID\"</span><span style=\"color: #000000;\">]</span> = $FilterID;<br /> $params<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"CombineFilters\"</span><span style=\"color: #000000;\">]</span> = $CombineFilters;<br /> <span style=\"color: #00C800;\">return</span> $this->doCall<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Newsletter.Send\"</span>, $params<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <span style=\"color: #B900B9;\">// NEWSLETTER [end]</span><br /> <span style=\"color: #B900B9;\">//------------------------------------------------------------</span><br /> <br /><span style=\"color: #000000;\">}</span></div>[/code:329x5kvd]",
"time": "16:02",
"topic": "Can we convert php code to FWH",
"username": "Marc Venken"
}
] |
Can we convert php code to FWH
|
[
{
"date": "2017-04-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think that you don't need to convert the php code to FiveWin, instead you make a call to the php from fivewin and capture its output. The output seems to be JSON. You can further process the JSON output from Fivewin. For this to work, you need to know the URL that is to be called. \n\nFor eg. something like\n[code=fw:1q2vmnur]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oHttp:=CreateObject<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Microsoft.XMLHTTP\"</span><span style=\"color: #000000;\">)</span><br />cURL:=<span style=\"color: #ff0000;\">\"http://YourURLtoAccessThisParticularReport.php\"</span><br />oHttp:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"GET\"</span>,cURL,.F.<span style=\"color: #000000;\">)</span></div>[/code:1q2vmnur]\n\nIts just an idea.\n\nEDIT:- It looks like that the APIkey and your username is fixed in the php code. Ask them whether you can pass this as parameters to the php. OR whether each client gets a different php code so that you can fix the APIKey and username in your php code itself.\n\nRegards\n[b:1q2vmnur]Anser[/b:1q2vmnur]",
"time": "05:36",
"topic": "Can we convert php code to FWH",
"username": "anserkk"
}
] |
Can we convert php code to FWH
|
[
{
"date": "2017-05-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "AFAIK, It seems it can be done with harbour, and translated without too much effort using hb_curl, that youcan find in the Harbour's contribs.",
"time": "12:39",
"topic": "Can we convert php code to FWH",
"username": "Carlos Mora"
}
] |
Can we convert php code to FWH
|
[
{
"date": "2006-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi \n\nCould anybody try to place menus on ReBar ?\n\n\n- Ramesh Babu P",
"time": "05:17",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "RAMESHBABU"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-07-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ramesh,\n\nNo, not yet. They are not directly supported by the Windows API, though we believe we will be able to implement them.",
"time": "07:41",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "Antonio Linares"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"RAMESHBABU\":2g4v3pt0]Hi \n\nCould anybody try to place menus on ReBar ?\n\n\n- Ramesh Babu P[/quote:2g4v3pt0]",
"time": "17:44",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "goosfancito"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi goosfancito\n\nThank you for your posting and the link.\n\nI could look at the pictures and understood that menus could be placed on\nReBar.\n\n\nBut I am very sorry! that I could not understand the language and I could \nnot find that the library is commercial or free one. I did not find any \nsamples also the the site. \n\nPlease provide me some information in English Language.\n\nRegards\n\n- Ramesh Babu P",
"time": "05:18",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "RAMESHBABU"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi goosfancito\n\nI could find the link to downloads.\n\nRegards\n\n- Ramesh Babu P",
"time": "05:30",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "RAMESHBABU"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"RAMESHBABU\":2icr30ub]Hi goosfancito\n\nI could find the link to downloads.\n\nRegards\n\n- Ramesh Babu P[/quote:2icr30ub]\n\nHi,\n\nYou need CVS software to download the class. This class is a modify to the original fivewin Class.\n\nSee later.",
"time": "05:54",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "goosfancito"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi goosfancito \n\nThanks for your reply. I could download the following TTbar.prg of which\nthe header is as below:\n\n/*\n $Id: TTBar.prg,v 1.3 2006/05/27 17:25:25 Administrador Exp $\n Project: TXBrowseH\n File: TTBar\n Created: 10/31/2005 08:00\n Lira Lira Oscar Joel\n*/\n\nPlease check whether it is the same class you were referring about.\nI did not test it.\n\nIn case it is not the one, you were referring, kindly provide me copy of \nthat class to me to <!-- e --><a href=\"mailto:aksharasoft@hotmail.com\">aksharasoft@hotmail.com</a><!-- e -->\n\nRegards,\n\n- Ramesh Babu P",
"time": "10:18",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "RAMESHBABU"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2006-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Oskar,\n\nCould you provide us with the commctrl.ch file? I couldn't find it in the Fivewin, Harbour, xHarbour, or Borland files.\n\nJames",
"time": "21:09",
"topic": "Can we have Menus in ReBar like Ms-Word Menus",
"username": "James Bott"
}
] |
Can we have Menus in ReBar like Ms-Word Menus
|
[
{
"date": "2017-10-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I can open and edit many tables from a online database (Prestashop) from my server.\n\nI know that Prestashop has relations, indexes, .... from many of his tables.\n\nEX.\n\nTable : PS_products must have a relation or so from table PS_ATTRIBUTES\n\nCan we somehow know with a command/function in SQL if there is a relation between tables ?",
"time": "15:30",
"topic": "Can we know the relations from SQL/MARIADB databases",
"username": "Marc Venken"
}
] |
Can we know the relations from SQL/MARIADB databases
|
[
{
"date": "2017-10-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I see that the program HeidiSql mentioned on the forum gives most of the info.",
"time": "22:41",
"topic": "Can we know the relations from SQL/MARIADB databases",
"username": "Marc Venken"
}
] |
Can we know the relations from SQL/MARIADB databases
|
[
{
"date": "2016-03-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear All members,\n\n Can we make Chrome extension with Fivewin for Harbour/xHarbour?\n\n Recently, I found we can not use ActiveX for several websites...\n And, those kinds of websites are increasing..\n\n When I try to connect those sites with ActiveX, it was mentioned as followings.\n \"Internet Explorer 7 is no longer supported !\"\n\n And, even in many websites where ActiveX is still valid, it was rather difficult to full control websites through ActiveX, as in Chrome extension.\n\n Today, I've met new version of \"Free Download Manager\" as Chrome Extension...\n\n So, I came to think that it might be possible to make certain chrome extension with Fivewin/Harbour..\n\n Dear Mr.Antonio Linares, and FiveWin Freinds,\n\n Is my opinion correct?\n\nThanks.",
"time": "14:36",
"topic": "Can we make Chrome extension software with Fivewin/Harbour?",
"username": "kim yong woo"
}
] |
Can we make Chrome extension software with Fivewin/Harbour?
|
[
{
"date": "2016-03-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Look if you serve\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=25471&start=0\">viewtopic.php?f=6&t=25471&start=0</a><!-- l -->",
"time": "15:12",
"topic": "Can we make Chrome extension software with Fivewin/Harbour?",
"username": "cnavarro"
}
] |
Can we make Chrome extension software with Fivewin/Harbour?
|
[
{
"date": "2015-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the class for tget, we have the following:\n\n#define COLOR_GRAYTEXT 17\n\nI realize this is a Windows standard. It is used when displaying a Read Only field.\n\nSome of my clients say it is too hard to read. So normally, I take the tget.prg, modify the value to 1, and link that into the application. However, anytime there are changes to tget.prg I have to copy over the new source, modify it, and then re-link. With all of the changes that come along, that is an annoying task.\n\nSo, is there anyway I can setup the MAIN.prg to use the value I want and ignore the #define in the class ?\n\nI've asked this in the past and there wasn't, but just in case something changed .... Thank You.",
"time": "21:02",
"topic": "Can we modify class #DEFINE",
"username": "TimStone"
}
] |
Can we modify class #DEFINE
|
[
{
"date": "2015-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nWe can change it into a CLASSDATA.\n\nWe will implement it for FWH 15.12",
"time": "21:27",
"topic": "Can we modify class #DEFINE",
"username": "Antonio Linares"
}
] |
Can we modify class #DEFINE
|
[
{
"date": "2015-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "That would be helpful. I have no problem myself but the one client ( and others will follow ) use older monitors and they are quite picky.",
"time": "21:31",
"topic": "Can we modify class #DEFINE",
"username": "TimStone"
}
] |
Can we modify class #DEFINE
|
[
{
"date": "2015-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "done <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "21:31",
"topic": "Can we modify class #DEFINE",
"username": "Antonio Linares"
}
] |
Can we modify class #DEFINE
|
[
{
"date": "2015-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The other problem, however, is the xbrowse column auto sizing issue that I found in 15.10. I had to revert that program back to 15.06 and it works perfectly. So hopefully I can find the problem for that before 15.12. Exact same code is fine with .06, but scrunches columns in 15.10. I will test it shortly in 15.11",
"time": "21:43",
"topic": "Can we modify class #DEFINE",
"username": "TimStone"
}
] |
Can we modify class #DEFINE
|
[
{
"date": "2007-02-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Friends\n\nAs subject\n\n[url=http://img233.imageshack.us/my.php?image=groupeo3.png:20r9hhlm][img:20r9hhlm]http://img233.imageshack.us/img233/6300/groupeo3.th.png[/img:20r9hhlm][/url:20r9hhlm]\n\nRegards\n\n- Ramesh Babu P",
"time": "16:38",
"topic": "Can we paint transparant group box on gradiated dialog",
"username": "RAMESHBABU"
}
] |
Can we paint transparant group box on gradiated dialog
|
[
{
"date": "2007-02-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"RAMESHBABU\":2vk4fxrt]Hi Friends\n\nAs subject\n\n[url=http://img233.imageshack.us/my.php?image=groupeo3.png:2vk4fxrt][img:2vk4fxrt]http://img233.imageshack.us/img233/6300/groupeo3.th.png[/img:2vk4fxrt][/url:2vk4fxrt]\n\nRegards\n\n- Ramesh Babu P[/quote:2vk4fxrt]\n\nPlease check:\n[code:2vk4fxrt]\nREDEFINE GROUP oGrp001 ID 10018 PROMPT \"Caption\" OF oDlg TRANSPARENT\n[/code:2vk4fxrt]\nRegards, Norbert",
"time": "03:22",
"topic": "Can we paint transparant group box on gradiated dialog",
"username": "NK"
}
] |
Can we paint transparant group box on gradiated dialog
|
[
{
"date": "2007-02-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr.Norbert\n\nThanks for your reply.\n\nThis picture is generated after having used TRANSPARENT clause.\n\nTRANSPARENT clause is working normally OK, when the dialog/window is painted with any BMP / COLOR brush. \n\nBut, here the dialog is painted with color gradiation with code.\n\nRegards\n\n- Ramesh Babu P",
"time": "15:03",
"topic": "Can we paint transparant group box on gradiated dialog",
"username": "RAMESHBABU"
}
] |
Can we paint transparant group box on gradiated dialog
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.