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 101 matches
AutoHotkey Community Forum Index
Author Message
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Mon Aug 15, 2011 1:33 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
I am using AutoHotKey_L version 1.1.01.00 (although I have just upgraded to 1.1.02.00 but still the same)
I have just downloaded the latest version of ws4ahk.ahk (.21 beta I think it said)

I have ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Wed Aug 10, 2011 6:03 am   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
Can someone point me in the right direction please as I am having trouble getting ws4ahk.ahk to work for me

Whatever I try to run I just get the error "Windows Scripting has not been initializ ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Tue Jun 14, 2011 7:53 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
Try checking the return value of all WS_* calls. If they're not returning True then something is wrong. Check ErrorLevel for details.
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Thu Dec 09, 2010 8:41 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
the results are returned in VBS as an array.

The question is how do I get the data from array speed so I can use it in AHK ?

Alternately can I create a GUI with a dropdown list in it with the va ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Fri Nov 12, 2010 10:38 am   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
Adding this extra function should let you set the timeout.

; Set timeout in milliseconds
SetTimeout(iTimeout)
{
global __WS_iScriptControlObj__
iErr := DllCall(__WS_V ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Sun Aug 22, 2010 12:23 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
I'm seeing several errors in your code, but I understand what you're trying to do, and there's no way that would work. You would have to do some very impressive hacking to share objects in memory betw ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Fri Aug 20, 2010 7:38 pm   Subject: Re: Using Object in different scripts?
Since AHK does no multi-threading I would like to use all off my CPUs by doing some actions one the same object with different parameters in parallel.
Unfortunately I don't know any way to use do mu ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Wed Jul 21, 2010 3:26 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
So far this is the first I've seen anyone trying to pass arrays between environments. You got the right idea, although the WS_ReleaseObject(Code) line shouldn't be there (could crash the progr ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Wed May 12, 2010 12:51 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM

I'm not sure why people seem to like to use WS_CreateObject() and WS_AddObject() when it's less error-prone to just create the object in VBScript directly.

Thanks for the reply.

Can you please ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Wed May 12, 2010 12:29 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
Woah tank, you're fast. I couldn't even login before you finished replying ;)

To add to tank's correct reply, here is a bit more.

#Include ws4ahk.ahk
WS_Initialize()
USERNAME := ...
  Topic: Using wscript.ConnectObject for events in VBS with ws4ahk
erictheturtle

Replies: 4
Views: 727

PostForum: Ask for Help   Posted: Sat Apr 17, 2010 7:13 am   Subject: Using wscript.ConnectObject for events in VBS with ws4ahk
Thanks as always tank for being one of the first to help those with COM related stuff.

@ebpdoug
Unfortunately ws4ahk doesn't do event registering and handling (which is what I think you are seeki ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Fri Feb 19, 2010 9:22 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
It's good you posted your code, and checked what ErrorLevel says. You should also try putting your code into a .vbs file and running it. It will give you the same result. This is because you are doing ...
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Fri Feb 19, 2010 1:50 pm   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
What's the value of ErrorLevel after each call?
  Topic: Embedded Windows Scripting (VBScript & JScript) and COM
erictheturtle

Replies: 231
Views: 59795

PostForum: Scripts & Functions   Posted: Fri Feb 19, 2010 3:35 am   Subject: Embedded Windows Scripting (VBScript & JScript) and COM
I had a feeling ws4ahk wasn't going to work with Lexikos's impressive Unicode improvement.

I can appreciate wanting it updated, but is there a reason why you need to run the GoogleEarthPhotoTag pro ...
  Topic: Outlook Redemption - Access Outlook using Data Objects [COM]
erictheturtle

Replies: 3
Views: 2626

PostForum: Utilities & Resources   Posted: Wed Oct 07, 2009 3:36 am   Subject: Outlook Redemption - Access Outlook using Data Objects [COM]
I've known about this error for a long time, but have never seen a very convenient work-around. Perhaps that Outlook Redemption may do the trick.

Here is another site I just found that really gets ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group