 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
AHKnow* Guest
|
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Mon Dec 03, 2007 5:39 pm Post subject: |
|
|
There is com section at wiki, alas, nobody wants to maintain it besides me.... _________________
 |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Tue Dec 04, 2007 12:32 am Post subject: |
|
|
As there seems to be few members being aware of it, I'd like to emphasize that invoking Windows Script Control directly via COM.ahk is possible.
| Code: | Code=
(
sh=new ActiveXObject("WScript.Shell");
sh.Popup('Hello, world!', 2);
)
COM_ScriptControl(Code, "JScript")
Return
COM_ScriptControl(Code, Language = "", Method = "ExecuteStatement")
{
COM_Init()
psc := COM_CreateObject("MSScriptControl.ScriptControl")
If Language
COM_Invoke(psc, "Language=", Language)
ret := COM_Invoke(psc, Method, Code)
COM_Release(psc)
COM_Term()
Return ret
}
|
|
|
| Back to top |
|
 |
AHKnow* Guest
|
Posted: Tue Dec 04, 2007 3:32 am Post subject: |
|
|
| By the way Sean, you are like an AutoHotkey hero. Great work. |
|
| Back to top |
|
 |
AHKnow* Guest
|
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Dec 04, 2007 4:00 am Post subject: |
|
|
in any case, the autohotkey wiki is, in fact, a wiki, so you are free to add any COM section you like.
I personally feel that the wiki doesn't get enough use (not that I can talk, I don't update it either.) _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| 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
|