Jump to content

bluespirit

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by bluespirit

  1. Funny you should mention enterprise domains as that is what the script is running on. All the valid UNC paths return immediately. It's the invalid ones that take their time before giving up. As you say, it's not an AutoIt issue, but a Windows one. I'm trying to find a creative way around the problem. The method I mentioned wouldn't be any quicker, it's just it would be another script running in the background gathering all the required information that the user wasn't aware of. The main script could then reference that information to get a quicker response than asking Windows direct. What do you think?
  2. Hi, I'm writing a script to copy a number of files from UNC paths. That bit is pretty simple. However, my users think my script has crashed, which it hasn't, it's only because the UNC path doesn't exist and one of the AutoIt functions is waiting. This is true of FileExists(), FileCopy(), DriveStatus(), etc. Is there a function to check if a UNC path exists that doesn't pause in this fashion? The only way round it, that I can think of at the moment, is to spawn another process and pre-check all the UNC paths and write if they exist in a text file. Then rather than use FileExists(), I use my text file instead. Anybody got a better idea? Thanks, James
  3. Thanks for the info. It's all great stuff, but starting to get a little beyond my capabilities as don't really know C++ or have a compiler!
  4. Unfortunately copy the font to the windows font folder does not install the font as an entry needs to be made in the registry. Not to mention informing all open applications so a reboot is not required. Copying using drag & drop in explorer does install the font correctly as explorer does all the necessary processing. However this is a manual operation and I'm trying to copy the font to 100 after effects remote renderers which means I need an automated process that doesn't require a reboot. Forcing an opening and closing of the fonts folder from control panel does do the trick and this is how im currently doing it. However that trick does not work in Vista, which we are changing to in a few months. So I'm looking for a new method to install fonts remotely over the network. James
  5. Hi, I'm trying to extract the font name out of a .ttf file to enter the correct info into the registry. Anyone know how to do this? I'm installing the fonts using the AddFontResource DLL call, making a registry entry in the fonts section and then using SendMessage DLL call to broadcast the font change. However, this relies on you already knowing the full font name. The best I've managed to find is a GetFontName function by Holger but this only works once the font is already installed or in memory. Thanks for any help, James
  6. Hi, I'm trying to extract the font name out of a .ttf file to enter the correct info into the registry. Anyone know how to do this? I'm installing the fonts using the AddFontResource DLL call, Registry write and SendMessage DLL call method as described below. However, this relies on you already knowing the font name. I was also going to rename the .ttf file with the full name before installing. The best I've managed to find is a GetFontName function by Holger but this only works once the font is already installed or in memory. Thanks for any help, James
  7. That's exactly the sort of thing I was looking for. Thanks for that. J
  8. Is there any way of stopping a message box from losing focus? Although the MsgBox function will pause the running of a script, I can still click away from the message box and onto my main GUI window. Although the main window does not process any user input (i.e. mouse clicks) it saves them up and processes them when the message box is closed. It would be great if it acted like most windows applications, i.e. when the main GUI window was clicked it, it flashes the message box and makes it active again. J
×
×
  • Create New...