As always ... all suggestions for improvement are welcome.
Search found 328 matches
- 08 Mar 2021 09:09
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
This is the one that works. 
As always ... all suggestions for improvement are welcome.
As always ... all suggestions for improvement are welcome.
- 08 Mar 2021 08:32
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
The version I attached yesterday evening (too) late is not 100%. Will fix it this morning and send it for testing. Sorry.
- 07 Mar 2021 22:27
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
I have changed the plugin to use the dropdown list. It's attached.
Ideas for more improvements are welcome.
Ideas for more improvements are welcome.
- 07 Mar 2021 19:13
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
Thanks, enjoy (the rest of) the evening!
- 07 Mar 2021 18:24
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
Sorry Helen, my 'code refactoring' was to rigorous especially for the one statement that does the change. It is corrected in this attachment. My testing has been with that statement disabled, that's why I didn't see it myself. :oops: Great suggestion about the 2 dropdown lists. Can that be done with...
- 07 Mar 2021 16:49
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
That makes a difference. When not in Debug mode the X button works ok. That solves it. thanks! Did it work in debug mode when you tested the snippet? What do you think, would other users be interested in this plugin? I've attached it. You can test it without it changing anything by commenting out: f...
- 07 Mar 2021 16:16
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
No, no iup dialogs open. It works ok without the parent windows except for the X button. When I press that, the dialog disappears but the plugin is still running and everything is frozen. When I do anything I get the question: Do you wish to break? No matter what I do (Yes or No) I can't get out of ...
- 07 Mar 2021 15:20
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
I used your code fragment (commented out mine and copy/paste yours) but FH crashes again on execution of the fh.getParam.
When I get rid of hWnd it doesn't crash. What should the value of hWnd be? It says (light user data)??
When I get rid of hWnd it doesn't crash. What should the value of hWnd be? It says (light user data)??
- 07 Mar 2021 14:51
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
I did this: local hWnd = fhGetContextInfo("CI_PARENT_HWND"); local par = fh.getParam('Change source template', 'Name of the template to change:', {{tag = 'oldTemp', label = 'Old template name:', type = 'STRING', value = sOld}, {tag = 'newTemp', label = 'New template name:', type = 'STRING', value = ...
- 07 Mar 2021 14:26
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
Helen, on execution of:
iup.SetGlobal("PARENTDIALOG", fhGetContextInfo("CI_PARENT_HWND"));
it says:
bad argument #2 to 'SetGlobal' (string expected, got light userdata)
iup.SetGlobal("PARENTDIALOG", fhGetContextInfo("CI_PARENT_HWND"));
it says:
bad argument #2 to 'SetGlobal' (string expected, got light userdata)
- 07 Mar 2021 13:53
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
The fh.GetParam part is: fh.setIupDefaults() local par = fh.getParam('Change source template', 'Names of the templates to change:', {{tag = 'oldTemp', label = 'Old template name:', type = 'STRING', value = sOld}, {tag = 'newTemp', label = 'New template name:', type = 'STRING', value = sNew}}, {'OK',...
- 07 Mar 2021 13:22
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
I did the setIupDefaults() but when leaving the window with X it still hangs. And after my Debug>Break it still hangs (forever) The message is attached.
Any ideas?
Any ideas?
- 07 Mar 2021 13:16
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
@Helen I indeed meant fh.getParam and I have not used setIupDefaults() and I'll do it now. Thanks.
@Mike Why did you assume iup.GetParam? Is it somehow preferable to fh.GetParam and if it's worth the trouble of messing with iup?
@Mike Why did you assume iup.GetParam? Is it somehow preferable to fh.GetParam and if it's worth the trouble of messing with iup?
- 07 Mar 2021 11:20
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
fh.getParam question
I must be doing something wrong but when testing fh.getParam in my plugin and pushing Close Window (x) the window vanishes (as expected) but the plugin hangs. Only Debug>Break is allowed, but when activated nothing breaks. If I Break again it just says that Break has already been requested. I had to...
- 05 Mar 2021 22:04
- Forum: Plugin Technical Support & Development
- Topic: How to get the current date in a plugin?
- Replies: 5
- Views: 2245
Re: How to get the current date in a plugin?
Yes, that's what I was looking for. Thanks!
- 05 Mar 2021 21:55
- Forum: Plugin Technical Support & Development
- Topic: How to get the current date in a plugin?
- Replies: 5
- Views: 2245
Re: How to get the current date in a plugin?
Thanks Mike, I tried this, but it seems to be a date object and I like to use it as text.
- 05 Mar 2021 21:49
- Forum: Plugin Technical Support & Development
- Topic: How to get the current date in a plugin?
- Replies: 5
- Views: 2245
How to get the current date in a plugin?
What is the best way to get the current date in a plugin?
- 05 Mar 2021 17:28
- Forum: Plugin Technical Support & Development
- Topic: OCR text on clipboard
- Replies: 2
- Views: 1460
Re: OCR text on clipboard
Thanks, I'll try it and let you know if and how it works.
- 05 Mar 2021 10:58
- Forum: Plugin Technical Support & Development
- Topic: OCR text on clipboard
- Replies: 2
- Views: 1460
OCR text on clipboard
A lot of text input is in (or can be changed to) the form of a .jpg and it would be nice to have the plugin's that I use to convert the text on the .jpg to readable text to make it usable. I've been looking into Tesseract as one of the most versatile and free options, but have no idea how to make us...
- 02 Mar 2021 20:36
- Forum: Plugin Technical Support & Development
- Topic: Change fact tag from individual to family
- Replies: 5
- Views: 2057
Re: Change fact tag from individual to family
No I wasn't following the TNG and FH event witnesses standoff (15833) discussion, but have read it now. Interesting and - as always - one man's standard is usually another man's headache. 
I only upload to TNG incidentally and think I'll wait for Darrin to straighten things out.
I only upload to TNG incidentally and think I'll wait for Darrin to straighten things out.
- 02 Mar 2021 18:07
- Forum: Plugin Technical Support & Development
- Topic: Change fact tag from individual to family
- Replies: 5
- Views: 2057
Re: Change fact tag from individual to family
Mike, good point: Have you any plans to export your Project to other products? The Export Gedcom File plugin caters for 2 dozen products and only 6 support GEDCOM 5.5.1 with Family Residence facts. The only exports I use are TNG and Second Site. I'll stick to the individual residence and when needed...
- 02 Mar 2021 17:27
- Forum: Plugin Technical Support & Development
- Topic: Error when renaming file with accented characters
- Replies: 29
- Views: 7303
Re: Error when renaming file with accented characters
Helen, I'm glad that you found this solution and I also think it seems promising for a broader use than only renaming.
I'll update the plugin to incorporate this approach (no snippet needed.
).
Thanks!
I'll update the plugin to incorporate this approach (no snippet needed.
Thanks!
- 02 Mar 2021 17:19
- Forum: Plugin Technical Support & Development
- Topic: Change fact tag from individual to family
- Replies: 5
- Views: 2057
Change fact tag from individual to family
Mike, I'm trying to use your Change Fact Tag plugin to change a number of residences to the new family residence. Before this fact type became available I solved a couple's residence using her/him as a witnesses, but I'm planning to change all of these to the new type. The plugin however doesn't see...
- 02 Mar 2021 16:36
- Forum: Plugin Technical Support & Development
- Topic: Error when renaming file with accented characters
- Replies: 29
- Views: 7303
Re: Error when renaming file with accented characters
Helen, Interesting approach and as far as I can see it works. I Tested it with: -- From simple to complex local sTitle = 'Test - Sydney, Australië 2014-01-10 - Joop äüè - о보라보라 я водитель н보라' local oldFileName = 'D:\\OneDrive\\Documents\\Genealogie\\BR\\Identificatie\\PP\\Test - Sydney 2014-01-10 -...
- 01 Mar 2021 18:08
- Forum: Plugin Technical Support & Development
- Topic: Error when renaming file with accented characters
- Replies: 29
- Views: 7303
Re: Error when renaming file with accented characters
I'll make sure that mapping to ? are substituted by ~.
Thanks mike.
Thanks mike.