Jump to content

jayshomp

Members
  • Posts

    11
  • Joined

  • Last visited

jayshomp's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you for the reply. Of course the project just got put on hold so I can't even test it right now but I will later. Thanks again!
  2. At least I think it should be simple. Basically I have a list of exe files I have to run. All I want to do is hit the down arrow once to select the next one in file explorer, hit enter, and hit enter through the prompts. It's failing at the point of hitting the down arrow, not sure what I'm doing wrong here. Any help would be appreciated. I'm using this on Windows Server 2003 WinActivate("8.98 Upgrade ESUs") Send ("{DOWN 1}") Sleep(500) Send("{ENTER}") Sleep(500) WinWaitActive("Client Workstation Setup") Sleep(500) Send("{ENTER}") Sleep(500) WinWaitActive("Client Workstation Installation Setup Type") Send("{ENTER}") Sleep(500) WinWaitActive("Installation Complete") Send("{ENTER}") Sleep(500)
  3. No apology necessary. I appreciate the effort and the quick response
  4. Nevermind I found it finally: If @error == 0 Then Exit Thanks again!
  5. Thank you Chip, that's just about perfect. The last thing I need is for the script to exit if Cancel is pressed in the Accepted box. I thought "If @Error Then Exit" would work but apparently not The rest is exactly what I was looking for though, thank you again!
  6. Thank you Swift but I'm still getting the same problem. The script still starts if clicking OK or Cancel in the Rejected box after an incorrect password is entered
  7. Hi all, I have another newb question for you all I'm simply trying to password protect a script so it isn't run by accident. I've gotten this far using the help file and some posts here: $pass = InputBox( "Password", "Please enter password", "", "*", 190, 115) If @Error Then Exit If $pass = "@reboot" Then MsgBox( 1, "Accepted", "Password accepted!", 30) Else MsgBox( 1, "Rejected!", "Incorrect Password", 5) EndIf What I'm looking for is 1) have the rest of the script not start and exit if at anytime "Cancel" is pressed and 2) if the password is incorrect have it loop back and ask for it again, and obviously 3) have the rest of the script start after a successful password and clicking "OK". Any help would be appreciated.
  8. Sweet, thank you FreeFry. I'll give it a go tomorrow.
  9. Thank you FreeFry and SmOke_N. SmOke_N, You understood correctly about only having to enter the password once, but, unless I can talk the client out of it, they don't want the password stored anywhere. So I guess I really can't have it check for the correct password. I just want to be prompted for a password once without the script knowing it's correct or not, and have it automatically entered for the server log ins. Of course the major downside being that if a wrong password is entered, all those 26 log in attempts are going to fail. And I think because I'm using the word "password" I'm confusing people. Let me put it a different way. I want an input box to pop up when the script(see 1st post) is run, and whatever string is put in that box, I want it to be in place of the word "password" in the following statement: Send("username") Send("!p") Send("password") Sorry, being new to this means I don't have the lingo down so it's hard to explain exactly what I want. Thank you for bearing with me
  10. Yes thank you. I see that's probably something I would need to use but HOW to use it is another story. I just want to have to enter that password once, which will automatically enter that into each instance of the server log in screens. Would that accomplish that? If so, I will research that more thoroughly. Thanks again PS- Just as an FYI, I don't ask questions without first looking through the help file, these forums, and Google. Please remember that I'm completely new at this, and even though something might be there in the help file, I'm not able to always comprehend it, especially while I'm still trying to get the basics down. Wouldn't got as far as I have without reading the help file. Please keep that in mind before answering in a condescending tone.
  11. Hi all, First off let me tell you that unfortunately I am completely new to anything scripting Now here's my situation and question(s) I need to set up a script to automatically log into 26 different Citrix servers through MS' Terminal Services Client(MSTSC.exe). This is what I have so far(I know it's basic and rough, please don't make fun ) Run("MSTSC.EXE") WinWaitActive("Terminal Services Client") Send("Server Name 1") Send("!c") Send("{Down 2}");FYI, this is for selecting the resolution Send("{ENTER}") WinWait("Server Name 1") Sleep(2000) Send("!u") Send("username") Send("!p") Send("password") Send("!l") Send("u");FYI, this is the first letter of the domain name Send("{TAB}") Send("{ENTER}") Sleep(2000) Run("MSTSC.EXE") WinWaitActive("Terminal Services Client") Send("Server Name 2") Send("!c") Send("{Down 2}") Send("{ENTER}") WinWait("Server Name 2") Sleep(2000) Send("!u") Send("username") Send("!p") Send("password") Send("!l") Send("u") Send("{TAB}") Send("{ENTER}") Sleep(2000) etc etc...... That works fine, but what I want to avoid is including the username/password in the script itself. Is it possible to create a GUI or similar where I can just input the username/password once for all servers? If so I'd appreciate it if someone could point me in the right direction, maybe examples or what specifically I should look for in the help file. Thanks in advance!
×
×
  • Create New...