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 

COM section in Script Listings

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
AHKnow*
Guest





PostPosted: Mon Dec 03, 2007 4:23 am    Post subject: COM section in Script Listings Reply with quote

In the Script Listing section - http://www.autohotkey.com/wiki/index.php?title=Script_Listing

I think there should be a COM section. At least the following should be included:

http://www.autohotkey.com/forum/topic21674.html ( Embedded Windows Scripting (VBScript & JScript) and COM )

http://www.autohotkey.com/forum/viewtopic.php?t=20765&postdays=0&postorder=asc&start=0 ( Easycom.dll )

http://www.autohotkey.com/forum/viewtopic.php?t=22923&postdays=0&postorder=asc&start=0 ( COM standard library )

http://www.autohotkey.com/forum/viewtopic.php?t=16565&start=0 ( ADO COM )

http://www.autohotkey.com/forum/viewtopic.php?t=16631&start=0 ( COM Helper )
Back to top
majkinetor



Joined: 24 May 2006
Posts: 3652
Location: Belgrade

PostPosted: Mon Dec 03, 2007 5:39 pm    Post subject: Reply with quote

There is com section at wiki, alas, nobody wants to maintain it besides me....
_________________
Back to top
View user's profile Send private message MSN Messenger
Sean



Joined: 12 Feb 2007
Posts: 1397

PostPosted: Tue Dec 04, 2007 12:32 am    Post subject: Reply with quote

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
View user's profile Send private message
AHKnow*
Guest





PostPosted: Tue Dec 04, 2007 3:32 am    Post subject: Reply with quote

By the way Sean, you are like an AutoHotkey hero. Great work.
Back to top
AHKnow*
Guest





PostPosted: Tue Dec 04, 2007 3:56 am    Post subject: Reply with quote

majkinetor wrote:
There is com section at wiki, alas, nobody wants to maintain it besides me....


I'm missing something. I don't see a com section at:

http://www.autohotkey.com/wiki/index.php?title=Main_Page

http://en.wikipedia.org/wiki/AutoHotkey

http://www.autohotkey.com/wiki/index.php?title=Script_Listing


There is a COM section at-

http://www.autohotkey.com/wiki/index.php?title=Function_Listing

I'm just thinking that COM is a bit hidden.

It does not seem that it would be obvious. Considering how far COM development has come along and the expansion in the ability of AutoHotkey, that it perhaps should be made more clear.

Plus, COM is like a mini-world to itself. I would think a AutoHotkey user just getting into using it would like to have as much info. and scripts links as are helpful. Maybe some COM tool links as well ( http://www.autohotkey.com/forum/topic25527.html )
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Dec 04, 2007 4:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
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