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 

LowLevel & dynamic code
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Mon Jun 09, 2008 2:56 am    Post subject: Reply with quote

New version released. The download includes LowLevel.ahk, code.ahk and LowLevel.chm, which documents both scripts in addition to a number of AutoHotkey structures.
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4016
Location: Pittsburgh

PostPosted: Mon Jun 09, 2008 4:13 am    Post subject: Reply with quote

Lexikos wrote:
New version released.
It looks fantastic! (I need a couple of days to comprehend all these.) It finally opened the door for the popup calculator to support genuine functions, with true parameters and local variables.

Have you considered making an AHK version, which natively supports dynamic code generation?
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Mon Jun 09, 2008 8:21 am    Post subject: Reply with quote

Laszlo wrote:
Have you considered making an AHK version, which natively supports dynamic code generation?
Yes. It seems more worthwhile than writing an AutoHotkey parser around code.ahk, since all of the parsing and syntax-checking (most of which I would not bother to rewrite) is already done.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jul 13, 2008 6:26 pm    Post subject: Reply with quote

When attempting to incorporate LowLevel.ahk either via #include or as a AutoHotKey Lib ... I get the following error ...

Line Text: `sA_CaretX
Error: The leftmost character above is illegal in an expression.

.. when attempting to call any included function (like .. __int() or LowLevel_init()).

I'm using AutoHotKey Version 1.0.47.06.

I have never used this before, so I'm likely doing something stupid. Any help would be appreciated
Back to top
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Sun Jul 13, 2008 10:19 pm    Post subject: Reply with quote

Look for the following:
Code:
    ( Join`s
A_AhkPath A_AhkVersion A_AppData A_AppDataCommon A_AutoTrim A_BatchLines
A_CaretX A_CaretY A_ComputerName A_ControlDelay A_Cursor A_DD A_DDD A_DDDD
...
`s is a special escape code recognised only by continuation sections, meaning a space character. Have you by chance used the #EscapeChar directive? If not, I can't explain why that would happen, but I can suggest you try changing `s to `%A_Space% or `, (comma).
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jul 13, 2008 10:28 pm    Post subject: Reply with quote

I was using #EscapeChar ... removed and all is well.

Thank You
Back to top
rani



Joined: 18 Mar 2008
Posts: 59

PostPosted: Mon Jul 14, 2008 5:28 am    Post subject: Reply with quote

numput, numget

by using the bit mechanizm in AHK:

is it possible to set and then also get
a bit value=0 or bit=1
in specific location in a var ?

means
I set bit=1 as binary (no val=1 as asci) set in offset=20001234 (bit location very large)
in varcode myvar, let say

and then I want to retrieve (get) the bit value from above offset

can it be done ?

any help will be appreciated

rgds
ell
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4016
Location: Pittsburgh

PostPosted: Mon Jul 14, 2008 6:16 am    Post subject: Reply with quote

You could use the Windows bitmap functions exported by ntdll.dll. See an example here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group