05-20-2016 08:10 AM
Hello,
i would like to report a small bug. In script panel i mapped scripts on the quick run buttons in the left bar, so when i press a SHIFT key and F1-F12, it triggers a script. But when i run a script by pressing SHIFT + F3, after finishing the script, it opens a dialog for search. If i map a script on first position, i would expect opening a help (F1), after finishing of the script, but nope, nothings happen. so i think its a bug.
I attached an image to show u how my script ends after running it by pressing SHIFT + F3.
i spent some time searching for the warning in my code after i found out this behaviour, hope it will save time of other people
Solved! Go to Solution.
05-30-2016 02:33 AM
Dear Mr. Doubek,
I tried to replicate described behavour with the following dummy script:
Option Explicit
MsgBox("Dummy message triggered from the script")
And it executes correctly without throwing "cannot find ..." dialog. Could you try to replicate it on your machine with some trivial script asigned for Shift-F3 key shortcut? Feel free to write or call me on the local Tech Support.
Best Regards,
Ondřej K.
NIEE AE
06-01-2016 01:12 AM
Hello,
i tried it and it ended without throwing dialog. i included some file as well as in my script i include lot of files, and still no dialog, so i guess it reacts on some special code in my scripts.
06-01-2016 01:23 AM - edited 06-01-2016 01:24 AM
Mr. Doubek,
that was my first assumption... Anyway, please mark this thread as resolved.
Best Regards,
Ondřej K.
NIEE AE
06-03-2016 07:56 AM
I found out the strange behaviour. When u tried it on script with dummy message and nothing happen after script finished, i wrote it worked same as for you. Its ok when u got fresh instance of Diadem.
But before launching the script, try to search for something and close the dialog and then press SHIFT+F3, then you will get the dialog i am talking about.
06-03-2016 08:14 AM - edited 06-03-2016 08:15 AM
Hello,
I think I finally understand why it is happening. It only happens when you use "Ctrl + F3" key shortcut in the DIAdem script editor when nothing is selected. This shortcut runs sort of quick search inside the active script and searches for the string that is actually selected. So for example if you will have the following script:
dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat
dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat
dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat dog cat
And you will select "dog" + push the "Ctrl + F3" key shortcut your text selection will be jumping from one dog to another 🙂
On the other hand if nothing will be selected you'll get notification that null (empty expression) was not found.
I wouldn't consider it as a bug. What do you think?
Best Regards,
Ondřej K.
NIEE AE
06-06-2016 01:45 AM - edited 06-06-2016 01:46 AM
I would not consider it as a feautre neither 🙂
i tried ur scenerio, and when selecting the string dog and serach for it and then run SHIFT+F3, after running the script, it jumpes to different search occurence. when i search someting that doesnt exists in the code, it triggers dialog.
i think its bug, cause your program should catch the shortcut SHIF+F3 which is assigned to trigger my personal script, and after that, it triggers classic search command. it should trigger nothing, so that why i call it bug
06-06-2016 02:20 AM
Dear Lukas.Doubek,
I cannot reproduce this behavior in DIAdem 15.0.0f6005 (32-bit). Can you please tell us the exact version of DIAdem that you are using (in Help > About...)? What OS you are using (version, service pack, 32b/64b, is it localized? what regional settigns you use?)?
Thanks for the additional info!
B/R
06-06-2016 02:32 AM
06-06-2016 02:36 AM