topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 5:35 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - oyster [ switch to compact view ]

Pages: [1]
1
Developer's Corner / an ole component for calculation?
« on: September 07, 2008, 12:08 AM »
During my work, I often write documnets in ms-word. But the doc has many numbers in it, which need to be calculated via a some complex function and to be modified frequently.

Is there a method to write an ole control, so that
1. when I choose menu 'insert->object' in ms-word, a window is popped up, then I can type in the calculation steps in some program language
[attach=#1][/attach]

2.when I close the 'fake ms-word add-in for calculation' window, the result (here, it is 8) is shown in the doc
[attach=#2][/attach]

3.when I double-click the result 8, I can view/edit the code again like what I do in step 1

4.the prg is stored in DOC file too


mathtype equation ( http://www.dessci.com/mathtype ) is such kind of thing, but only for displaying nice equation

I don't think vba is a good answer, the main reason is: the vba code has an incompact link with its result in the documnet. If there are many calculation, I have to remember which function yields which result, when I have to modify, I must browse all VBA function name

for the calculation part, I prefer to python(www.python.org) interpreted langauge for the following reasons:
1.the pythonxx.dll supplies many math operations and functions(+-*/, sin/cos/..., log, pi, pow etc), which is only about 1.7M
2.if more math function is need, scipy+numpy can be used, however ~23M space will be used; or we can use http://code.google.com/p/sympy/  which is smaller but with limited function

I can write program in FB, python and a little C. Can any one tell me
1.is this kind of software possible
2.which technology is used? if there are some simple code demo, it will be better.

thanx

2
General Software Discussion / any english ime?
« on: March 20, 2006, 07:09 AM »
ie, it works like a ime. when I input something, it prompts the possible english word, so I can choose from it
he
1.he 2.her 3.hero 4.hello
her

1.her 2.hero
sorry if that has been asked. since english is not my native language, I donno whcih keyword that I can use in my search

3
LShift a=You pressed A.
LShift b=You pressed B.
...

Skommel
Yes, please. I think blenderheads would like to read LMB other than LButton ;)

4
Thank you, bmm and Skrommel :D
I have tried this script, it is nice and works almost like what I have expected. But here are some problems:
1. It does not support key-combination well, for example, I press Ctrl+D, sometimes there is only Ctrl is shown.  I am using win98 and I have added Ctrl in the ini file
The showed mouse button disappear more quick than keypress. If I Ctrl+LMB, "LButton" flashes quickly, and then there is only "ctrl" left on the screen

2. How can I change the order of displayed characters. If I use Shift+F1, "F1 Shift" is shown. But I think Shift, Ctrl, Alt then other chars and mouse is a good order.

3. How can I get the real keypress? If I press Enter, it says "Enter NumpadEnter",",<" for "," etc. How can I get "a", "A", "shift a", ",", "<" and so on?

thanx again

Pages: [1]