Author Topic: [TOOL] movepixel  (Read 18687 times)

Offline GarvinTheGreat

  • Ultra Heavyweight
  • Posts: 1495
  • Rep: 1
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #40 on: May 30, 2011, 04:15:03 PM »
Looks great cracker! Thanks

Please, when you shorten my name use NC :)

I'm guessing you're white. XD
Lol

Offline Enigm@

  • convicted sex offender
  • *
  • Posts: 6616
  • Rep: 5
  • :really_makes_you_think:
    • http://www.youtube.com/us
    • View Profile
    • Awards
  • Skype: uncle_slamm
Re: [TOOL] movepixel
« Reply #41 on: May 30, 2011, 04:15:16 PM »
Looks great cracker! Thanks

Please, when you shorten my name use NC :)

I'm guessing you're white. XD

As in skin color or ??
As in your skin color is Caucasian. and "cracker" is a racial slur for a person that is Caucasian.
(◕‿◕✿) discord: uncle_slamm steam: bigmommaprodz #unbanlra2

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #42 on: May 30, 2011, 04:16:16 PM »
I had no clue, but yes I'm "white". Getting offtopic are we?

Offline GarvinTheGreat

  • Ultra Heavyweight
  • Posts: 1495
  • Rep: 1
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #43 on: May 30, 2011, 04:18:11 PM »
Getting offtopic are we?

Absoulutley!

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #44 on: May 30, 2011, 04:27:16 PM »
Enigma I think he just likes NC better... :)

Cool I'll check out the new features NC, and let you know if there are any bugs.

EDIT: what would you like us to do with the .ink file?
You got my vote for RA2 Wizard. Always and forever.

Offline Kujii

  • Ultra Heavyweight
  • Posts: 1638
  • Rep: -3
    • View Profile
    • Awards
  • Skype: KujiiTetsuiga
Re: [TOOL] movepixel
« Reply #45 on: May 30, 2011, 04:30:12 PM »
Nice Job man

The save-tool unfortunately may not work perfectly due to how the engine works, but I'd still keep it in there since it works under some conditions, if not many. It also still places us generally in the same area, so it would be a great tool if we need a general reminder of where we had been.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #46 on: May 30, 2011, 04:32:53 PM »
Nah, I won't put it back in unless I can guarantee pixelperfect repositioning. Otherwise it's use would be nullified.

@Sage: The .lnk was accidently zipped in xD It's out now though.

Offline Scorpion

  • Giga Heavyweight
  • Posts: 5431
  • Rep: 2
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #47 on: May 30, 2011, 04:37:11 PM »
Wow, what a great way to introduce yourself.
The clockwise rotation will be very handy in particular, save me a lot of time fiddling around with multis...

I'd also be curious to see your bots that you mentioned before at some point, you seem like the kind of person who'd be able to take advice well and improve quickly.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #48 on: May 30, 2011, 04:41:25 PM »
Wow, what a great way to introduce yourself.
The clockwise rotation will be very handy in particular, save me a lot of time fiddling around with multis...

I'd also be curious to see your bots that you mentioned before at some point, you seem like the kind of person who'd be able to take advice well and improve quickly.

I'm working on a popup ATM, I'll guess I'll open a stock showcase in a few days once the first version is done. And yes, I usually take advice well, as long as it's not written in trollspeak (LOLZ UR IRONSPIKE SUXX USE MACEZ).

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #49 on: May 30, 2011, 04:41:30 PM »
https://gametechmods.com/uploads/files/movepixelSAGEMOD.zip
For all of those who don't have any of the keys that NC is using (like, say, on an old macbook pro) i modded the file to use UHJK instead (which should be on everyones keyboard). Heres the commands:

ALT+Enter - click mouse button
SHIFT+H - rotate counter-clockwise
SHIFT+K - rotate clockwise
CTRL+U - move component up
CTRL+J - move component down
ALT+U - move cursor one pixel up
ALT+J - move cursor one pixel down
ALT+H - move cursor one pixel left
ALT+K - move cursor one pixel right
You got my vote for RA2 Wizard. Always and forever.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #50 on: May 30, 2011, 04:43:37 PM »
I approve sage, if you will take down that RAR and ZIP it instead. I have a huge hate against RAR and would prefer not to see my stuff redistributed in these containers :)

I forgot to mention, if anyone cares, this is the license:
Quote
Copyright 2011 Orson Peters. All rights reserved.

Redistribution of this work, with or without modification, is permitted if
Orson Peters is attributed as the original author or licensor of
this work, but not in any way that suggests that Orson Peters endorses
you or your use of the work.

This work is provided by Orson Peters "as is" and any express or implied
warranties are disclaimed. Orson Peters is not liable for any damage
arising in any way out of the use of this work.

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #51 on: May 30, 2011, 04:45:53 PM »
done.
You got my vote for RA2 Wizard. Always and forever.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #52 on: May 30, 2011, 04:49:41 PM »
Hmm, perhaps I should cooperate your change in my version instead. You are right about these keys on many laptops (like weird positioning).

I think I'll go with JIKL instead of HUJK, because if you take two wirings, one for normal AWSD and one for inversed next to it that would be FTGH. That overlaps with HUJK so JIKL can be considered "safe" if we look at the most common wiring setups.

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #53 on: May 30, 2011, 04:53:11 PM »
Hmm, perhaps I should cooperate your change in my version instead. You are right about these keys on many laptops (like weird positioning).

I think I'll go with JIKL instead of HUJK, because if you take two wirings, one for normal AWSD and one for inversed next to it that would be FTGH. That overlaps with HUJK so JIKL can be considered "safe" if we look at the most common wiring setups.

Good idea. Just remind everyone to exit the script once you're done playing RA2 if we're all going to being using letters. (It messes up with typing occasionally)
You got my vote for RA2 Wizard. Always and forever.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #54 on: May 30, 2011, 04:59:08 PM »
Perhaps even one more shifted to the right so your pink can rest on the enter key. And now were not at those critical Pageup/delete/etc keys, we might as well remove the ALT modifier. What about this?

Enter - mouse click

O - move cursor one pixel up
L - move cursor one pixel down
K - move cursor one pixel left
; - move cursor one pixel right

SHIFT + K - rotate counter-clockwise
SHIFT + ; - rotate clockwise
CTRL + O - move component up
CTRL + L - move component down

And yes, you must remember to exit the script after exiting RA2, but I guess most users will find that out soon enough ;)

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #55 on: May 30, 2011, 05:02:14 PM »
Perhaps even one more shifted to the right so your pink can rest on the enter key. And now were not at those critical Pageup/delete/etc keys, we might as well remove the ALT modifier. What about this?

Enter - mouse click

O - move cursor one pixel up
L - move cursor one pixel down
K - move cursor one pixel left
; - move cursor one pixel right

SHIFT + K - rotate counter-clockwise
SHIFT + ; - rotate clockwise
CTRL + O - move component up
CTRL + L - move component down

And yes, you must remember to exit the script after exiting RA2, but I guess most users will find that out soon enough ;)

Is there a way to start the script automatically and close it automatically with RA2?

Also, new commands look great.
You got my vote for RA2 Wizard. Always and forever.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #56 on: May 30, 2011, 05:22:03 PM »
Is there a way to start the script automatically and close it automatically with RA2?

Also, new commands look great.

Well, I could write a wrapper for RA2 and bypass Autohotkey completely (this looks interesting: http://stackoverflow.com/questions/1820825/global-hotkey-with-win32-api). Then instead of a shortcut to RA2 you have a shortcut to the wrapper. But perhaps this is overkill and reduces configurability/portability.

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: [TOOL] movepixel
« Reply #57 on: May 30, 2011, 05:26:26 PM »
Oh, alright. Yea it's probably simpler this way, just didn't know if you could "latch" a script to a certain .exe to open and close when the .exe does or something. If it requires a completely different way, then it's fine.
You got my vote for RA2 Wizard. Always and forever.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: [TOOL] movepixel
« Reply #58 on: May 30, 2011, 05:54:23 PM »
I have an idea. My tool is a little process that runs in the background. It registers the appropriate hotkeys (for which I will make some configuration utility). When a hotkey fires it c if the active window is RA2, if yes then it does it's magic, else it passes on the hotkey.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
    • Badnik96GTM
  • Awards BOTM Winner
    • View Profile
    • BattleBots Wiki
    • Awards
  • See profile for gamer tags: Yes
  • Skype: Badnik96
Re: [TOOL] movepixel
« Reply #59 on: May 30, 2011, 06:34:39 PM »
oh man this looks cool

totally DLing it when I get my own PC back