VBA_User Posted May 1, 2021 Share Posted May 1, 2021 How to get the file path from clipboard, which has been copied recently and then to put it in ControlSend "File Path"? In VBA, I will copy the cell value (File Path - D:\PGTemp\Upload Successful.txt) from excel then I will run the au script. The Script that requires modification: Sleep (5000) ControlFocus ( "Open","","Edit1" ) ControlSend("Open","","Edit1", "D:\PGTemp\Upload Successful.txt") ControlClick ("Open","","Button1") Link to comment Share on other sites More sharing options...
VBA_User Posted May 1, 2021 Author Share Posted May 1, 2021 Thanks Guys, Problem Solved. Local $sdata = ClipGet() ControlFocus ( "Open","","Edit1" ) ControlSend("Open","","Edit1", $sdata) ControlClick ("Open","","Button1") 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