MauriceLahaije Posted June 8, 2022 Share Posted June 8, 2022 Newbie alert :) I'm trying to send keystrokes to the putty client in order to automate the login process. I need to login twice, first onto the unix server, and the second time in the application. The first user/id password works fine (obviously because it's part of the commandline) , but as soon as putty is started, i'm unable to send any data to it. I tried the standard "send" command, as well as the "controlsend" command, but both don't seem to work. I also tried this with notepad, and this is working fine. What could this be? Run("putty -load shelfpick -l user -pw password") Sleep(5000) ControlSend ( "PuTTY", "", controlID, "root" [, flag = 1] ) Major thanks for helping me out! Link to comment Share on other sites More sharing options...
Danp2 Posted June 8, 2022 Share Posted June 8, 2022 Does it work if you add #RequireAdmin to the beginning of your script? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Zedna Posted June 9, 2022 Share Posted June 9, 2022 Tip: Try to search this forum for "putty", there is lot of related topics with solutions ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MauriceLahaije Posted June 14, 2022 Author Share Posted June 14, 2022 On 6/8/2022 at 5:37 PM, Danp2 said: Does it work if you add #RequireAdmin to the beginning of your script? unfortunately that doesn't change anything, except for the local admin prompt. Link to comment Share on other sites More sharing options...
MauriceLahaije Posted June 14, 2022 Author Share Posted June 14, 2022 On 6/9/2022 at 3:04 PM, Zedna said: Tip: Try to search this forum for "putty", there is lot of related topics with solutions ... i really did, but i can't find a proper solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now