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 

Generic Callback Example - EnumWindows
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
nnesori



Joined: 14 Oct 2006
Posts: 15
Location: south korea

PostPosted: Fri Jun 15, 2007 4:05 pm    Post subject: Reply with quote

Quote:
Did you execute it directly from the command prompt or Run box

Yes,I executed it directly from the command prompt and Run box.

Quote:
Are you sure that it's not the bug/intererence of the application you used?

I made exit other applications from TNA and taskbar.
and I tested it. But same result.


Quote:
it would make them waste their precious times for nothing

I see your point. I'll check again.

Thanks Sean.
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1331

PostPosted: Fri Jun 15, 2007 4:35 pm    Post subject: Reply with quote

nnesori wrote:
Yes,I executed it directly from the command prompt and Run box.

Then, I think only Chris or JGR, who know the source code, can give a definite answer about it.
The only possible culprit I can think of atm is that some resident app like your Anti-Virus proggy somehow interferes AHK's processing the script, assuming your system is in healthy state.
I suggest to test again after unpacking AHK using UPX (upx300w.zip), which I always do after downloading AHK, and/or disabling temporarily the AV if you have one.

Code:
upx.exe -d -k AutoHotkey-RegisterCallback.exe
Back to top
View user's profile Send private message
David Andersen



Joined: 15 Jul 2005
Posts: 85
Location: Denmark

PostPosted: Mon Jun 18, 2007 4:30 pm    Post subject: Reply with quote

I have been reading through this thread and I have to admit that I still don't really understand what callback is. But do you think this in some way could be used to create true multithreading in AHK without the need to have lots of ahk processes in windows (it really looks ugly to have more than 10 ahk processes).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nnesori



Joined: 14 Oct 2006
Posts: 15
Location: south korea

PostPosted: Tue Jun 19, 2007 7:07 am    Post subject: Reply with quote

Quote:
Callback doesn't work on my Xp.


I found a solution.
Now, Callback is working on my Xp.
The solution is DEP(Data Execution Prevention) setting.
I think that something is abnormal.
But, I'm ok. Very Happy


Related Information :
How to Configure Memory Protection in Windows XP SP2.
Back to top
View user's profile Send private message
Lope
Guest





PostPosted: Sun Jun 24, 2007 11:04 pm    Post subject: Reply with quote

A question,
I receive the callback and the function associated with OnMessage is called, but I have not clear the concept of how to obtain the parameters.

The callback receives: (int,int,structure(int,int,int,int))

So... the number of parameters is 3 or 6 ?

If I want to access the first member of the structure, I do this:
res := GetDeRefInteger(lParam+8) but I get a huge number that doesn't change between calls and doesn't make sense.

What I'm doing bad ? Thanks.
Back to top
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
Page 4 of 4

 
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