There's a coding website for my college. But it doesn't allow copy pasting.
I do the programming in online compiler because the compiler in that website is way too slow.
So after writing the code, I'm having to retype the entire code.
I tried writing a script to do this. Can someone help me with it?
I paste the code to be typed into "contents.txt" and I have another background ahk file that runs this file when I press Ctrl+Alt+v.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FileRead, code, contents.txt
SendInput {Raw}%code%(SendInput)