Script to help you vaginate trough these forums

Locked
User avatar
aSushiRoll
Trader
Posts: 74
Joined: Fri Apr 05, 2013 10:54 pm

Script to help you vaginate trough these forums

Post by aSushiRoll »

Hi guys,

Sorry about the subject title I hope I'm not being inappropriate, great forums, great forums!

I've been pouring all this info and reading up on everything posted here for a few weeks now. Getting there! But I want to do my part and share a small script I've written to help navigate these forums.

Basicly what it does is when you have capslock ON you can use the left&right arrow keys to page back&forward in stead of having to click on the NEXT or number buttons in a thread ;)

just don't use it TOO quickly, or it wont' work. So far I have only tested it on windows & chrome, since it uses ALT+D keyboard shortcut to get the titlebar address.

Here's the link to the compiled .exe
https://www.dropbox.com/s/jh3ey85zxeawwya/vaginate.exe
Here's the autohotkey script if you don't trust me (great program!)
https://www.dropbox.com/s/swxpkb6yua8rh8u/vaginate.ahk

Code: Select all

~Right::
{
    GetKeyState, state, CapsLock, T
    if state = D
    {
    	BackupClipbrd := Clipboard
        Send {ALT down}d{ALT up} ; Select the url textbox
        Sleep 50
        Send ^c ; Copy the url
        ClipWait 0.1
        If ERRORLEVEL
        {
        	Clipboard := BackupClipbrd
    	    Return
        }
    	if(InStr(Clipboard ,"stevehopwoodforex",false))
        {
          reg1 := ".*?start=(\d+)"
          reg2 := "(.*t=\d+)"
          reg3 := "(.*?start=)\d+"
          postfix1 := "&start=10"
          postfix2 := ""
          incr := 10
    	}
    
    	regexmatch(Clipboard,reg1,match)
    	if match1 =
    	{
           	regexmatch(Clipboard,reg2,matchtwo)
           	newpage = %matchtwo1%%postfix1%
     		Clipboard = % newpage
            Send !d^v{ENTER}
       	}
    	else
    	{
           	newpage := % match1 + incr
           	regexmatch(Clipboard,reg3,matchtwo)
          	newpage = %matchtwo1%%newpage%%postfix2%
    		Clipboard = % newpage
            Send !d^v{ENTER}
       	}
        Clipboard := BackupClipbrd
    	return
    }
	return
}

~Left::
{
    GetKeyState, state, CapsLock, T
    if state = D
        {
    	BackupClipbrd := Clipboard
        Send !d ; Select the url textbox
        Send ^c ; Copy the url
        ClipWait 0.1
        If ERRORLEVEL
        {
        	Clipboard := BackupClipbrd
    	    Return
        }
    	if(InStr(Clipboard ,"stevehopwoodforex",false))
        {
          reg1 := ".?start=(\d+)"
          reg2 := "(.*?)start=10"
          reg3 := "(.*start=)\d+"
          postfix1 :=
          postfix2 :=
          decr := 10
          firstpage := 10
    	}
    	regexmatch(Clipboard,reg1,match)
    	if match1 =
    	{
    		return
    	}
    	else
    	{
           	newpage =
               ; test to see if first page or not
            if % match1 = firstpage
            {
                regexmatch(Clipboard,reg2,matchtwo)
                newpage = %matchtwo1%
            }
            else
            {
        	    newpage := % match1 - decr
    	       	regexmatch(Clipboard,reg3,matchtwo)
        		newpage = %matchtwo1%%newpage%
            }
    		Clipboard = % newpage
            Send !d^v{ENTER}
    	}
        Clipboard := BackupClipbrd
    	return
	}
	return
}
User avatar
KevinT
Trader
Posts: 113
Joined: Fri Jan 06, 2012 4:23 am

Re: Script to help you vaginate trough these forums

Post by KevinT »

:good:
Last edited by KevinT on Sat Jan 17, 2015 8:11 am, edited 1 time in total.
Mahapathy
Posts: 5
Joined: Sun Apr 14, 2013 4:45 am

Re: Script to help you vaginate trough these forums

Post by Mahapathy »

Thanks Susai, is it possible to go to specified page like 663 of a forum thread...
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Script to help you vaginate trough these forums

Post by SteveHopwood »

That's fabulous. I am going to add links to my Welcome message to new members and to my weekly roundup. Thanks.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: Script to help you vaginate trough these forums

Post by milanese »

Mahapathy wrote:Thanks Susai, is it possible to go to specified page like 663 of a forum thread...
This is easy look at the img :D
exp.png
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Mahapathy
Posts: 5
Joined: Sun Apr 14, 2013 4:45 am

Re: Script to help you vaginate trough these forums

Post by Mahapathy »

Thank you so much it works
giailang
Trader
Posts: 18
Joined: Wed Oct 24, 2012 10:57 am

Re: Script to help you vaginate trough these forums

Post by giailang »

KevinT wrote::shock: :o :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

VAGinate LOL, as in vaguely innate...

Great "indie" :D :D :D

Now seriously, a much needed help navigating 4 thousand posts threads really... thanks a lot.

I just wander what the likes of Pippa or Ozgirl will have to say to...

You'd better state that you are in no way a misogynist... (even if you are a woman yourself (sushi roll :lol: )) :lol: :lol: :lol:

Cheers mate :P
This member reminds me of very famous NuckingFut character since the old FF's days. Same mindset, but not neccessary same person :D
taipan
Trader
Posts: 355
Joined: Sat Feb 16, 2013 11:27 am

Script to help you vaginate trough these forums

Post by taipan »

aSushiRoll » Tue May 07, 2013 3:08 pm wrote:Hi guys,

Sorry about the subject title I hope I'm not being inappropriate, great forums, great forums!

I've been pouring all this info and reading up on everything posted here for a few weeks now. Getting there! But I want to do my part and share a small script I've written to help navigate these forums.

Basicly what it does is when you have capslock ON you can use the left&right arrow keys to page back&forward in stead of having to click on the NEXT or number buttons in a thread ;)

just don't use it TOO quickly, or it wont' work. So far I have only tested it on windows & chrome, since it uses ALT+D keyboard shortcut to get the titlebar address.

Here's the link to the compiled .exe
https://www.dropbox.com/s/jh3ey85zxeawwya/vaginate.exe
Here's the autohotkey script if you don't trust me (great program!)
https://www.dropbox.com/s/swxpkb6yua8rh8u/vaginate.ahk

Code: Select all

~Right::
{
    GetKeyState, state, CapsLock, T
    if state = D
    {
    	BackupClipbrd := Clipboard
        Send {ALT down}d{ALT up} ; Select the url textbox
        Sleep 50
        Send ^c ; Copy the url
        ClipWait 0.1
        If ERRORLEVEL
        {
        	Clipboard := BackupClipbrd
    	    Return
        }
    	if(InStr(Clipboard ,"stevehopwoodforex",false))
        {
          reg1 := ".*?start=(\d+)"
          reg2 := "(.*t=\d+)"
          reg3 := "(.*?start=)\d+"
          postfix1 := "&start=10"
          postfix2 := ""
          incr := 10
    	}
    
    	regexmatch(Clipboard,reg1,match)
    	if match1 =
    	{
           	regexmatch(Clipboard,reg2,matchtwo)
           	newpage = %matchtwo1%%postfix1%
     		Clipboard = % newpage
            Send !d^v{ENTER}
       	}
    	else
    	{
           	newpage := % match1 + incr
           	regexmatch(Clipboard,reg3,matchtwo)
          	newpage = %matchtwo1%%newpage%%postfix2%
    		Clipboard = % newpage
            Send !d^v{ENTER}
       	}
        Clipboard := BackupClipbrd
    	return
    }
	return
}

~Left::
{
    GetKeyState, state, CapsLock, T
    if state = D
        {
    	BackupClipbrd := Clipboard
        Send !d ; Select the url textbox
        Send ^c ; Copy the url
        ClipWait 0.1
        If ERRORLEVEL
        {
        	Clipboard := BackupClipbrd
    	    Return
        }
    	if(InStr(Clipboard ,"stevehopwoodforex",false))
        {
          reg1 := ".?start=(\d+)"
          reg2 := "(.*?)start=10"
          reg3 := "(.*start=)\d+"
          postfix1 :=
          postfix2 :=
          decr := 10
          firstpage := 10
    	}
    	regexmatch(Clipboard,reg1,match)
    	if match1 =
    	{
    		return
    	}
    	else
    	{
           	newpage =
               ; test to see if first page or not
            if % match1 = firstpage
            {
                regexmatch(Clipboard,reg2,matchtwo)
                newpage = %matchtwo1%
            }
            else
            {
        	    newpage := % match1 - decr
    	       	regexmatch(Clipboard,reg3,matchtwo)
        		newpage = %matchtwo1%%newpage%
            }
    		Clipboard = % newpage
            Send !d^v{ENTER}
    	}
        Clipboard := BackupClipbrd
    	return
	}
	return
}

Thanks for the great program and I am too late for the party. The download links have been deleted, appreciate you could upload again.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Script to help you vaginate trough these forums

Post by SteveHopwood »

It is on my old machine that is currently not working so I cannot get at it. Can anyone repost it here please, so I can place it in post 1?

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Locked

Return to “Lounge”