AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 22 matches
AutoHotkey Community Forum Index
Author Message
  Topic: AHKArray [Real Array - One Variable] [Version 5]
RaptoR

Replies: 61
Views: 8900

PostForum: Scripts & Functions   Posted: Mon May 05, 2008 8:41 am   Subject: AHKArray [Real Array - One Variable] [Version 5]
If you want to use a string this would work:
Thanks for the explanation.

Second, AHKANewArray takes either 0 parameters, or 2. Never 1.
I found it being kinda strange, because prototype of AHKASp ...
  Topic: AHKArray [Real Array - One Variable] [Version 5]
RaptoR

Replies: 61
Views: 8900

PostForum: Scripts & Functions   Posted: Sun May 04, 2008 12:47 pm   Subject: AHKArray [Real Array - One Variable] [Version 5]
Hm, it seems that this simple code hangs AHKA:
myarr := AHKANewArray("[A, B, [C1, C2], D, [E1, [E2i, E2ii, E2iii], E3], F]")

(I tried to use t ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Mon Feb 04, 2008 11:38 am   Subject: Re: The AHK object system, ver 1.0
lexiKos, thank you for the replies, I appreciate your help!


I don't understand your aversion to GlobalAlloc. The problems I see with your current method are:
_this_%..% can never be deleted.
No ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Fri Feb 01, 2008 6:04 am   Subject: The AHK object system, ver 1.0
Aha, I finally have found some solution!

We need to use one basic function, Object_new(size) that allocates memory and returns integer numerically equal to the pointer to the memory. In this very f ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Thu Jan 31, 2008 2:47 pm   Subject: OOP or how to create the equivalent

Take a look at the second example in the post I linked to earlier (also below). GlobalAlloc returns a pointer to allocated memory. Pointers can be passed to and from functions, since they are simply ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Thu Jan 31, 2008 2:45 pm   Subject: OOP or how to create the equivalent
First, it is not possible to use ByRef parameters because we sometimes have to return an object,Simple usegetXY(xy)instead ofxy := getXY()
This also solves the constructor issue: ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Thu Jan 31, 2008 12:07 pm   Subject: OOP or how to create the equivalent
Perhaps Guest meant procedural code vs. objects in general, or maybe using AutoHotkey pseudo-arrays.

I did a little step towards emulating OOP, although met with several obstacles.

First, it is ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Thu Jan 31, 2008 11:01 am   Subject: OOP or how to create the equivalent

Are you RaptoR?? If you mean this in an ironical way ... so I donīt know why.

Noooo! Guest is not me, dont be confused so easy! Smile
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Mon Jan 28, 2008 11:38 am   Subject: OOP or how to create the equivalent
I would forget the java code style and write it in AHK syntax style.
Could you please show me, what AHK syntax style is? IMHO, concepts are independent of the language.
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Mon Jan 28, 2008 11:36 am   Subject: OOP or how to create the equivalent
The answer depends on how the data is stored. If the objects have a static number of numeric fields, VarSetCapacity and NumPut/NumGet would probably be most efficient. If the objects have arrays or st ...
  Topic: OOP or how to create the equivalent
RaptoR

Replies: 18
Views: 582

PostForum: Ask for Help   Posted: Sun Jan 27, 2008 10:34 am   Subject: OOP or how to create the equivalent
Hi all!

I am trying to convert the following program in Java into AHK, but get stuck in finding more or less acceptable equivalent Sad Here is java code:

///
public class MyCollection
{
...
  Topic: For the coders - Automatic comment box
RaptoR

Replies: 9
Views: 4371

PostForum: Scripts & Functions   Posted: Mon Jan 21, 2008 1:46 pm   Subject: Re: For the coders - Automatic comment box
I did a cursory search of this forum for utility or function to automatically build a comment box (not exactly sure what to search for) but I didn't find anything.
...
I hope someone finds this usef ...
  Topic: real thread handling
RaptoR

Replies: 24
Views: 3215

PostForum: Wish List   Posted: Mon Jan 21, 2008 12:13 pm   Subject: real thread handling
Thread programming is known to be tricky and quite complex: after running tasks in parallels, people will ask ways to synchronize threads, to share data between threads, and so on. A real Pandora box! ...
  Topic: Python
RaptoR

Replies: 8
Views: 562

PostForum: General Chat   Posted: Mon Jul 09, 2007 4:04 pm   Subject: Python
degarb,

Python is conceptually complete full-fledged programming language, it is not intended to provide only support for some tool. It can be integrated in any program in variety of languages (Jav ...
  Topic: What Editor do you use for AHK programming?
RaptoR

Replies: 41
Views: 3597

PostForum: General Chat   Posted: Mon Jul 09, 2007 1:56 pm   Subject: What Editor do you use for AHK programming?
jonib,
Have you checked out FAR manager plugins?
Oh, yes! 90% of the power of this tool is its wide extensibility. Cool

btw: I wrote by myself hrc shemas for TXL (it is special program-to-program t ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group