Link to home
Start Free TrialLog in
Avatar of CreepyD
CreepyDFlag for United Kingdom of Great Britain and Northern Ireland

asked on

JSSys3.dll wont work with Windows 7 - any alternatives?

This code works fine in XP, but refuses to work in Windows 7.
The error is on line:
Set sys=createobject("jssys3.ops")

The error is:
Unknown runtime error 'create object'
MS VBScript runtime error.

I use it to enumerate all the window titles, only continue if certain ones are open, and also to switch to certain named windows.

Anyone know of a Windows 7 equivalent or another way of doing this that keeps it simple?
Avatar of CreepyD
CreepyD
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Here's a snippet of my code which shows how I'm using it.
I read about AutoIT but since my code is complete and working, I'd rather find a quick alternative just for this section :)
Set sys=createobject("jssys3.ops")
ncount=sys.getopenwindowtitles(a)
		for Each window In a
		    If Window = "BADGE DESIGNS" Then
		    	sys.SetWindowActive "BADGE DESIGNS",2
		    	Exit For
		    End If
		Next

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of CreepyD
CreepyD
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial