I searched in vain for perlin noise implemented in ThinBasic. So decided to create something similar, based on random numbers, but easily controllable. I came up with the idea of a sparse array with...
Type: Posts; User: rjp74; Keyword(s):
I searched in vain for perlin noise implemented in ThinBasic. So decided to create something similar, based on random numbers, but easily controllable. I came up with the idea of a sparse array with...
Thanks Petr, for helping with the various "teething" troubles I have been having, and for your support. Much appreciated.
I did a complete TB & graphics card driver reinstall - this solved the problem.
My supplied code is necessary for people who want to use primitives as TBGL_EntitySetTarget is not available for...
Sorry Petr, but your example does not work on my machine - it paints a black screen then simply hangs...
7962
it locks up on line 73: TBGL_SceneRender(%sScene)
I have no idea why it does this....
Hi,
the basic TBGL_Cylinder must be aligned during creation. I wanted to have it fit between two points but I could not find any code to do that. I could find some OpenGL code that seems to do...
Hi
I worked out how to distribute the cloud spheres using the random number generator without them overlapping. The cloud of spheres now looks like this:
7953
The code was reworked using the...
Hi,
you may prefer this vertically aligned DNA spiral for your sample code - should you wish to do that. It has more visual impact.
7951
Hi
I attach a slightly modified DNA code with smaller geometry and window size of 800x600.
You would be welcome to add it to your examples you ship with TB.
Thanks for the heads up about RNDF. I...
originally, I was running with TBGL_SetPrimitiveQuality set to 100 because I copied the value from an example. Eventually I reduced it to 16 because at 100 my machine did take about 5 seconds longer...
Hi,
I wanted to get started with TBGL and had always wanted to create a nice DNA like picture so what better way to combine the two.
This is how it looks.
7945
and the script for it is here:...
I wrote a small program to list out the hierarchy of a programs controls.
It is very helpful to see how to navigate to the control you need.
For example the ouput for msPaint is this:
...
Its a new day and so I decided I would include the FormatWithLocale code.
However, I discovered very quickly that on my English system it does not work. it changes 1.003 into 1,003 for example.
I...
Good catch!
I believe that the format$() function should take into account the system Locale settings (System.Globalization.CultureInfo) so that the functions work internationally. A way to...
Using the framework from before, I thought I would create something that uses the standard Windows 7 MSPaint.EXE application as many people may not have Xara.
Ok - it was harder than expected due...
Hi
many thanks for all your help. I really appreciate that.
I have made a first working program that can do basic object and mouse manipulation.
Part 1 does a variation of hello world! and...
Thanks Petr,
Your code is just what I needed. Much appreciated.
Here is the full code needed to get the correct handle of a control. Here I am looking for controlID =100 and text ="SELRTOOLICON"...
I discovered that the code for getting the handle of a control does not always work as expected - especially when there are more than one controls with the same controlID. e.g in Xara the new...
I wrote a mouse click routine for the left mouse button which works.
Const WM_MOUSEMOVE As Long = &H200
Const WM_LBUTTONUP As Long = &H202
Const WM_LBUTTONDOWN As Long = &H201
...
The cause of the GPF is a mixture of two things:
1 - the time needed by the target application to process the current command before the next command is issued. This can be managed by issuing...
HI,
here is the autoIT example (attached zip) for Xara that I was originally hoping to rewrite using Thinbasic.
Start xara and then assuming you have autoIT installed run the attached xara Circle...
Hi Eros,
Yes I have tried with $CRLF - it does not have the same effect as keypress {Enter}.
$CRLF does not create an event whereas the simulated keypress does. It is this event that is critical to...
Hi, I made some progress. I needed to write a recursive control finder that returned the parent handle for that control. Then I could correctly use the send message function.
The code doesnt do much...
Hi,
Thanks for informing me that for the moment there is no solution. I am relieved that it was not caused by my making some basic mistakes.
I tried the code suggested by Petr Schreiber but it...
Thank you for your comments. Here is a picture showing the main parts I am in interested in automating. The arrows show the main controls I am trying to access.
The text boxes are only meaningful...
Hi,
I am trying to use ThinBasic to automate an existing win32 graphics application (xara).
However, I seem unable to make it work. The Control_GetText and Control_SetText calls appear to have no...