Jump to content

1bobby

Active Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by 1bobby

  1. Sorry, I lied. This time it did work, sorry as usual, and THANKS
  2. That didn't seem to work?
  3. Just asking, has anyone else noticed this, or am I cracking up? Until a couple of days ago, when I work on a script in Scite the background was a white and the characters where the standard colors that they always were according to the color control file. Now it seems they have a blue tent and print out on the printer with a gray tent background. This has occurred on two different computers. All scripts are now the same, and I think this is true looking back at older print outs of older script. If I print an older script that printed on white background, it now comes out with the blue tent! Is there any way to go back to the white background? This would help older scripter that are half blind.
  4. Not too sure what I am doing wrong, but must be something! I want to open IE and send an address to the address bar no matter what home page is set to. Then make and entry and go to that server address, and open a program. The attached is the window info that I get when looking at the field. I have tried several different control commands and can't seem to send the address to the address bar. In the last case where the home page was yahoo home page, it went into the search field of yahoo. wininfoie.bmp
  5. Volly, To tell the truth, being still a new bee at this, I never knew about it. Sure solved the problem and again I say Thank you. bobby
  6. #cs The main effort is to remove several service programs by pushing out the script at night so no manual intervention. The programs to be removed are Ad-ware, spybot and command antivirus. Once this is done, we want to install the Blink antivirus which includes all the functions of the removed programs. Can I use the following key to remove the AD-Ware program ver 7 for a computer? If I put it in the start run command, it will remove the program with no problem or input from me. But I can't seem to get it into autoit and it will run with no input from me. I can seem to get either one of the following runwait, or the Shellexecutewait to find the file. The runwait just blows right through doing nothing and the Shellexecutewate can't find the file? Acording to the error message. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\msiexec.exe/x{DED53B0B-B67C-4244-AE6A-D6FD3C28D1EF} /passive Func Radware78() ;==> Remove version 7 and/or 8 ; check and see if Adware 8 is that, if so 7 can't be as 8 removes it If FileExists("C:\Program Files\Lavasoft\Ad-Aware 2007") Then ;RunWait("msiexec.exe/x{DED53B0B-B67C-4244-AE6A-D6FD3C28D1EF}") ;ShellExecutewait(@WindowsDir & "/system32/msiexec.exe/x{DED53B0B-B67C-4244-AE6A-D6FD3C28D1EF} /passive") ;MsgBox(4096, "Blink Clean", "msiexec.exe/x{DED53B0B-B67C-4244-AE6A-D6FD3C28D1EF}") Sleep(50000) EndIf EndFunc ;==> Remove version 7 and/or 8 Thanking you in advance, as I am sure you can show me the error of my ways. 1bobby
  7. Actually, in the code I do have the space /q. I have been changing it so much, when I copied the code, I just added the /q as I would like to get it working. The task in what we call net keeping. We make changes to all the PCs so 300 plus. Some of the stuff needs to be done in the administration mode, while the rest much be in the user profile. The problem is the programs just dont run.
  8. I am still having problems with the RunAsWait command. Along the same lines, can't seem to get the quiet switch to work in the install programs. I am checking to find out if a program (or update) in installed and if it is, I skip the install. If not I try and run the install/update. I have tried the local machine administrator, Domain is the local machine name and the password is the password for the local machine. Just flys through the function saying it is installed. I have three such functions, of for IE7, Widnows SP3 and Office SP3. All do the same thing. A sample of the code is as follows: Func InstallIE7() If Not FileExists(@WindowsDir & "\ie7") Then RunAsWait("Admin user", "Domain", "Password", 0, @ScriptDir & "\Files\IE7-WindowsXP-x86-enu.exe/Q","", @SW_MAXIMIZE) Sleep(100) MsgBox(4096, "MK2008", "Installed IE7", 4) EndIf MsgBox(0, "NK08", "IE7 installed", 1) ;SUIExplorer() EndFunc ;==>InstallIE7 Note: Code is all on one line i.e.@ SW_MAXIMIZE Any suggestions? I am thinkfull for any help, Thanks in advance. bobby
  9. Know this is something that I do not understand with the RunAs command. I have a script that runs from a memory stick that does updates to the local software and makes user configuration (logged in as the user) changes which can only run as admin . I have to get files from the network, which has hidden directories, and requires admin to get to the files. Users are part of the power users group. This is a test script to test the feature. The script runs from the memory stick ok, but never pulls the program from the network hidden directory. I am missing something in the understanding of the RunAs command. Totally confused yet? I am è bobby Code: MsgBox(0, "Testing", "trying to run now", 1) Sleep(50) RunAsWait("bobbyb", "jupiter", "XXXXXXXXX", 1 , "\\troi\apps2$\is test\calculator.exe", "" , @SW_MAXIMIZE ) Sleep(2000) MsgBox(0, "testing", "I ran it", 1) Exit
  10. That is just what the Doctor ordered. Reminds me of the old Assembly days doing machine langage programming days. Thank you, never saw that in the Tidy. bobby
  11. Guess it was a dumb idea, sorry!
  12. Just curious if there is a Cross Reference for Variables fields available that would tell the source of the $name fields and the address (line numbers) that make reference to that locations. Back in the old days we could get one from the complier program. This was a good tool to locate what a variable name contains, and who changed it. Just hoping I guess. I seem to get lost pretty easily in my old age
  13. I know I read some where that a long script line can be carried over to a next line by using a special character at the end of the line. /n, , _ , or something. I know I am not asking the correct question to google. Can someone help me, driving me crazy, oh guess that is a short putt!
  14. Monoceres, that is a GREAT script, once I figured it out. Love it. Ran two scripts and it sure bailed me out. Wish I could think that fast, but it works great. Thanks for your efforts for us new kids on the block. bobby You the coder!
  15. Thanks rudi, that was just the push I needed. I was able to put some error checking to work. Thanks again, bobby
  16. I am having problems understanding the relationship between return value and the error codes, @error I think it is. I have read the MsgBox Function Reference several times. And am still confused. I am to the point that I need to check if someone hit the X in the top right hand corner of the window, or hit the OK button. Further understanding of what to check for after a command or function has been executed to be able to tell if it was successful or not? I have been around long enough to know the script has to be fool proof. Were can I locate some examples or find more information. Thanks bobby (newbie)
  17. That is one the belongs in the examples, Thank you so much worked really cool and is surly a help to us newbies.
  18. When I try the three suggestions, although seems like they should work anywhere out of the loop, I get "C:\Documents and Settings\bobbyb\Desktop\EOC\EOC Menu.au3(58,31) : ERROR: $Form1_1: undeclared global variable." I did put them in the first function after the loop thinking I wouldn't need it anymore. Maybe I am just not using them in the correct location? bb
  19. Not sure if this can be done at least I have not found it yet, but it is running on several of my scripts and I would like to remove it! Once information has been entered into a GUI (Form1) and you get out of the loop, is there anyway to close or remove the Form1 window from the screen while the data is validated.. Then if the input data is bad, re-open the screen as a do over with the original Form1 window displaying the data that was input by the user so they can change/correct it?? Seems like I run the whole script with the original Form1 screen in back of the running Windows Thanks bobby
  20. This worked just fine, I do Thank you both for your help!
  21. Sure don't know what I am missing. I setup a simple GUI that would input a 3 digit part of an IP address. If it is blank, I want to setup the computer for a DHCP server which assigns the IP address. Then if I put in the last (10.10.40.xxx is a given) I want to setup the PC with a static IP address. The GUI doesn't release with the CASE statememts, but displays the button pushed and waits for another button. What am I missing. I can add functions and it will do all the functions and comes back to wait on another button to be pushed? Dumb Founded! old_EOC_Menu.au3
×
×
  • Create New...