Ok but this is not win32 api, these are components running on top of the com interface. If we could have access to the raw win api functions it would be great, but it seen there was a confusion here. Thanks Marlon 2007/10/19, Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx>: > Yes, it looks like just about anything that can be instantiated as an object > in VBScript or ASP can also be used in JAWS. For instance, the following > function will check for an instance of a currently running app, and monitor > the instance until it changes. > > In my case, I needed to halt all user interaction while the app in the > background was running, so used a loop with a time delay. > > ;Parameters > const xName "MiniCap.exe" > globals int xInstances > > ;To use, isProcessRunning should be called before and after the app to be > run, this compares the two values with each other. > ;For instance, > let xInstances = isProcessRunning(false) > ; Function to initiate the background app using COM... > isProcessRunning(true) > > ; function code... > > Int Function isProcessRunning (int WantToLoop) > > var object objWMIService, > > object colProcesses, > > int NumberOfProcesses, int i > > let objWMIService = GetObjWMIService () > > While (((WantToLoop && > > NumberOfProcesses != xInstances) || > > (!WantToLoop && > > !i)) && > > i <= 30) > > let colProcesses = objWMIService.ExecQuery("Select * from Win32_Process > Where Name = '" + xName + "'") > > let NumberOfProcesses = colProcesses.Count > > if WantToLoop then > > ;PlaySound (GetJAWSSettingsDirectory () + "\\" + MainFolderName + "4.wav") > > Delay (10, true) > > endif > > let i = i + 1 > > EndWhile > > if i >= 30 then > > MessageBox ("Process function timed out") > > endif > > if not objWMIService then > > MessageBox ("objWMIService could not be created") > > endif > > let objWMIService = Null () > > let colProcesses = Null () > > Return NumberOfProcesses > > EndFunction > > > Object Function GetObjWMIService () > > Return GetObject("winmgmts:\\\\" + "." + "\\root\\cimv2") > > EndFunction > > > ----- Original Message ----- > From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Friday, October 19, 2007 7:15 AM > Subject: Re: How much text can go into a registry variable? > > > > he's probably using com? > > ----- Original Message ----- > > From: "Marlon Brandão de Sousa" <splyt.lists@xxxxxxxxx> > > To: <programmingblind@xxxxxxxxxxxxx> > > Sent: Friday, October 19, 2007 5:10 AM > > Subject: Re: How much text can go into a registry variable? > > > > > >> heya you're doing win api callsfrom jaws scripts? How you achieve this? > >> I am not aware of any way of doing that but it would be very helpfull.. > >> Marlon > >> > >> 2007/10/19, Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx>: > >>> I'm actually writing an app which combines JAWS scripting, and VB.net. > >>> The > >>> JAWS script is the backend interface for the VB.net functionality. So, > >>> essentially, the user will be passing information directly to the VB.net > >>> dll > >>> through the script. It's a bit complicated, since I'm also using some > >>> standard Windows API calls as well within the JAWS script as well, to > >>> check > >>> if certain processes are running in the background, thus making the > >>> execution pause while waiting for the processes to complete. > >>> > >>> I don't really know much about XML, so haven't explored this too deeply. > >>> However, Jamal's suggestion for using WScript.Shell seems promising. If > >>> I'm > >>> unable to make a loop to cycle between all available sub-variables such > >>> as > >>> within a url history say, I don't think it will be too difficult to do > >>> using > >>> vb.net. > >>> > >>> To be on the safe side, I think I'll just stay away from the single > >>> string > >>> variable approach. > >>> > >>> ----- Original Message ----- > >>> From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx> > >>> To: <programmingblind@xxxxxxxxxxxxx> > >>> Sent: Thursday, October 18, 2007 9:30 PM > >>> Subject: Re: How much text can go into a registry variable? > >>> > >>> > >>> > That would depend on how your parsing and etc. what language are you > >>> > using? > >>> > > >>> > ----- Original Message ----- > >>> > From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx> > >>> > To: <programmingblind@xxxxxxxxxxxxx> > >>> > Sent: Thursday, October 18, 2007 4:04 PM > >>> > Subject: Re: How much text can go into a registry variable? > >>> > > >>> > > >>> >> Ah, yes. I had a similar thought. Since it's uncertain how many urls > >>> >> will > >>> >> be stored at any given time, likely a sub key called History would > >>> >> work, > >>> >> with each url being added as sub variables. This would also make it > >>> >> easier to clear by deleting the parent key (History). > >>> >> > >>> >> Inthane, > >>> >> > >>> >> I thought about using an ini file as well, but it appears to work > >>> >> quite a > >>> >> bit slower than the registry for retrieve/write functionality. Plus > >>> >> it > >>> >> gets slower the larger the ini file becomes. > >>> >> > >>> >> Thanks for the suggestions, > >>> >> > >>> >> Bryan > >>> >> ----- Original Message ----- > >>> >> From: "Jamal Mazrui" <empower@xxxxxxxxx> > >>> >> To: <programmingblind@xxxxxxxxxxxxx> > >>> >> Sent: Thursday, October 18, 2007 3:25 PM > >>> >> Subject: Re: How much text can go into a registry variable? > >>> >> > >>> >> > >>> >>> Not sure, but I think you'd hit the limit if storing multiple URLs. > >>> >>> I > >>> >>> suggest creating a seperate value name for each, e.g., > >>> >>> URL001, URL002, etc. > >>> >>> > >>> >>> Jamal > >>> >>> On Thu, 18 Oct 2007, > >>> >>> Bryan Garaventa wrote: > >>> >>> > >>> >>>> Date: Thu, 18 Oct 2007 14:48:18 -0700 > >>> >>>> From: Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx> > >>> >>>> Reply-To: programmingblind@xxxxxxxxxxxxx > >>> >>>> To: programmingblind@xxxxxxxxxxxxx > >>> >>>> Subject: How much text can go into a registry variable? > >>> >>>> > >>> >>>> I have a long list of urls, that I'm currently saving into a key in > >>> >>>> the > >>> >>>> registry. However, urls are being added to this list all the time, > >>> >>>> and > >>> >>>> the > >>> >>>> string within my History variable is expanding rapidly. > >>> >>>> > >>> >>>> For instance, the list is currently being saved under > >>> >>>> Software\MyApp, > >>> >>>> under > >>> >>>> the variable name History > >>> >>>> > >>> >>>> I wouldn't want to break the registry though if there is a string > >>> >>>> size > >>> >>>> limit, so thought it might be best to ask, since this list is > >>> >>>> contained > >>> >>>> within one string. > >>> >>>> > >>> >>>> __________ > >>> >>>> View the list's information and change your settings at > >>> >>>> //www.freelists.org/list/programmingblind > >>> >>>> > >>> >>> __________ > >>> >>> View the list's information and change your settings at > >>> >>> //www.freelists.org/list/programmingblind > >>> >>> > >>> >> > >>> >> __________ > >>> >> View the list's information and change your settings at > >>> >> //www.freelists.org/list/programmingblind > >>> >> > >>> > > >>> > __________ > >>> > View the list's information and change your settings at > >>> > //www.freelists.org/list/programmingblind > >>> > > >>> > >>> __________ > >>> View the list's information and change your settings at > >>> //www.freelists.org/list/programmingblind > >>> > >>> > >> > >> > >> -- > >> When you say "I wrote a program that crashed Windows," people just > >> stare at you blankly and say "Hey, I got those with the system, for > >> free." > >> Linus Torvalds > >> __________ > >> View the list's information and change your settings at > >> //www.freelists.org/list/programmingblind > >> > > > > __________ > > View the list's information and change your settings at > > //www.freelists.org/list/programmingblind > > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > -- When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind