Re: Post Key

2020-02-21 Thread Tim Nevels via 4D_Tech
On Feb 21, 2020, at 12:45 PM,Keisuke Miyako wrote: > if the objective is to simply post some key combination: > > https://github.com/miyako/4d-plugin-virtual-key/ Yep, that’s the objective. I wrote my solution back in 2018. I see you created this plugin with first commit on March 10, 2019.

Re: Post Key

2020-02-20 Thread Keisuke Miyako via 4D_Tech
if the objective is to simply post some key combination: https://github.com/miyako/4d-plugin-virtual-key/ ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options:

Re: Post Key

2020-02-20 Thread Tim Nevels via 4D_Tech
On Feb 20, 2020, at 11:19 AM,Jody Bevan wrote: > Thanks for the detailed code on getting this done. I will use that for now. > When I get time I should be able to write the same type of thing for Windows. > When I do, I will send it to you. > > Nice thing is with multiple tools, one can often

Re: Post Key

2020-02-19 Thread Jody Bevan via 4D_Tech
Tim: Thanks for the detailed code on getting this done. I will use that for now. When I get time I should be able to write the same type of thing for Windows. When I do, I will send it to you. Nice thing is with multiple tools, one can often get done what one cannot do with ‘plain’ 4D. We

Re: Post Key

2020-02-19 Thread Bernd Fröhlich via 4D_Tech
Koen Van Hooreweghe: > You can set the standard action of the button to 'userMode'. This should do > the trick imho. And if that does not work (IIRC it was broken in some version) then put METHOD OPEN PATH("SomeMethod") in the buttonscript as a workaround. Greetings from Germany, Bernd

Re: Post Key

2020-02-19 Thread Tim Nevels via 4D_Tech
reen they click on > that would post the keyboard shortcuts for the runtime explorer. For example > on the MacOS doing the following: > > If (Is macOS) > POST KEY(-101;Shift key bit+Command key bit) > End if > > or use > >

Re: Post Key

2020-02-19 Thread Koen Van Hooreweghe via 4D_Tech
For example > on the MacOS doing the following: > > If (Is macOS) > POST KEY(-101;Shift key bit+Command key bit) > End if > > or use > > POST KEY(-101;Shift key Mask+Command key mask) > > This does not seem to work. Where i

Post Key

2020-02-19 Thread Jody Bevan via 4D_Tech
for the runtime explorer. For example on the MacOS doing the following: If (Is macOS) POST KEY(-101;Shift key bit+Command key bit) End if or use POST KEY(-101;Shift key Mask+Command key mask) This does not seem to work. Where is my thinking wrong? Thanks Jody

Re: Post Key command not working in converted 4Dv16 database - SOLVED

2017-12-12 Thread Pat Bensky via 4D_Tech
2017/12/08 20:32、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com d_t...@lists.4d.com>> のメール: > *POST KEY*(*Character code*("c");Command key mask) > > > > ** > 4D Internet Users Group (4D iNUG) > FA

Re: Post Key command not working in converted 4Dv16 database - SOLVED

2017-12-08 Thread Keisuke Miyako via 4D_Tech
ON command (16R) 2017/12/08 20:32、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> のメール: *POST KEY*(*Character code*("c");Command key mask) ** 4D Internet Users Group (4D

Re: Post Key command not working in converted 4Dv16 database - SOLVED

2017-12-08 Thread Pat Bensky via 4D_Tech
I am also having problems with POST KEY in v16. It simply doesn't work :) Sample code: *Case of* *:* ($i="copy") *POST KEY*(*Character code*("c");Command key mask) *:* ($i="paste") *POST KEY*(*Character code*("v");Command key mask) *:* ($i="cut&qu

Re: Post Key command not working in converted 4Dv16 database - SOLVED

2017-10-11 Thread Ken Daniel via 4D_Tech
em. He prepared a screencast showing me that post key worked using my database and I noticed during the screencast a message popped up warning that the database must be used in Unicode mode in order to be opened and asking to temporarily switch to Unicode mode. I had never seen that message before and

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread David Adams via 4D_Tech
Hey John, Yeah, I pretty well guessed something like that was going on in your case...I mostly answered for the sake of the archives. I often ask questions and am offered well-meaning and sensible answers...but there's almost as often a good reason why I'm bearing down on the particular point

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread John DeSoi via 4D_Tech
Hey David, Right, CALL FORM will fix a lot of work-arounds needed for previous 4D versions. But my goal here is to have a single stable code base in 15 until making the move to version 16. I don't want to maintain two versions if I can avoid it. That said, I already have some v16 features

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread David Adams via 4D_Tech
Hey John, if you still need to fix what you described, CALL FORM ought to work. Just past what method you want to run and the target window's form will run it through EXECUTE for you. doesn't mean that POST KEY shouldn't be fixed if it's broken, of course

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread John DeSoi via 4D_Tech
Ken, I just ran into a problem with POST KEY in 16.2 that works without problems in 15.4. An outside call message is sent from another process and POST KEY is used in in the outside call event to activate a menu item. For some reason it does not seem to work right unless I add DELAY PROCESS

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Koen Van Hooreweghe via 4D_Tech
> Koen & Steve, thanks for the tip, but in this case I am using POST > KEY(Character code(".");Command key mask) and had the shortcut of Ctrl . > assigned to a button. It only fails to work in this one converted database. > I've converted another database to v16 for a differ

RE: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Stephen J. Orth via 4D_Tech
lt;kendan...@maxkatzbag.com> Subject: Re: Post Key command not working in converted 4Dv16 database Spencer, no change in behavior with disabling any event handler, but thanks for the suggestion. Ken ** 4D Internet Users Group (

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Ken Daniel via 4D_Tech
Dv16/4D/16.2/ON-EVENT-CALL.301-3432983.en.html < > http://doc.4d.com/4Dv16/4D/16.2/ON-EVENT-CALL.301-3432983.en.html> > > > > > On Oct 9, 2017, at 6:41 AM, Ken Daniel via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > > Koen & Steve, thanks for the

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Spencer Hinsdale via 4D_Tech
; wrote: > > Koen & Steve, thanks for the tip, but in this case I am using POST > KEY(Character code(".");Command key mask) and had the shortcut of Ctrl . > assigned to a button. It only fails to work in this one converted database. > I've converted another database to v16

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Tom Dillon via 4D_Tech
Ken Daniel via 4D_Tech wrote: >I am using POST >KEY(Character code(".");Command key mask) and had the shortcut of Ctrl . >assigned to a button. In the database settings, do you have the Cancel Input Form

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Ken Daniel via 4D_Tech
Koen & Steve, thanks for the tip, but in this case I am using POST KEY(Character code(".");Command key mask) and had the shortcut of Ctrl . assigned to a button. It only fails to work in this one converted database. I've converted another database to v16 for a different applicatio

Re: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Koen Van Hooreweghe via 4D_Tech
Hi Ken, What particular shortcut are you using? Also check the case of the character you are using, as Stephen pointed out. In v14 I discovered a bug when running the command POST KEY(Character code("A");Command key mask). This was fine in v13 and earlier, but crashes v14, v15 a

RE: Post Key command not working in converted 4Dv16 database

2017-10-09 Thread Stephen J. Orth via 4D_Tech
Sent: Sunday, October 08, 2017 8:21 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Ken Daniel <kendan...@maxkatzbag.com> Subject: Post Key command not working in converted 4Dv16 database All, I'm having a problem with the Post Key command not working in a database converted from

Post Key command not working in converted 4Dv16 database

2017-10-08 Thread Ken Daniel via 4D_Tech
All, I'm having a problem with the Post Key command not working in a database converted from 4Dv14 to v16. Post Key works fine in 4Dv14, and works in 4Dv15 and even in a newly created database in v16, but not in my converted database. I've tried resetting the Preferences and Database Settings