Jump to content

mist3r

Active Members
  • Posts

    28
  • Joined

  • Last visited

About mist3r

  • Birthday 11/20/1985

Profile Information

  • Location
    Northants
  • Interests
    Alot of things, not saying im any good at them though...<br /><br />*Programming<br />*Design<br />*Gaming<br />*Tweeking<br />*OverClocking<br /><br />----------------------<br /><br />/!\ Drinking<br />/!\ Sleeping<br />/!\ Eating

mist3r's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Aaah cheers Brett!! thanks alot I really appreciate it Your a star
  2. I need to be able to use " " quotes on the command but AutoIt throws an error. RunWait(@ComSpec & " /C c:\AutoIt\NETDOM.exe JOIN " & $ComputerName & " /d: " & $DomainName & " /ou:'OU=Curric Computers, DC=domain, DC=bleh, DC=bleh, DC=bleh, DC=uk' /ud: " & $DomainAdmin & " /pd: " & $domainPass & " /reboot:10 ") I have to put quotes around the /OU: "bleh bleh" for it to work. Ive tried using single quotes and that makes the netdom.exe command fail. Is there a way of forcing it to use ""? Like in PHP using a \" cancels it out... Thanks
  3. I've read everywhere about detecting window titles and closing them but how do you go about running through a script and it also be checking for a window title to appear at any time? Would that have to be another seperate script waiting for a window title or can it be on the lookout for it yet continue running the rest of script? Thanks for any help - really appreciate it
  4. aah, excellent. Thanks for that. I've been thinking for aaaaages wondering how to go about it. Saved me alot of hassle. Thanks mate. I don't suppose you've ever had any problems with "GUICtrlCreateEdit" when the Window also has a bg image? $GUI = GUICreate("ms.Support", 500, 350) $GuiGraphic = GUICtrlCreatePic("Assets\bgCompInfo.jpg", 0, 0, 500, 350) GUISetState(@SW_SHOW) ;pstools RunWait(@ComSpec & ' /c ' & 'tools\psinfo.exe > psinfo.txt', @ScriptDir, @SW_HIDE) $file = FileOpen(@ScriptDir & "\psinfo.txt", 0) $cpuTypeLine = FileReadLine($file, 16) $cpuTypeLine = StringTrimLeft(StringStripWS($cpuTypeLine, 4),16) $cpuNumberLine = FileReadLine($file, 14) $cpuNumberLine = StringTrimLeft(StringStripWS($cpuNumberLine, 4),12) $cpuSpeedLine = FileReadLine($file, 15) $cpuSpeedLine = StringTrimLeft(StringStripWS($cpuSpeedLine, 4),17) $memTotalLine = FileReadLine($file, 17) $memTotalLine = StringTrimLeft(StringStripWS($memTotalLine, 4),17) $osVersion = FileReadLine($file, 3) $osVersion = StringTrimLeft(StringStripWS($osVersion, 4),16) $osVersion = StringLeft($osVersion, StringInStr($osVersion, ',')-1) ;AutoIt Variables $compName = @ComputerName $compOSType = @OSTYPE $compBuild = @OSBuild $compSP = @OSServicePack ;Forms $cpuTypeInput = GUICtrlCreateInput("" & $cpuTypeLine , 20, 150, 180, 18) $cpuNumberInput = GUICtrlCreateEdit("" & $cpuNumberLine , 20, 170, 20, 18) $cpuSpeedInput = GUICtrlCreateEdit("" & $cpuSpeedLine , 20, 190, 150, 18) $cpuSpeedInput = GUICtrlCreateEdit("" & $memTotalLine , 20, 210, 80, 18) $osInfo = GUICtrlCreateEdit(" " & $compName & " " & $osVersion & " " & $compBuild & " " & $compSP, 20, 240, 300, 18) Basically, when it runs it fetches the variables fine and shows them in editable boxes. But when theres an image used, you can't click in the box's to edit them, yet you can if you press TAB to get to them. Works fine as soon as I take the GUICtrlCreatePic out. ** Actually found that answer.. again i'd been searching for ages and all along it wasnt the editable boxes, rather the bg settings. I used GUICtrlSetState(Default, $GUI_DISABLE) which seems to make it work. ** Thanks again mate
  5. Hey, I've read into the String functions and cant quite figure out how to go about removing everything in a string after a certain character. Basically so far the script runs pstools and saves the outcome to a text file. Its then read line by line and I retreive the data I need In the text file it returns "Kernel version: Microsoft Windows XP, Uniprocessor Free". Im looking to replace all the characters after the ','. Is the only way by doing a StringReplace on the 'Uniprocessor Free' with ' '? Im not sure what other outcome's there will be if ran on different machines and therefore can't do a StringReplace on strings that might vary from machine to machine. Any help or advice much appreciated Thanks
  6. Hey, Really really like the work and effort you've put into making this possible. My question might be 1 many newbies like me wonder. I'm mad about PHP and MySQL and love Autoit. I've started to develop a website within my company whereby I can keep track of several different routines. Im a ICT tech support guy, we get calls all the while and it's logged in a paper book. Im wanting to make that available on a website internally. After discovering your UDF, i thought what a good idea to make a program using Autoit that will pull up the nitty gritty details of a client machine they are reporting the problem on and post it to us using that along side the website. I was pretty stupid to not realise that the MySQL ODBC had to be installed on every machine. Is there any other way of doing this? Im totally new to all this ODBC business and COM. I was following a few tutorials on the Microsoft Website on making ActiveX scripts. I copied and pasted the examples and none of them worked. Im trying to find a good solution that would incoporate the use of the website and a program. If I created a small Autoit Script that added a record and placed it on a network drive, then ran it from workstations around the site without ODBC being installed, would it work? Sorry several questions there... Thanks for any advice.
  7. Hey nice reply Confuzzled, Just wondering if anyone had any good websites, books or any help really regarding the use of ObjGet objWMIService.ExecQuery etc. Where to start learning that stuff would be helpful to know. Thanks
  8. Any ideas if theres a shutdown command that will install the updates on shutdown. I've gone through with a fine-comb looking but no luck. Or prehaps theres a shutdown command within windows already that will install updates? Any ideas? Would this be something that could be added into a newer release of autoit? that would be awesome and prehaps provide alot of help for the autoit community. Cheers :">
  9. Hi, ive been doing alot of reading about the runonce idea. Its a cool way of automating the installation of files but my question hasnt been raised. I might just be mega stupid but... I use a roaming network manager account to install applications. Ive created an script to do the first half of an installation that requires a reboot half way through. It sets the registry to automatically login so it can continue the uninstallation. The script reads files on a mapped drive. Im not sure which type of runonce I need. If i use HKLM then apparently it loads before the desktop appears and doesnt continue untill the installation is finished. This might be a problem as im not sure if the drives will be mapped before the runone. I also wonder if setting a runonce will run if i logged in else where? More so if I use UKCU runone as thats userbased. I dont want to risk it as 4 other people use the same account. The runonce, i keep reading about it running once for every user. I dunt want that, i just want it to run once and only once for the 1 user. No others. Thanks for any advice. Trying to finish off, it all works i'd just love to figure this out. Cheers
  10. Aah ok found the right 1. GUICtrlSetState (4, 1) Still confused about the styles though. Cheers
  11. Ah brillient! Yus thanks . Also, im thinking of making it detect if somethings already there and checking the box for the user on load. Im reading up on styles and im finding the examples in the help file alot more difficult then the rest when it comes to GUICtrlSetData. ;Checks $regCheck = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable") if $regCheck = 1 Then GUICtrlSetData(4,"Checkbox", 1) Endif All very confused. Especially making a checkbox ticked initially if that program or setting is already inplace. How's GUI Control Styles actually used within a script? Sorry for all the n00bish questions. Thanks again and well played Manadar
  12. Ok, this is a small fragment of the big picture. I've got enough install scripts for small applications and checks for the pc's I have to manage at work. Now im wanting to make 1 big program/script to manage the rest of the scripts. Basically an installer to run each script depending on which boxes the user selects. First things first... check this out. baring in mind this is the very first time i've used the GUI functions #include <GUIConstants.au3> $Form1 = GUICreate("Installation Form", 220,140) $ck1 = GUICtrlCreateCheckbox("Change Room Location", 40, 10, 300, 20) $ck2 = GUICtrlCreateCheckbox("Install Proxy", 40, 30, 250, 20) $btn = GUICtrlCreateButton( "Install", 40, 80, 100, 35) GUISetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $btn If GUICtrlRead($ck1) = $GUI_CHECKED then ; Script Start - Change ROOM location RegWrite ( "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment" ,"LOCATION", "REG_SZ", "607" ) $newLocation = RegRead( "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment" ,"LOCATION") msgbox(0,"","" & $newLocation & "") EndIf If GUICtrlRead($ck2) = $GUI_CHECKED then ;Proxy Checker RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", "proxy.embc.org.uk:80") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "1") Endif Case Else ;;;;;;; EndSelect WEnd Exit oÝ÷ ØÚ0hî²Ü(׫x"~Øb²+-êâpk&¢ë]¢)àÒ/y©ky§rmë®*m²ájwZ²Ç©z¶­yø¥zƧ˲Z¥v+[yæ¬êí¡ì^q«­¢+ÙèÀäÈíÁÑ ÀäÈíѼÀäÈíÕѽ¥Ð¹áÍÉ¥ÁÐĹÔÌí¥¹Íѱ°ÁɽɴÄ)èÀäÈíÁÑ ÀäÈíѼÀäÈíÕѽ¥Ð¹áÍÉ¥ÁÐȹÔÌí¥¹Íѱ°ÁɽɴÈ( rather then copying the existing script text into the over all script? Also any error reporting ideas please incase 1 installation fails that it will carry on or something? Thanks, any advice appreciated!!
  13. Hi, Im a techy and we have very tight security for users. We have 300ish workstations and users work with them all the while. Now in the background, windows securty update centre deploys to all the workstations and it sits there on each workstation. It only works when I come around, login with less restrictions and I can then Install the updates. This can be a long process and if possible, a command to start the updates without having to wait, then select the type Express mode etc etc then shutdown. Now, this isnt too bad. But i do an automated cleanup and installing updates would be the next step if possible. Then i can go home ontime! Heh, Thanks for any help. Oh and changing the domain policy isnt an option im afraid sorry
  14. Aah! Thanks ever so much u 2. I really really appreciate your help. Ive finally done it and its just a life saver tbh. The Microsoft DelProf doesnt do a very good job of removing half the stuff so this should work Thanks again
  15. Aaah excellent! I love it. Im still working on it as it's actually deleting the administrator folders as well. I think i'll figure it out. Oh 1 last thing. the "AND _" i take it that means.. AND IF $file.."
×
×
  • Create New...