| Author |
Message |
Topic: COM Standard Library |
erictheturtle
Replies: 135
Views: 12868
|
Forum: Scripts & Functions Posted: Sun Jul 06, 2008 7:00 pm Subject: COM Standard Library |
Hi Sean. Great job keeping the COM stdlib maintained and helping everyone with it.
I've run into a memory leak that affects both the COM stdlib and ws4ahk. This simple script will demonstrate it.
... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Thu Jul 03, 2008 6:13 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
- Numerous documentation improvements.
- Fixed error handling in WS_Initialize().
- WS_ReleaseObject(): added check to catch 0 or "" argument.
- Removed extraneous codef(), WS_ErrMsg( ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Thu May 29, 2008 5:42 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
That looks really good IN2ITive. I think with a little fix it might finally work.
Try this code out
WS_Initialize("VBScript")
initcode=
(
Set objTcp = C ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Thu May 29, 2008 2:57 am Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
Umm...splitting up every VBScript line into a separate WS_Exec() call will guarantee it won't work correctly.
Many of those lines will simply cause an error.
WS_EXEC("Do While TRUE&q ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Wed May 28, 2008 9:13 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
| Scoping shouldn't be a problem. All variables in the global script space are persistent and visible in every WS_Eval/WS_Exec block until you call WS_Uninitialize(). So objTcp should still be valid in ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Wed May 28, 2008 3:37 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
It says missing ")"...from the aboveI didn't see it at first but one of your squiggly brackets '}' needed to be a parenthesis ')'
I can't fully test this, but it runs and I think should b ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Tue May 27, 2008 9:00 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
With a quick glance I see the problem of using the WScript object. The WScript object is unfortunately only available to scripts (vbs or js) that are run by the wscript.exe or cscript.exe programs.
... |
Topic: Compiling with GCC |
erictheturtle
Replies: 11
Views: 871
|
Forum: Scripts & Functions Posted: Wed May 07, 2008 6:23 pm Subject: Compiling with GCC |
| Currently I am getting hung up on the DynaCall function which I am told cannot be done in anything but inline assembly. I will have to find some kind of replacement, even if it's just a "If this ... |
Topic: iTunes Anywhere (keyboard shortcuts) |
erictheturtle
Replies: 35
Views: 25566
|
Forum: Scripts & Functions Posted: Fri Apr 11, 2008 5:08 pm Subject: Re: In need of help on similar effort |
Hope this code isn't too late for you mashenden. It's untested, but this is basically how it could work.
; Setup a VBScript environment
WS_Initialize("VBScript")
; Get the iTu ... |
Topic: New Scripting.Dictionary wrapper |
erictheturtle
Replies: 3
Views: 615
|
Forum: Scripts & Functions Posted: Fri Mar 14, 2008 5:35 pm Subject: New Scripting.Dictionary wrapper |
| It looks good. Thanks for posting it. |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Tue Feb 12, 2008 4:53 am Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
Thanks for testing that script, vashk. If it worked in VBS, it worries me that ws4ahk has the problem. I would really appreciate it if you could try one more script.
Could you test this VBS code (s ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Fri Feb 08, 2008 11:28 pm Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
Sorry I didn't get this posted yesterday.
Your script converted to VBS
' fill in these values
c_sprogid = "" ' WCaptureX PROGID
m_sprogid = "" ' WMonitorX PROGID
i_sprogid ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Thu Feb 07, 2008 4:57 am Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
vashk
I took another long look at your code, and you've written it basically how I would. So my final troubleshooting suggestion is to re-write the code entirely in VB, VBA, or VBScript, and feedin ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Wed Feb 06, 2008 8:14 am Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
I see you are creating the objects via their CLSID. If you can create them via the ProgID directly in VB code, could you try that?
Also, I see you are adding pWr back into the scripting environment ... |
Topic: Embedded Windows Scripting (VBScript & JScript) and COM |
erictheturtle
Replies: 97
Views: 12451
|
Forum: Scripts & Functions Posted: Thu Jan 24, 2008 7:04 am Subject: Embedded Windows Scripting (VBScript & JScript) and COM |
ws4ahk v0.20
- WS_Exec()/WS_Eval(): Better handling of errors.
Removed printf() style functionality, moved to codef() function.
Removed leftover Clipboard debug.
- codef(): New function to ... |
| |