Public Class Form1 Private Sub tmr_Tick(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles tmr.Tick If (Win32API.GetAsyncKeyState(Keys.F8) < 0) Then Rename_AddSameValue("Test_") DownArrow()'press DownArrow jump to next file. End If End Sub Sub Rename_AddSameValue(ByVal strToAdd As String) F2()' press F2. Sleep(10) Ctrl_C()' press Ctrl + C. Sleep(10) Dim strClip As String = Clipboard.GetText()'Get current file name. 'Create a new file name by conbine "test_" and current file name. Sleep(10) strToAdd = strToAdd & strClip Sleep(10) PasteTxt(strToAdd)'Press Ctrl + V to paste new name. Sleep(10) EnterPress()'press enter End Sub End Class
Thread.Spleep
Form1
tmr_Tick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)