Great new documentation on file/folder architecture in v19 for projects

2021-06-23 Thread Jody Bevan via 4D_Tech
Now that I am in the office I can now pass this along for any that are 
interested and couldn’t find the new documentation and search for it. This page 
is 3 clicks into the new documentation.

https://developer.4d.com/docs/en/Project/architecture.html 


Jody
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Default Folder Structure

2021-06-23 Thread Kevin Abraham via 4D_Tech
Jorg,

I don’t think Jody even knows how to be snarky (my description for a RTFM 
answer) and why not just get him to clarify which Manual. A simple “Do you know 
which manual and section it is described in, or is it something else like a 
tech note?”

You will either get a useful answer, my experience with Jody is you will, or 
you will get nothing and be no worse off than you were, looking for something 
where you don’t even know if it exists.

Thanks,
Kevin Abraham
Digital Retirement Solutions
kabra...@drs401k.com

> On Jun 22, 2021, at 7:03 PM, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Keith,
> 
> I don’t mind getting a “RTFM-answer” as long as a pointer tells me what 
> manual to look in.
> 
> If there is a NEW manual with super duper search function than I don’t know 
> about it and I can’t login in my 4D account.
> 
> On the other hand the “RTFM-answer” is the most brilliant generic answer one 
> can give nowadays. :o))
> 
> Cheers
> Jörg
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Great new documentation on file/folder architecture in v19 for projects

2021-06-23 Thread Jörg Knebel via 4D_Tech


> On 24 /06 /2021, at 02:08, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Now that I am in the office I can now pass this along for any that are 
> interested and couldn’t find the new documentation and search for it. This 
> page is 3 clicks into the new documentation.
> 
> https://developer.4d.com/docs/en/Project/architecture.html 
> 
> 
> Jody


This is helpful.
Thanks

Cheers
Jörg

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D scanning

2021-06-23 Thread Peter Mew via 4D_Tech
Id quite like to try Miyakos Twain PlugIn 4d-plugin-twain-v2
.
How do I get a Binary for this. Ive been to Git Hub but cant see any way to
just download the plug in.
Any help please
thanks
-pm

On Tue, Jun 22, 2021 at 10:17 AM Claudio Braga via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> On Mac you can use scanline https://github.com/klep/scanline <
> https://github.com/klep/scanline>
>
> It is a cli util so with some launch external process calls you can drive
> it
>
> i.e.
>
> To get the list of available scanners
>
> $command:="/usr/local/bin/scanline -list -browsesecs 1 "
>
> $std_in:=""
> $std_out:=""
> $error:=""
> LAUNCH EXTERNAL PROCESS($command;$std_in;$std_out;$error)
>
>
> To actually do a scan
>
> //vSCANDOCS_scanner is the name of the scanner found with the -browsesecs
> option
>
> $command:="/usr/local/bin/scanline -scanner \""+vSCANDOCS_scanner
>
> $command:=$command+"\" -a4 -flatbed -dir \""+Convert path system to
> POSIX($folder)+"\" -name "+$filename_for_scan
> $std_in:=""
> $std_out:=""
> $error:=""
> LAUNCH EXTERNAL PROCESS($command;$std_in;$std_out;$error)
>
>
> So far I’ve been using it up to OS X 10.14, I’m in the process of testing
> it on Catalina, we’ll see
>
> HIH
>
>
>
> Claudio Braga
> **
> claudiobr...@me.com
> claudiobr...@mac.com
> claudiobr...@icloud.com
> **
>
>
>
> > Il giorno 21 giu 2021, alle ore 18:53, Jody Bevan via 4D_Tech <
> 4d_tech@lists.4d.com> ha scritto:
> >
> > David:
> >
> > Thanks for that snip of code. Hopefully someone in the know will be able
> to let us know about the MacOS.
> >
> > Thanks
> >
> > Jody Bevan
> >
> >> On Jun 21, 2021, at 4:20 AM, David Samson via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >>
> >> Hello,
> >>
> >> I don't know about Macs but on a PC you don't need a plugin for simple
> >> scanning. I use
> >>
> >> I use a free program called NAPS2 which has proven to be very reliable
> over
> >> the years. I scan the document into a known folder and retrieve it from
> >> there and can then do what I want with it.
> >>
> >> The code is simply the following:
> >>
> >> SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
> >>
> >> cDTPath:=System folder(Desktop)
> >> cDTPath:=cDTPath+Char(92)+"4DScan"+Char(92)
> >> cDTPath:=PATH_Fix (cDTPath)
> >>
> >> If (Test path name(cDTPath)#Is a folder)
> >>   CREATE FOLDER(cDTPath)
> >> Else
> >>   DOCUMENT LIST(cDTPath;acOldDocs)
> >>   For ($old;1;Size of array(acOldDocs))
> >> DELETE DOCUMENT(cDTPath+acOldDocs{$old})
> >>   End for
> >> End if
> >>
> >> cDTPath:=cDTPath+Char(92)+"ScannedPI"+Generate UUID+".pdf"
> >> cDTPath:=PATH_Fix (cDTPath)
> >> LAUNCH EXTERNAL PROCESS("C:\\Program Files (x86)\\nAPS2\\naps2.console
> >> -o"+cDTPath)
> >>
> >> All you need to do in setting up NAPS2 is to create a profile which
> tells
> >> it which scanner to use.
> >>
> >> HTH
> >> David
> >>
> >>
> >>> Message: 1
> >>> Date: Thu, 17 Jun 2021 16:54:47 +0100
> >>> From: Peter Mew 
> >>> To: 4D iNug Technical <4d_tech@lists.4d.com>
> >>> Subject: 4D scanning
> >>> Message-ID:
> >>>   <
> >>> cao0ooqqc_ribzifseq7h6wsm-u+fejteuww26xnybpme5ax...@mail.gmail.com>
> >>> Content-Type: text/plain; charset="UTF-8"
> >>>
> >>> Hi
> >>> I havent done any of this for a while so Im a bit! rusty.
> >>> I looking to download Miyakos twain plug in, Where do I find it? or is
> >>> there a better plugin that will capture scans and work with 4D v13 mac
> and
> >>> PC preferably free
> >>> thanks
> >>> -pm
> >>>
> >>>
> >>>
> >> **
> >> 4D Internet Users Group (4D iNUG)
> >> New Forum: https://discuss.4D.com
> >> Archive:  http://lists.4d.com/archives.html
> >> Options: https://lists.4d.com/mailman/options/4d_tech
> >> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >> **
> >
> > **
> > 4D Internet Users Group (4D iNUG)
> > New Forum: https://discuss.4D.com
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  

Re: 4D scanning

2021-06-23 Thread Keisuke Miyako via 4D_Tech
you can click on "Releases" and select a release by tag

https://github.com/miyako/4d-plugin-twain-v2/releases/tag/3.4.0

also there is a prebuilt binary, preinstalled in the sample DB when you get the 
source repository.

also you can unarchive the .zip or .dmg that comes with the source repository.

---

there are several ways to communicate with a scanner

ICA the standard on Mac and WIA is the new standard on Windows.
some hardware vendors may not provide a TWAIN driver for Windows.
I am unaware of any TWAIN scanners for Mac.

2021/06/24 6:26、Peter Mew via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Id quite like to try Miyakos Twain PlugIn 4d-plugin-twain-v2
How do I get a Binary for this. Ive been to Git Hub but cant see any way to
just download the plug in.

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Communicating with external electronics

2021-06-23 Thread nug via 4D_Tech
I might have a an opening for a project..
I would need to be able to communicate (from windows 10) to an external 
electronic board.
running 'scripts' (do not know if the scripts will exist (LEP) or will need to 
be written (4D).

I would need to run these scripts, to run tests on another piece of electronics

4D --> board --> electronic device
device --> return results of tests to board --> to 4D

I have not done this type of device manipulation in the past.

Anyone here?

if so - what would I be getting myself into?

Thanks
Chip

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Communicating with external electronics

2021-06-23 Thread nug via 4D_Tech
Hi Keisuke,
There is a current system, it is slow, it requires weird interfacing between 
(yes!) IE11 and Edge 
- scanning a QR code from the screen (IE 11) to lookup(?) data used in a sql(?) 
system displaying in EDGE

IE11 runs the existing scripts using JAVA, and some (specialized?) web tools 
installed on the device
I was told that they had tried to use a modern browser (Edge, Firefox etc) but 
the scripts error-ed out.

The scripts, and (as far as I can tell) all the software is in-house and 
proprietary.

Chip

> On Jun 23, 2021, at 6:39 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I suppose the scripts are written in Python or some other language.
> 
> the script language is probably not important. 
> I imagine it is published as a "language neutral" sample code,
> not as a Software Development Kit or middleware.
> 
> you might even be able to translate it to native 4D for HTTP or RS-232C, 
> NTK for TCP, UDP, etc. 
> I would not recommend Internet Commands for new development.
> 
> it is more important to know the communication protocol for the device.
> 
>> 2021/06/24 7:18、nug via 4D_Tech <4d_tech@lists.4d.com>のメール:
>> I would need to be able to communicate (from windows 10) to an external 
>> electronic board.
>> running 'scripts' (do not know if the scripts will exist (LEP) or will need 
>> to be written (4D).
>> I would need to run these scripts, to run tests on another piece of 
>> electronics
>> 4D --> board --> electronic device
>> device --> return results of tests to board --> to 4D
>> I have not done this type of device manipulation in the past.
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Communicating with external electronics

2021-06-23 Thread Keisuke Miyako via 4D_Tech
maybe it is using ActiveX

https://en.wikipedia.org/wiki/ActiveX

the script could be invoking another OCX component that does the actual heavy 
lifting. just a guess.

2021/06/24 7:56、nug via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
The scripts, and (as far as I can tell) all the software is in-house and 
proprietary.

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Communicating with external electronics

2021-06-23 Thread Keisuke Miyako via 4D_Tech
I suppose the scripts are written in Python or some other language.

the script language is probably not important. 
I imagine it is published as a "language neutral" sample code,
not as a Software Development Kit or middleware.

you might even be able to translate it to native 4D for HTTP or RS-232C, 
NTK for TCP, UDP, etc. 
I would not recommend Internet Commands for new development.

it is more important to know the communication protocol for the device.

> 2021/06/24 7:18、nug via 4D_Tech <4d_tech@lists.4d.com>のメール:
> I would need to be able to communicate (from windows 10) to an external 
> electronic board.
> running 'scripts' (do not know if the scripts will exist (LEP) or will need 
> to be written (4D).
> I would need to run these scripts, to run tests on another piece of 
> electronics
> 4D --> board --> electronic device
> device --> return results of tests to board --> to 4D
> I have not done this type of device manipulation in the past.
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

v18 Background Image / Win32API

2021-06-23 Thread Ben Sokal via 4D_Tech
Hello,

Since Win32API now seems to be obsolete, how can we easily set the background 
image ala gui_LoadBackground? I tried the Miyako replacement on github at 
https://github.com/miyako/4D-Win32API/releases/tag/8.3.v18 but it did not seem 
to work (I think the command ran but the background did not change). How have 
you handled setting a background image change after upgrading 4D to latest 
versions?

Thanks!
Ben
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v18 Background Image / Win32API

2021-06-23 Thread Keisuke Miyako via 4D_Tech
the plugin replaces the background by intercepting the PAINT event for the MDI 
window.

4D is Altura-free since v17

https://blog.4d.com/complete-windows-64-bit-product-line-is-now-altura-free/

which drastically changes how (or if at all) plugins can "hack" the GUI.

I think it might just be better to migrate the application to SDI mode if you 
don't like the MDI window.

https://doc.4d.com/4Dv18/4D/18/SDI-mode-on-Windows.300-4575510.en.html

2021/06/24 7:38、Ben Sokal via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Since Win32API now seems to be obsolete, how can we easily set the background 
image ala gui_LoadBackground? I tried the Miyako replacement on github at 
https://github.com/miyako/4D-Win32API/releases/tag/8.3.v18 but it did not seem 
to work (I think the command ran but the background did not change). How have 
you handled setting a background image change after upgrading 4D to latest 
versions?
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Communicating with external electronics

2021-06-23 Thread nug via 4D_Tech
that makes sense - as active x is (as far as I am aware) depreciated in all 
browsers newer then IE 11


> On Jun 23, 2021, at 7:13 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> maybe it is using ActiveX
> 
> https://en.wikipedia.org/wiki/ActiveX
> 
> the script could be invoking another OCX component that does the actual heavy 
> lifting. just a guess.
> 
> 2021/06/24 7:56、nug via 4D_Tech 
> <4d_tech@lists.4d.com>のメール:
> The scripts, and (as far as I can tell) all the software is in-house and 
> proprietary.
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**