Search:

Type: Posts; User: rjp74; Keyword(s):

Search: Search took 0.03 seconds.

  1. Thread: Lava Lamp

    by rjp74
    Replies
    3
    Views
    6,713

    Lava Lamp

    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...
  2. Thanks Petr, for helping with the various...

    Thanks Petr, for helping with the various "teething" troubles I have been having, and for your support. Much appreciated.
  3. code now works

    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...
  4. Example does not work

    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....
  5. TBGL_Cylinder aligned between two specified points

    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...
  6. Thread: Simple DNA Model

    by rjp74
    Replies
    7
    Views
    12,177

    Clustering problem solved

    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...
  7. Thread: Simple DNA Model

    by rjp74
    Replies
    7
    Views
    12,177

    Vertically Aligned

    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
  8. Thread: Simple DNA Model

    by rjp74
    Replies
    7
    Views
    12,177

    DNA code with smaller geometry and window size

    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...
  9. Thread: Simple DNA Model

    by rjp74
    Replies
    7
    Views
    12,177

    originally, I was running with...

    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...
  10. Thread: Simple DNA Model

    by rjp74
    Replies
    7
    Views
    12,177

    Simple DNA Model

    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:...
  11. Replies
    27
    Views
    20,792

    Listing a target applications controls

    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:


    ...
  12. Replies
    27
    Views
    20,792

    FormatWithLocale

    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...
  13. Replies
    27
    Views
    20,792

    System Locale

    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...
  14. Replies
    27
    Views
    20,792

    Automating MSPAINT

    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...
  15. Replies
    27
    Views
    20,792

    First Working version!

    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...
  16. Replies
    27
    Views
    20,792

    Get Controls Handle gievn control text and number

    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"...
  17. Replies
    27
    Views
    20,792

    Get Handle of Control

    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...
  18. Replies
    27
    Views
    20,792

    Mouse Click and mouse drag

    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
    ...
  19. Replies
    27
    Views
    20,792

    cause of GPF

    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...
  20. Replies
    27
    Views
    20,792

    autoIT example

    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...
  21. Replies
    27
    Views
    20,792

    $crlf

    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...
  22. Replies
    27
    Views
    20,792

    setting control text

    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...
  23. Replies
    27
    Views
    20,792

    ControlGetText and ControlSetTExt

    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...
  24. Replies
    27
    Views
    20,792

    Control_GetText and Control_SetText

    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...
  25. Replies
    27
    Views
    20,792

    Control_GetText and Control_SetText

    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...
Results 1 to 25 of 25