Jump to content

sshrum

Active Members
  • Posts

    561
  • Joined

  • Last visited

Everything posted by sshrum

  1. Well...no. I could have the user wait until their next login but I'm more of the instant-gratification sorta guy. This way the user doesn't freak when their desktop changes when I'm not there... This is what I came up with: FileCopy("support\desktop\memcare.bmp", @WindowsDir) ;RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "Wallpaper", "REG_SZ", @WindowsDir & "\memcare.bmp") ;RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "WallpaperStyle", "REG_SZ", "0") ;RegWrite("HKEY_CURRENT_USER\Control Panel\Colors", "Background", "REG_SZ", "102 154 202") Run("control.exe desk.cpl") WinWaitActive("Display Properties") Send("{TAB}{TAB}{TAB}{TAB}{RIGHT}!b") WinWaitActive("Browse") Send(@WindowsDir & "\memcare.bmp{ENTER}") ControlClick("Display Properties", "", "Combobox1") WinWaitActive("Display Properties") Send("{UP}{UP}{UP}") ControlClick("Display Properties", "", "Button2") Send("!o!r102{TAB}154{TAB}202{ENTER}{ENTER}")
  2. This is what I have done in the meantime...a lot more coding is needed but it works. I'd love it if I can do the change "silently" by just editting the registry settings and then have the desktop update with the new settings.
  3. This is more of a Windows XP-related question but I need AutoIT to do it. :"> I'm making changes to the registry in regards to desktop settings (wallpaper, colors, etc). Once the changes are in place, the only way I've found to get Windows to use them is to log the user out and back in again. However, if you make desktop changes thru the Windows Display control panel, when you hit Apply (or OK), you get the "Please wait" dialog while the desktop fades into black and white and then a short time later, the new settings are used. What needs to be done to make the "Please wait"+new settings be used without having to log the user out? Possible? TIA
  4. Nice one. I actually wrote the same thing (sorta) in PHP. Supports DNS registering, FTP, and email. Check this out: http://www.shrum.net/code/?body=./wan2web/home.html Odd...I called my log file wanip.txt too FYI: I just noticed the http://whatismyip.org...I've been hosting my own WAN IP display at http://www.shrum.net/getip.php
  5. I've been using Crimson Editor for a while now. I just tried SciTE and maybe I'm missing something but the only thing in SciTE that I liked (marginally) was the lines on function / subroutine indention. I was hoping for the autocomplete that I saw on the website but it wasn't doing that when I typed. Someone needs to sell me SciTE from a Crimson Editor user standpoint otherwise, Crimson Editor works for me.
  6. How about this... Set the focus to the desktop (possible?) and then send a ControlClick with '2' clicks? I'm away from my desk so I haven't tried this yet, hence my '?'
  7. First time autoIT user, long time regression tester. I wrote a script to install an application and had AutoIT create a LNK file on the desktop to one of the associated files of said program. What I can't figure out is how to launch the lnk file. This *should* launch the associated application with the file that the LNK points to. Granted, me double-clicking the LNK does exactly that. I even tried to do a direct 'c:\program.exe datafile.xxx' via run() with no luck. I'm doing this worng. Someone please correct me. TIA Sean Shrum http://www.shrum.net
  8. In case you didn't already know: No need to reinvent the wheel...Crimson Editor already deals with syntax, color coding etc. Great little IDE. http://www.crimsoneditor.com
×
×
  • Create New...