We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Click to win - a quicker way

Options
1235

Comments

  • Biker*Chick
    Biker*Chick Posts: 10,037 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    The vital parts of the script are enclosed between the two ; ; ; ; ; and should be copied into the ahk text file. You can add your own macros to the same script without any interference (unless you try to assign the same keyboard shortcuts for two different macros). I have hundreds of macros in my ahk text file :money:!

    You don't need to close any tabs before running the macro. Just open up a new browser window and open up the C2W pages as described in my previous post.

    This macro isn't sophisticated enough to close the pages once it's submitted the entries. I had to write two separate macros just to close the tabs; the C2W sites behave in one of two ways when you click the "Enter..." button, hence, the two tab-closing macros.

    Thanks for clarifying :T:T I have much to learn! :D

    So, once it's run through all the tabs I presume it comes to a stop and then I simply close down the browser window?

    I'll have to 'read up' on macro-writing then :rotfl:

    Cheers for the help, SpaceyKevin :money:
    =^._.^= You will always be lucky if you know how to make friends with strange cats =^._.^=
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    RAP wrote: »
    I had to limit the loop to 50 as it wouldn't stop and my laptop went a bit bonkers. It is very handy for the bigger publications but I am sticking to the old fashioned way for the smaller ones. Still greatly apprecaited though :)

    SpaceyKevin How do i limit the loop please, i would like it to about 50 too?

    Thank you
  • Biker*Chick
    Biker*Chick Posts: 10,037 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    Not sure what I am doing wrong but it goes from tab to tab but does not seem to enter any

    Will have to have another go tomorrow

    I've given it a go - but unfortunately it doesn't enter most of them because as it goes from tab to tab the 'entry' box moves up and down the page rather than being in one spot. I can see it working better with the radio station ones though, as their entry boxes always seem to be in exactly the same place from one site to the next :cool:
    =^._.^= You will always be lucky if you know how to make friends with strange cats =^._.^=
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    I added this to mine so i can stop it quickly :)

    Escape::
    ExitApp
    Return
  • GeeBee38 wrote: »
    SpaceyKevin How do i limit the loop please, i would like it to about 50 too?

    Thank you


    ; ; ; ; ;
    ^!r::Reload ; Reloads the Autohotkey script

    !c:: ; Alt + C activates the macro
    loop, 50 ; Loop begins
    {
    click ; Sends a mouse click
    send ^{tab} ; Moves onto the next tab
    sleep 1500 ; Waits 1.5 seconds
    ifwinactive, New Tab ; Checks if the "New Tab" tab is currently active
    break ; Stops the loop if the "New Tab" tab is active
    }
    return
    ; ; ; ; ;

    The loop should now only run 50 times at most.
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    RAP wrote: »
    I had to limit the loop to 50 as it wouldn't stop and my laptop went a bit bonkers. It is very handy for the bigger publications but I am sticking to the old fashioned way for the smaller ones. Still greatly apprecaited though :)
    ; ; ; ; ;
    ^!r::Reload ; Reloads the Autohotkey script

    !c:: ; Alt + C activates the macro
    loop, 50 ; Loop begins
    {
    click ; Sends a mouse click
    send ^{tab} ; Moves onto the next tab
    sleep 1500 ; Waits 1.5 seconds
    ifwinactive, New Tab ; Checks if the "New Tab" tab is currently active
    break ; Stops the loop if the "New Tab" tab is active
    }
    return
    ; ; ; ; ;

    The loop should now only run 50 times at most.


    Thank you very much :)
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    Just one more question please, sorry to be a pain

    Can i add to the script to enter my email address, for when i clean my cookies etc, cccleaner?

    Thank you
  • GeeBee38 wrote: »
    Just one more question please, sorry to be a pain

    Can i add to the script to enter my email address, for when i clean my cookies etc, cccleaner?

    Thank you

    I don't think that would be necessary. You can enter one of the C2W comps manually and the email address box should be filled when you open a new competition page (of the same site).
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    Ok, Thank you SpaceyKevin
  • GeeBee38
    GeeBee38 Posts: 3,230 Forumite
    Part of the Furniture 1,000 Posts Photogenic
    Just one more question please SpaceyKevin

    Everything working great, while the programme is running, i have noticed my browser tries to download files, can i stop this happening please?

    Thanks
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.6K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.