Search found 29 matches

by ludieter
6 Aug 2016 14:25
Forum: Visual Prolog
Topic: Unclear error message
Replies: 3
Views: 3036

Thanks. I was worried it was a problem that would create a greater issue later on. I will gladly ignore it.
by ludieter
5 Aug 2016 12:01
Forum: Visual Prolog
Topic: Unclear error message
Replies: 3
Views: 3036

Unclear error message

In a new project, I assign one command to the file_new button: onFileNew(_Source, _MenuTag):- Filename=vpiCommonDialogs::getFileName("*.txt",["All files",".*"],"Choose File",[dlgfn_Save],"",_),!. resulting in the error: Exception 0x000006BA: unknown(0x000006BA), at address: 0x7634DAE8 First Chance I...
by ludieter
4 Mar 2015 7:06
Forum: Visual Prolog
Topic: Problems with editor controls
Replies: 8
Views: 3899

Thanks Thomas! Works like a charm.
by ludieter
2 Mar 2015 19:20
Forum: Visual Prolog
Topic: Problems with editor controls
Replies: 8
Views: 3899

I tried to upload a zip file (6mB) with the whole project, but I get an error "tried to upload an empty file". I saw the upload on the status bar though. Is the file too large?

Here files except folders deb / obj / exe
by ludieter
2 Mar 2015 17:30
Forum: Visual Prolog
Topic: Problems with editor controls
Replies: 8
Views: 3899

will try adding showlistener with the scilexer control and get back to you
Thx
Dieter
by ludieter
2 Mar 2015 17:29
Forum: Visual Prolog
Topic: Problems with editor controls
Replies: 8
Views: 3899

build is 7501 commercial. The program worked in 74, not in 75.

To make sure I wasn't doing something I wasn't aware of, I made a program only opening a window with one edit control and two buttons, one to set readonly one setting readonly(false)...
by ludieter
1 Mar 2015 9:10
Forum: Visual Prolog
Topic: Problems with editor controls
Replies: 8
Views: 3899

Problems with editor controls

Upon switching from 7.4 to 7.5 I find that the command myedit_ctl:setReadOnly(false) does not work anymore (does not let me edit...) After trying various things I decided to do use the scilexer control. Switching to/from readonly works as expected. On setting the proprerty of horzontal scroll bar to...
by ludieter
17 Feb 2015 19:22
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

Very helpful. I am trying with 7.5. The main problem with different windows seems to be to define which window receives the input...have not yet had time to test how to make sure I'm sending to the right window.
by ludieter
16 Feb 2015 6:38
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

Thanks for your reply Thomas. I am now lost but on a higher level :-) . Where do the predicates mkkeyup and mkkeydown come from? They seem to be undeclared in gui_api. Your sendinput/1 is also different from sendInput : ( unsigned NumberOfInputs, pointer Inputs [out], integer SizeOfInputStructure) -...
by ludieter
14 Feb 2015 13:54
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

global hotkeys

Thomas, I am struggling with the sendinpput command, looked around for examples or explanations, but coming up empty. These questions: Where is the input Ctrl-c sent? How and in which format? Input=k_ctrl_c, InputString = inputStream_string::new(Input), ? is NumberofInputs 1 (k_ctrl_c) or 2 (how to ...
by ludieter
5 Feb 2015 18:36
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

Will check it out. Thx for your input!
Dieter
by ludieter
5 Feb 2015 13:13
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

global hotkeys

Thanks for your comments. It seems the (quick and dirty) solution would be to write a small program with Autokey or similar which I then call from Prolog. This would copy marked text and send to clipboard, where my program can pick up the string again..
by ludieter
4 Feb 2015 12:56
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

global hotkeys

yes, that's the idea. On using the hotkey, grab some text (which is already marked) from another program screen and insert it into my program. I was hoping that that is what gui_api::setClipboardData does somehow, or that there is another command somewhere in the vast number of MSDN commands in gui_...
by ludieter
3 Feb 2015 21:24
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

global hotkeys

Quick response! Thx.

But in order to put a string on the clipboard, I have to capture it first?
by ludieter
3 Feb 2015 21:01
Forum: Visual Prolog
Topic: global hotkeys
Replies: 21
Views: 9126

global hotkeys

Great, thanks for your help, Thomas. I had looked at the registerhotkey function, but did not really get it. Copying marked data from outside my prolog program to clipboard then uses gui_api::setClipboardData?I couldn't find anything else that looks promising.(but admittedly have not yet had time to...