 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Mon Nov 26, 2007 2:16 pm Post subject: |
|
|
| Sean wrote: | | lexikos wrote: | | it doesn't seem worth worrying about. | I'm not worried. I just don't like to play/mess with SafeArray, as I would try to manage it manually minimizing the usage of SafeArray APIs as I did with Variant. |
I got bored and it's pretty simple in this case, I created the SafeArray manually:
| Code: | VarSetCapacity(rArgs,24,0), NumPut(&vtArg,NumPut(16,NumPut(1,rArgs,0,"Ushort")+2)+4), NumPut(1,rArgs,16)
paArgs := &rArgs
; COM_SysFreeString(psLibrary)
|
|
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Mon Nov 26, 2007 11:25 pm Post subject: |
|
|
| Andreone wrote: | | Quote: | | What .NET capabilities would people be interested in? | For example, the ability to load a c# UI component ... | Or being able to use .NET methods in general. Would be useful in some places, especially for those who are more familiar with this than WinAPI. It would be interesting to see if portability could be increased to support Linux/Mac on Mono, although I don't know what kind of changes to AutoHotkey would be needed. _________________
 |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Mon Dec 03, 2007 9:31 am Post subject: |
|
|
I haven't done much with the script lately, so I figured I'd post what I have so far. I've also posted a "translation" of some sample code from the XPTable article at The Code Project.
I used Sean's "manual SafeArray creation" code, so thanks for that (and your other help, of course ), Sean. |
|
| Back to top |
|
 |
AHKnow
Joined: 03 Jul 2004 Posts: 118
|
Posted: Tue Dec 04, 2007 6:09 am Post subject: |
|
|
| An amazing conversation between Sean, Lexikos, and others. .NET and COM capabilities embedded in AutoHotkey. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|