Hi! I received this error message below for the posted Sea Battle game a few days ago. For those who know scripting and those who can help those who don't of course there is an easy fix when the .ini file has not been populated yet. The easy fix for this is on the line before the error happened, or just at the beginning of the sub since the line before is to try and set the value and probably a delay is needed between the to as the last posting on windows has proven for Dave. Placing an On Error Resume Next just before line 742 since line 741 is the beginning of the sub routine. Line 743 - is where the error happened: myDialogMenu.Checked( "menu_NumLock") = INIFile(myINIFile).Text( "Configuration", "NumLock", CStr( False))
So if anyone on the other scripting list has anyone mentioning it, just help them out if possible. At the moment I have not done any updates on anything. but do have a purchased copy of the game with all the hotkeys changed to make it easier to adjust voices, volumes and play lists... Error Message Email: Benutzer Kommentare: Es wurde kein Kommentar eingegeben. Ein Fehler trat auf in SeaBattle2015 2.5 (800A000D) Beschreibung: Typenkonflikt: 'myDialogMenu.Checked' Zeile: 743 - myDialogMenu.Checked( "menu_NumLock") = INIFile(myINIFile).Text( "Configuration", "NumLock", CStr( False)) Pfad: C:\Users\matth\AppData\Roaming\GW Micro\Window-Eyes\users\default\SeaBattle2015.vbs Signed: Active Window Title: Window-Eyes - explorer.set, WINEYES, #32770 Active Window Set File: WINEYES.set Focused Window Module: WINEYES, Button Window-Eyes Version: 9.5.3.0 Active Synthesizer: SAPI Active Braille Display: Handy Tech Active Braille OS Version: 10.0 (14393) SP: 0.0 GW Toolkit: 8.6.8 Original Reporter: [GW Toolkit Error Reporting] THIS IS AN AUTOMATED MESSAGE. DO NOT REPLY. ----- Original Message ----- From: "Aaron Smith via Scripting" <scripting@lists.window-eyes.com> To: "David" <trailerda...@hotmail.com>; "Window-Eyes Scripting List" <scripting@lists.window-eyes.com>; "GWScripting" <script...@window-eyes.com> Sent: Tuesday, October 04, 2016 12:42 PM Subject: RE: Trouble in focusing an Editbox Hi, David. My guess is that's just timing. I'd need a full example to know for sure. Instead of Queue, you could try setting a timer with a slightly larger delay. Queue is just a shortcut to StartTimer with a timeout of 0, so doing it yourself with a timeout of, say, 100 milliseconds might be a place to start. Thanks, Aaron -- Aaron Smith Product Development & Integration Ai Squared 130 Taconic Business Park Rd Manchester Center, VT 05255 (802) 362-3612 x 208 asm...@aisquared.com www.aisquared.com > -----Original Message----- > From: David [mailto:trailerda...@hotmail.com] > Sent: Tuesday, October 4, 2016 11:08 AM > To: Aaron Smith <asm...@aisquared.com>; Window-Eyes Scripting List > <scripting@lists.window-eyes.com>; GWScripting <scripting@window- > eyes.com> > Subject: Re: Trouble in focusing an Editbox > > THanks, Aaron. > > Works in 90 percent of the cases. But still, every now and then, focus goes to > the Close-button. Not sure why. > > > Any further idea? > > > > David > > On 9/30/2016 6:08 PM, Aaron Smith wrote: > > I imagine the focus to your edit box is happening prior to the default focus > to the close button. Try queuing your control manipulation by doing > something like: > > > > If DEvent = DialogCreated Then > > Queue "DialogInit", dObj > > > > . . . > > > > Sub DialogInit(dObj) > > dObj.Control( "Box1" ).Text = FormatNumber( "2764.2345") > > dObj.Control( "Box2" ).Focus() > > End Sub > > > > Aaron > > > _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40fltg.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com