OK, so, you know how **** sites have websites like:
www.****.com/gallery01.htm
www.****.com/gallery02.htm
etc.?
Here is a script to save you some time, and hence, increase efficiency!
1) An input box with the current contents of the clipboard pops up
2) Put vertical separators ("|") around the field to increment, e.g.:
www.****.com/gallery|01|.htm
3) Check whether it is padded or not ("09" "10" or "9" "10")
4) Every time you hit Ctrl-V, the script will paste the next entry.
5) Ctrl-Shift-V will paste the previous entry
5) Win-Q to quit.
Good script or great script?
Code:
#NoEnv
SendMode Input
File := MyInputBox(Clipboard)
Return
^v::
File := NextFile(File,1,GL_UsePadding)
StringReplace, TempString,File, |,,A
Send, %TempString%
Return
^+v::
File := NextFile(File,-1,GL_UsePadding)
StringReplace, TempString,File, |,,A
Send, %TempString%
Return
#q::
ExitApp
NextFile(Filepattern, increment=1, Padding=1)
{
StringSplit, Temp, FilePattern, |
If Temp0 = 3
{
If Padding
{
Len := StrLen(Temp2)
Temp2 += increment
Padding := Len-StrLen(Temp2)
Loop %Padding%
Pad = %Pad%0
}
else
{
Temp2 += increment
}
ReturnString = %Temp1%|%Pad%%Temp2%|%Temp3%
Return ReturnString
}
else
Return ERROR
}
MyInputBox(InitialText)
{
global GL_InputText
global GL_UsePadding
gui, -caption +LastFound +AlwaysOnTop +ToolWindow
gui, add, edit, vGL_InputText, %InitialText%
Gui, Add, Button, Default, OK
Gui, Add, Checkbox, vGL_UsePadding Checked, Padding
gui, show
InputBoxActive = 1
Loop
{
Sleep, 500
If InputBoxActive = 0
Break
}
Return %GL_InputText%
ButtonOK:
Gui, submit
GuiEscape:
InputBoxActive = 0
Return
}
[ Moderator!: The links / title have been masked. ]