Sign in to follow this  
Followers 0
cynapse

Select / copy / paste

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 !!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0