Current Code to sort items in a folder by type:
Code: Select all
Send {F10}
Sleep 250
Send {Right}
Sleep 250
Send {Enter}
Sleep 250
Send {Down 6}
Sleep 250
Send {Right}
Sleep 250
Send {Down 2}
Sleep 250
Send {Enter}
return
Code: Select all
Send {F10}
Sleep 250
Send {Right}
Sleep 250
Send {Enter}
Sleep 250
Send {Down 6}
Sleep 250
Send {Right}
Sleep 250
Send {Down 2}
Sleep 250
Send {Enter}
return
Code: Select all
q:: ;start/restart
Sends := ["F10","Right","Enter","Down 6","Down 2","Enter"]
Count := 0
Sends:
Send,% "{" Sends[++Count] "}"
SetTimer, Sends,% Count-Sends.Count()?250:"Off" ;every 250 ms
Return
Code: Select all
q:: ;start/restart
Sends := ["F10","Right","Enter","Down 6","Down 2","Enter"]
Sleeps := [250,250,250,250,250,"Off"], Count := 0
Sends:
Send,% "{" Sends[++Count] "}"
SetTimer, Sends,% Sleeps[Count]
Return
To use this approach and ensure correct settings as pointed out by RussF:CuriousDad wrote: ↑ Thanks. In reading the documentation, I thought that SetKeyDelay created delays between keystrokes (such as typing out a word) and how long a key is held down. If so, does it really space out each command function? I placed 250 ms between each command because sometimes, the commands moves faster than cursor and steps get missed.
Code: Select all
SetKeyDelay, 250
SendEvent, {F10}{Right}{Enter}{Down 6}{Right}{Down 2}{Enter}
SetKeyDelay, 10 ; set back to default if there is more to the script
Code: Select all
s::SoundBeep, 4000, 20
q::
SetKeyDelay, 250
SendEvent, {F10}{Right}{Enter}{Down 6}{Right}{Down 2}{Enter}
SetKeyDelay, 10 ; set back to default if there is more to the script
Return
w::
Send {F10}
Sleep 250
Send {Right}
Sleep 250
Send {Enter}
Sleep 250
Send {Down 6}
Sleep 250
Send {Right}
Sleep 250
Send {Down 2}
Sleep 250
Send {Enter}
return