ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Chat.txt on desktop bug (Community)
Chat.txt on desktop bug // Communityscented nectarJun 3, 2006, 3:56pm
I would like to eventually, when it's finished, put an url to my AW 'home'
in my signature, the type that opens up the AW browser and sends the viewer to the site, eg. for GZ this would be: http://objects.activeworlds.com/cgi-bin/teleport.cgi?aw_0.0N_0.0E_0.5a_270 or http://tinyurl.com/h69c2. If your AW is already open before you click, everything is ok, but when when the url is clicked without AW already being opened first, there's a bug. Yes AW will open and drop you in the right spot, but it leaves a new chat.txt on the desktop instead of in it's normal location. This happened in the last version of AW too. This probably isn't a top priority bug, but I thought I'd mention it just the same. :) -- Scented Nectar http://www.scentednectar.com/aw/ strike rapierJun 3, 2006, 4:15pm
Oh dear god.... Its using the current working directory rather than using
GetModuleFileName to find the location of the browser... -- - Mark Randall http://www.temporal-solutions.co.uk "We're Systems and Networks..." "It's our job to know..." [View Quote] scented nectarJun 3, 2006, 4:26pm
I have absolutely no idea what a GetModuleFileName is, because I'm a bit
programming-challenged.I'll just trust that you know what you're talking about. :) [View Quote] strike rapierJun 3, 2006, 4:41pm
A current working directory is the folder a program executes from...
If you launch an application are in a folder called c:\pie\ Now, if an application tries to open the file 'chat.txt' using only that name when it tries to open it... it will actually add it on to the end of the current working directory, giving you: c:\pie\chat.txt The current working directory is usually set to where you launch a shortcut from (I think). Hence, in this case the current working directory (Temp folder??) is your desktop. -- - Mark Randall http://www.temporal-solutions.co.uk "We're Systems and Networks..." "It's our job to know..." [View Quote] scented nectarJun 3, 2006, 5:02pm
Ok, and the GetModule thing would fix it? That sounds quick and easy.
Maybe it will be fixed by the time I ever get my AW home finished, whenever that is... [View Quote] strike rapierJun 3, 2006, 5:11pm
GetModuleTechnicalCrap
Its a function used to find out the actual folder the EXE itself is stored on disk, not where its actually 'running' -- - Mark Randall http://www.temporal-solutions.co.uk "We're Systems and Networks..." "It's our job to know..." [View Quote] sw comitJun 3, 2006, 5:45pm
eerr is your subiect and message talking about the same thing? *confused*
To change where chat.txt saves, click browse first, and navigate to the folder where you want the file to save at. [View Quote] scented nectarJun 3, 2006, 6:21pm
Normally AW is set to add chat to the chat.txt I have in my Active Worlds
folder, and normally it works fine. However, if I go to AW through a teleport url (and if it opens AW fresh - not already running), then it creates a brand new chat.txt on my desktop instead of adding it to my old one. I have AW set up to save chat in AW's folder properly. It's only when using the url that it makes the new, improperly located one. I don't want to use it in my sig or on my webpage unless it won't surprise people with that. Just an annoyance bug really, they probably have more important ones to fix right now. [View Quote] |