Jump to content

Script for paste previously copied text (Clipboard)


Recommended Posts

Its possible to past previously copied text to somewhere with autoit script ?
If yes, How it ?
example : Before I copied ABCD and then copied the PQRS, how to past the previously copied ABCD ?

Link to comment
Share on other sites

Thanks InunoTaishou
 

Global $sLastClip = ClipGet()

While (True)
    Local $sNewClip = ClipGet()
    If (ClipGet() <> $sLastClip) Then
        ConsoleWrite("Last Clip:" & @LF & $sLastClip & @LF)
        $sLastClip = $sNewClip
    EndIf
    Sleep(100)
WEnd

But i can i past this i past last copied text using controlsend, so how to send this
My window information is
Windows : Title - Single Sign On
Class - WindowsForms10.Window.8.app.0.33c0d9d

Control : Class - WindowsForms10.EDIT.app.0.33c0d9d
Instance - 2
Name- txtPassword

Advance Mode - [NAME:txtPassword]
ID - 132444

Link to comment
Share on other sites

5 minutes ago, Nareshm said:

Thanks InunoTaishou
 

Global $sLastClip = ClipGet()

While (True)
    Local $sNewClip = ClipGet()
    If (ClipGet() <> $sLastClip) Then
        ConsoleWrite("Last Clip:" & @LF & $sLastClip & @LF)
        $sLastClip = $sNewClip
    EndIf
    Sleep(100)
WEnd

But i can i past this i past last copied text using controlsend, so how to send this
My window information is
Windows : Title - Single Sign On
Class - WindowsForms10.Window.8.app.0.33c0d9d

Control : Class - WindowsForms10.EDIT.app.0.33c0d9d
Instance - 2
Name- txtPassword

Advance Mode - [NAME:txtPassword]
ID - 132444

i copy every time random text i means diffrent text

Link to comment
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
 Share

×
×
  • Create New...