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 48 matches
AutoHotkey Community Forum Index
Author Message
  Topic: COM Event Handler
tfcahm

Replies: 61
Views: 6391

PostForum: Scripts & Functions   Posted: Thu Sep 06, 2007 9:14 pm   Subject: COM Event Handler
I added to AtlAx.ahk
AtlAxCreateControl(hWnd, Name, Version = "")
which is actually the wrapper of AtlAxCreateControlEx.Works perfectly! Was going to post my code but I see my pro ...
  Topic: COM Event Handler
tfcahm

Replies: 61
Views: 6391

PostForum: Scripts & Functions   Posted: Wed Sep 05, 2007 4:19 pm   Subject: COM Event Handler
I merged CoEvent.ahk into CoHelper.ahk.Nice!

You might want to add something like this to AtlAx.ahk. It is useful for controls that will not initialize using CreateObject() followed by AtlAxAtta ...
  Topic: COM Helper
tfcahm

Replies: 147
Views: 20359

PostForum: Scripts & Functions   Posted: Thu Jul 26, 2007 3:05 pm   Subject: COM Helper
_TEMP_VT_BYREF_%A_Index% is dynamically generated global variables inside Invoke_().I completely missed that...working too late. Thanks.

Do you know of an app which uses other than bstr as ByRef? ...
  Topic: COM Helper
tfcahm

Replies: 147
Views: 20359

PostForum: Scripts & Functions   Posted: Thu Jul 26, 2007 7:37 am   Subject: COM Helper
OK, I implemented VT_BYREF too in Invoke_().Wow...unexpected. Thanks!

It runs perfectly as you wrote it above, but strangely it does not work properly as a function. The values for _TEMP_VT_BYREF ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Thu Jul 26, 2007 12:13 am   Subject: ADO COM
Thanks for the script.
I like th part of writing/reading binary files to DB.Glad you found it useful.

I remeber there is a way of compressing MDB(access file).
Do you know what it is(maybe method ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Wed Jul 25, 2007 4:43 pm   Subject: ADO COM
Here's an example script that uses ADO COM to do some Access database manipulations. The script by itself does not do anything particularly useful, but it does demonstrate several basic operations. B ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Wed Jul 25, 2007 9:25 am   Subject: ADO COM
Sorry for the delay in posting the promised script. I ran into a problem with the most recent CoHelper.ahk (edit 33). The change from "Int64" to "Uchar" to this statement of Invo ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Tue Jul 24, 2007 11:06 pm   Subject: ADO COM
Good to know, and don't forget to release the array after finished:
Thanks for that.

Should Release() be called on every type IDispatch? For example:...
Invoke_(pmstream, "Write" ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Tue Jul 24, 2007 6:20 am   Subject: ADO COM
As a temporary workaround, replace the following part in varResult
NumGet(varResult,0,"Ushort")=8||NumGet(varResult,0,"Ushort")<>9&&

with
NumGet& ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Tue Jul 24, 2007 5:13 am   Subject: ADO COM
8209 = 0x2011 is VT_ARRAY | VT_UI1, i.e., an array of bytes.
So, try after replacing 12 with 8209. An array of bytes certainly makes sense, but 8209 gave the same result.
If it still doesn't work, I ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Tue Jul 24, 2007 3:20 am   Subject: ADO COM
Why did you use 12 as the type? 12 is VT_VARIANT, so, I suppose it was wrong here unless the data field is encapsulated in a variant. I tried them all. VT_VARIANT was the last one left in there befor ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Tue Jul 24, 2007 1:15 am   Subject: ADO COM
I suppose a way with the least risk would be that if a parameter is recognized as an integer don't do type coercion into bstring but do specify it as one of the integer types. It would also reduce sub ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Mon Jul 23, 2007 6:02 pm   Subject: ADO COM
BTW, what do you guys think about omitting member function name "Item" in the index parameter cases?
Was it a good or a bad decision?The only problem I have with it will be remembering to u ...
  Topic: ADO COM
tfcahm

Replies: 51
Views: 6379

PostForum: Scripts & Functions   Posted: Mon Jul 23, 2007 2:43 pm   Subject: ADO COM
Your example with the updated CoHelper.ahk doesn't work for me (Excel 2000 v. 9.0.6926 SP-3) What does it do, or not do? I run the same version of Excel on XPSP2 and it works fine here.
  Topic: Explorer Windows Manipulations
tfcahm

Replies: 42
Views: 5447

PostForum: Scripts & Functions   Posted: Mon Jul 23, 2007 5:36 am   Subject: Explorer Windows Manipulations
One thing which might affect is: what version of IE installed?
IE7 is installed on my machine.Right you are! I never upgraded to IE7. Just did so and the previous script using IPersistFolder3 and I ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group