cynapse Posted January 20, 2009 Share Posted January 20, 2009 Hi ! i'm a new user of Auto IT. In fact, i'd like to try to write a little script and i have a few question to begin.. In fact, I'm using an IE page at Work. In this page, I need to select a project name and after that, it's always the same task to do... So i'd like to industrialize it ! What I'd like to do is : - I manually go on that IE page and I select with my mouse the project NAME. - When the name is selected, I press a hot key which will open Putty.exe and paste the project name inside. Could you help me to find the way to begin ? I have seen Send("^C), Run (for Putty ?), WinWait functions but I have some difficulties to integrate them to do that.. Thanks for everything and have a good day :-) Seb Link to comment Share on other sites More sharing options...
azure Posted January 20, 2009 Share Posted January 20, 2009 Hi ! i'm a new user of Auto IT. In fact, i'd like to try to write a little script and i have a few question to begin.. In fact, I'm using an IE page at Work. In this page, I need to select a project name and after that, it's always the same task to do... So i'd like to industrialize it ! What I'd like to do is : - I manually go on that IE page and I select with my mouse the project NAME. - When the name is selected, I press a hot key which will open Putty.exe and paste the project name inside. Could you help me to find the way to begin ? I have seen Send("^C), Run (for Putty ?), WinWait functions but I have some difficulties to integrate them to do that.. Thanks for everything and have a good day :-) Seb HOTKEYSET("^!c","CopyPastePutty") While 1 Sleep(100) WEnd Func CopyPastePutty() SEND("^c") $string = ClipGet() TrayTip("","Copied " & $string & " to clipboard!",1) Run("putty.exe") ProcessWait("putty.exe") WinActive("PuTTY") SEND($string) TrayTip("","Sent " & $string & " to putty!",1) EndFunc Link to comment Share on other sites More sharing options...
cynapse Posted January 21, 2009 Author Share Posted January 21, 2009 HOTKEYSET("^!c","CopyPastePutty") While 1 Sleep(100) WEnd Func CopyPastePutty() SEND("^c") $string = ClipGet() TrayTip("","Copied " & $string & " to clipboard!",1) Run("putty.exe") ProcessWait("putty.exe") WinActive("PuTTY") SEND($string) TrayTip("","Sent " & $string & " to putty!",1) EndFunc Thanks a lot !!! I have managed to improve that script with other features and that works ! that's amazing ! i'm going to continue to discover that fabulous tool Have a nice day !! 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