PlatinumDruggie Posted May 1, 2018 Posted May 1, 2018 I'm new to AutoIt, but i'm starting to unlock it's potentials. Can someone give me an example code that would put "/-" without quotations in the clipboard every X seconds?
aa2zz6 Posted May 2, 2018 Posted May 2, 2018 You can use this to get msgs to clipboard --> ClipPut("/-") and use Send("^v") to paste on the application. I'll provide links so you can read more. If you don't understand, feel free to let us know HotKeySet("{ESC}", "_Terminate") While 1 Run("notepad.exe") WinWaitActive("Untitled - Notepad") ClipPut("/-") Send("^v") Sleep(1000) WEnd Func _Terminate() Exit EndFunc ;==>_Terminate https://www.autoitscript.com/autoit3/docs/functions/ClipPut.htm https://www.autoitscript.com/autoit3/docs/keywords/While.htm https://www.autoitscript.com/autoit3/docs/functions/Sleep.htm PlatinumDruggie 1
PlatinumDruggie Posted May 2, 2018 Author Posted May 2, 2018 Thanks a lot, I did not need it to open Notepad or anything, so just the CipPut command works great, thanks for the info, it is much appreciated.
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