Jump to content

kjcdude

Active Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by kjcdude

  1. I use the following at work. Not sure if it's been mentioned above, but this works as it should across multiple computer configurations. RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map", "REG_BINARY", "0x00000000000000000300000000005BE000005CE000000000")
  2. The administrator, no. XP Home SP2. I've ran the script with both version .11 and .10 and only in .11 do i find random computers that do not complete the script like it should. The script has not been changed between testing of versions.
  3. I've been running some tests and comparing the speed between an iniread/write vs a regread/write and have found that regread/write is almost 5 times faster. I'd like to move one of my scripts from using ini files to reg files, but one of the big functions i need is a readsection type of function that exists in ini. I need to be able to read a keyname and determine how many values are inside that keyname. Does anyone know of an easy way to do this? Thanks
  4. I run my scripts on over 600 xp home PCs and have been running this portion of the script every other night for 9 months and have only seen an issue in v3.2.13.11. On ~1/15 pcs when this portion of the script is ran the process is not actually closed. Here's the portion of the script. ProcessClose("Gw.exe")oÝ÷ Øw«{l¶Ø«yø¥y«­¢+Ù%¥±á¥ÍÑÌ ÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕ¥±]ÉÌÀäÈíܹáÅÕ½Ðì¤Q¡¸(%ÉÕ¸ ÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕ¥±]ÉÌÀäÈíܹáÅÕ½Ðì¤(%ͱÀ ÔÀÀÀ¤)¹%)¥AɽÍÍá¥ÍÑÌ ÅÕ½ÐíܹáÅÕ½Ðì¤ôÀQ¡¸(%¥É ½Áä ÅÕ½ÐídèÀäÈíÕ¥±]ÉÌÅÕ½Ðì°ÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕ¥±]ÉÌÅÕ½Ðì°Ä¤(%I]É¥Ñ ÅÕ½Ðí!-e}1= 1}5 !%9ÀäÈíM=Q]IÀäÈíɹ9ÐÀäÈíÕ¥±]ÉÌÅÕ½Ðì°ÅÕ½ÐíAÑ ÅÕ½Ðì°ÅÕ½ÐíI}MhÅÕ½Ðì°ÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕ¥±]ÉÌÀäÈíܹáÅÕ½Ðì¤(%I]É¥Ñ ÅÕ½Ðí!-e}1= 1}5 !%9ÀäÈíM=Q]IÀäÈíɹ9ÐÀäÈíÕ¥±]ÉÌÅÕ½Ðì°ÅÕ½ÐíMIÅÕ½Ðì°ÅÕ½ÐíI}MhÅÕ½Ðì°ÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕ¥±]ÉÌÀäÈíܹáÅÕ½Ðì¤)±Í(%ͱÀ ØÀÀÀÀ¤(%AɽÍÍ ±½Í ÅÕ½ÐíܹáÅÕ½Ðì¤)¹% Bug report - http://www.autoitscript.com/trac/autoit/ticket/697
  5. great game, i didn't even realize something like this was possible with autoit
  6. I was really lazy and just did it on the server side where i needed it. Here's the code where it's checked. $cactive = _TCP_Server_ActiveClient() if StringIsDigit($cactive) = 0 Then $c1 = StringSplit($cactive, "x") $convertedd = Dec($c1[2]) IniWrite($inifile, "Connections", $convertedd, "Not") Else IniWrite($inifile, "Connections", _TCP_Server_ActiveClient(), "Not") EndIf
  7. Not sure if this is a bug. I've only been able to produce it within a server side receive. When a server receives text from a client "Func Received($iError, $sReceived)" and _TCP_Server_ActiveClient() is called within that func recieve, the active client ID will be displayed as HEX instead of a DEC as seen throughout the rest of the script. I now have a check on all calls for _TCP_Server_ActiveClient() to see if it's a hex or dec and convert it to a dec so that it's uniformed.
  8. Do you know how to specify which adapter to monitor?
  9. _RASConStat doesn't seem to be working on my comp How would i go about specifying which connection to pull data from?
  10. Wish i saw this last night. I built a whole system that logs the ids to an ini file then constantly compares the active ones to the ones stored in the ini file. Your way is much simpler. Thanks
  11. I've delt with MD5 comparing and it seems to be extremely slow in autoit. In some instances i found it faster to copy all than md5 compare the files and copy the changed ones. I've resorted to comparing filesize, modified date, and created date.
  12. Just what i was looking for. Is there anyway to get the clientid on disconnect? using _TCP_Server_ActiveClient() doesn't produce the active client that disconnected.
  13. Correctly working version. #include <Date.au3> $begin = TimerInit() $h1 = @DesktopHeight $w1 = @DesktopWidth Global $Secs1, $Mins1, $Hour1 ProgressOn("Timer", "Starting", "0%", $w1-300, "0") $totaltimep = 300;in seconds While 1 $timerm = TimerDiff($begin) $difm = $timerm/1000 if $difm >= $totaltimep Then MsgBox(0, "", "Finished") ProgressOff() ExitLoop EndIf _TicksToTime($timerm, $Hour1, $Mins1, $Secs1) $prcts = Round(($difm/$totaltimep) * 100, 2) _TicksToTime($timerm, $Hour1, $Mins1, $Secs1) $Timef = StringFormat("%02i:%02i:%02i", $Hour1, $Mins1, $Secs1) ProgressSet($prcts, $prcts & "%", "Total Time - " & $Timef) sleep(500) WEnd
  14. here's one i'm working on not sure how well it applies to what you need. 2 issues i'm running into though. 1. How to keep the seconds ($difms) complient with time standards. Currently it's just a ticking clock, it should restart at 59 2. How to keep the minutes and hours accurate. Currently they round everything which causes inaccurate hours and minutes. $begin = TimerInit() $h1 = @DesktopHeight $w1 = @DesktopWidth ProgressOn("Timer", "Starting", "0%", $w1-300, "0") $totaltimep = 5000;in seconds While 1 $difm = TimerDiff($begin)/1000 $prcts = Round(($difm/$totaltimep) * 100, 2) if $difm >= $totaltimep Then MsgBox(0, "", "overtime") ExitLoop EndIf $difms = Round($difm, 0) $difmm = Round(($difm/60), 0) $difmh = Round(($difm/60)/60, 0) ProgressSet($prcts, $prcts & "%", "Total Time - " & $difmh & ":" & $difmm & ":" & $difms) sleep(500) WEnd
  15. There's already an FF extension that works well. http://www.autoitscript.com/forum/index.php?showtopic=42990
  16. I tried to use that program and had no luck. I ran it entered everything liked it asked then locked my computer and nothing happened, i still had to manually log in. Not entirely sure how it's supposed to work. Even if i can get it to work, not sure if it's what i need. I need to be able to logon as initiated by a script. This seems more like a permanent solution. I still need the computer to be secure.
  17. So i've been playing with this for a while and have gotten it to work sometimes, but not all the time. I'm running it on a windows 2003 server with the service properties adjusted to "allow service to interact with desktop". If i use the example code it works exactly as it should, it displays a msgbox every 1 second. But as soon as i modify the main function to the following it will not work. It runs the function, everything looks like it should be working, but it flat out does not work. The run function worked, but winwait and send also did not work. func main() while 1 WinClose("test.txt", "") Sleep(1000) WEnd EndFunc
  18. The issue i'm running into is emulating control alt delete.
  19. I'm working on a program that will be monitoring certain applications on a server. The only issue i'm having is that i need to keep the server secure so it's constantly locked. The script can monitor the programs just fine while it's locked, but if any tasks need to be performed such as restarting the application i need to be able to auto login to windows so that it can perform the tasks needed. Does anyone know of an easy way to auto login to a windows server 2003 machine? Thanks
  20. Does anyone have a version working with filecopy instead of dircopy? Thanks
  21. I get error 6 every single time. I verified the placement of of the exes and it still happens.
  22. I'm looking for a good e-mail notifier that i can add to a monitor script i'm working on. I've seen a few different ones on this forum and was just wondering if anyone could suggest a good one. Thanks
  23. Perfect, just what i was looking for.
  24. I've tried the other script and this one and still can't get it to work correctly. It errors out with "Video mode not supported" _ScreenSetting(1680, 1050, 32, 75)
  25. I needed to create the new dir at the location of where the files are to be moved to. It works like it needs to now, i'm still at a loss as to how to recover the two folder files that i created.
×
×
  • Create New...