Robert

Elquin

Programming with Autohotkey for screenshots

February 03 2016
I'm really bad with coding and I've tried different suggestions from reddit (unhelpful) and stackoverflow (rude and unhelpful) but the script I'm trying to figure out for AutoHotkey isn't working.

It's extremely simple what I want to have done. I just want the right mouse button to be pressed down and drag 1 pixel in the specified direction. This seems to work with the script I'm currently using and will move the screen by 1 pixel to the left or up depending on whether I enter 1 into the X or Y coordinate. If I want to reverse the direction of the X/Y movement and put in -1, the scrip doesn't work at all. The mouse still moves, but it never right clicks and nothing happens. I'm just getting frustrated with this and hope someone can hellp me out.

This is the script I'm using now and again, it will work for moving in one direction either left or down, but will not work once I change the x or y to -1.

#Persistent

$F10::Capture()
Numpad0::ExitApp

Capture()
{
    hours := 1.0
    Loop, % hours*720
    {
        Click Down Right
        MouseMove, 0, 1, 0, R
        Send, {PrintScreen}
        Sleep, 2000
    }
}


This code was the only answer I got in reddit and it just doesn't work at all... :(

up::
down::
left::
right::capture(a_thishotkey)

capture(xy) {
    static go := 0  ; a way to know the function is still running
    if go
        return  ; loop is already active, get me out of here
    hours := 1  ; no decimal unless you really want fractions
    go := 1
    loop % hours * 720 
    {
        if (go := 0)
        click down right
        if (xy = "up")
            mousmove,, -1, r
        if (xy = "down")
            mousmove,, 1, r
        if (xy = "left")
            mousmove -1,, r
        if (xy = "right")
            mousmove 1,, r
        send {printscreen}
        click up right  ; let go before continuing
        sleep 2000
    }
    go := 0 ; loop has finished
}


Thank you so much for helping. *fingers crossed*
Edited February 03 2016 by Elquin
Ben

Gravity

Destination Star Trek Brum!

February 03 2016
Ohhh this looks interesting
Unknown Person liked this
Lesley

LesleyA

Destination Star Trek Brum!

February 03 2016
Definitely tempted here. NEC is about 30 minutes run down the A42 from us so is certainly within reach as we wont need accomodation. Will have to see how the event compared to the first (rather disappointing) fare that we had the first year at London.
Unknown Person liked this
Lars Zandor

Lars_Zandor

Destination Star Trek Brum!

February 03 2016
Sad me is unable to go. Birmingham is quite reachable for me (more than Las Vegas anyhow). Sadly, I should reserve the money for higher priority stuff. :(
Unknown Person liked this
Liam

williamjaneway

Destination Star Trek Brum!

February 03 2016
buy me the Admiral package Cal and I'll go with you :)
Unknown Person liked this
Cal

calx

Destination Star Trek Brum!

February 03 2016
Looks like DST is coming to Birmingham (aka Brum) - home to the British Balti and...horny bulls in a ring :woohoo:

7 - 9 October 2016, NEC Birmingham

3 Day Ticket £49
Weekend Ticket £39
1 Day Ticket (Sat or Sun) £29

Lieutenant Package £145 Package
Commander Package £299 Package
Captain Package £899 Package
Admiral Package (VIP) £2,999 Package

DST website

Anyone going?

Edited February 03 2016 by calx
Heli

Narciso

The 50th Anniversary of Star Trek Las Vegas Convention 7th Annual Stonewall Meetup (IMPORTANT TICKET INFO!)

February 02 2016
I'M GOING!!!!!!!!

VACATION APPROVED AT THE LAB!!!!!!

YAY!!!!!!!!
2 people liked this
Audio Red

audiored

NOW OPEN - OFFICE OF THE SHIPWRIGHT

February 01 2016
That was a big help for my tactical officer, so i submitted my science officer's stats as well to get your feedback. Thanks!

Unknown Person

[EVENT!] "Snow Much Fun" Mini Event Day!

February 01 2016
No worries, Dave. Real life unfortunately happens. :)
Audio Red

audiored

NOW OPEN - OFFICE OF THE SHIPWRIGHT

February 01 2016
I submitted a request for assistance through the google doc. Thanks for offering this kind of assistance!
Jamie

tuvak

Re:[EVENT!] "Snow Much Fun" Mini Event Day!

January 31 2016
that kind of talk is blasphemy and worthy of demotion, court martial, and dishonorable discharge!!!
Unknown Person liked this
Liam

williamjaneway

Re:[EVENT!] "Snow Much Fun" Mini Event Day!

January 31 2016
Quote by calx


even more than crispy bacon? :woohoo:


Never !
Unknown Person liked this
Cal

calx

Re:[EVENT!] "Snow Much Fun" Mini Event Day!

January 31 2016
Quote by tuvak
:-( i still wuv you dave.


even more than crispy bacon? :woohoo:

Jamie

tuvak

Re:[EVENT!] "Snow Much Fun" Mini Event Day!

January 31 2016
:-( i still wuv you dave.
Unknown Person liked this
Dave (Voleron)

Voleron

Re:[EVENT!] "Snow Much Fun" Mini Event Day!

January 31 2016
The following tags have no closing tag: b, b, size, center
The following tags can not be placed within a specific tag: center in b, hr in b
[attachment=3461]PostponedStamp.png[/attachment]



" S N O W · M U C H · F U N · D A Y ! "
EVENT POSTPONED · NEW DATE TO BE ANNOUNCED
ANNOUNCEMENT: Due to an unforeseen major situation that unfolded at work for me this week, the "Snow Much Fun" mini-event day will not be going ahead as planned on Sunday, January 31st. We'll still be running the event, but it will be later in the month. A new event day for sometime toward the end of February will be announced in the next few days.

I've never had to cancel a fleet event before and I sincerely apologize to anyone who's been inconvenienced by the date change. We'll be re-scheduling as soon as possible and I'll announce the new date here in the forums before the end of the week!


[attachment=3462]Voleron.jpg[/attachment]

7 people liked this
Edited January 31 2016 by Voleron
Mic Spicer

Pinkscarab

[Event] Fourth Annual White Winter Whirl

January 31 2016
Looking forward to having fun, but i got confused about the time zones, this is why

"PDT is currently not used at all

North America: PDT is currently not observed because locations are on standard time and are observing PST."

See ya tomorrow :)
Michael

Mstfrancis

The Accolade Hunters Club

January 30 2016
So Much Fun! I love seeing people pick up accolades!
It is one of my favorite things!
I really enjoy the little easter eggs that they are! :P
Robert

robin

The Accolade Hunters Club

January 30 2016
Quote by calx
New Romulus Exploration Accolade

Oh no, that one involves jumping again :)
Cal

calx

The Accolade Hunters Club

January 30 2016
Quote by NicholasJohn16
What Accolades will the group be getting that the next meeting?

Saturday 6th February 2016
21.00 GMT

New Romulus Exploration Accolade

The Accolade Hunters Club

January 30 2016
What Accolades will the group be getting that the next meeting?