Jump to content

alex OF DEATH

Active Members
  • Posts

    152
  • Joined

  • Last visited

alex OF DEATH's Achievements

Prodigy

Prodigy (4/7)

0

Reputation

  1. right click -> run script? There's an option somewhere to make it run on double click by default..
  2. You tell me- I'm trying to convert this: unsigned short paksize=(*((unsigned short*)&packet[0])) - 2; for(int i=2; i<paksize; i++) { packet[i] = 0x61 ^ packet[i]; } I have almost zero practical experience with any variant of C. --??? Someone's post here vanished. Oh well.
  3. So.. is there anything I can do?
  4. Well, I'm trying to do some relatively simple math here.. but not with integers. I have an array with a series of strings such as "FF" and "0C" .. which, as you probably know, are hex bytes. Now, using each hex byte from the array, I want to take it to the power of 0x61. Technically, I'm doing this: 0x61 ^ "FF" ... But FF is a string, and not actual hex. Even if I add 0x.. it's still "0xFF" (which is still a string) I tried making each byte a decimal with Dec(),, then doing 97 ^ Dec($arraywithhexinstringform) but.. it usually just returned "#INF" (?) Anybody see a way to do this? here's what I have right now: Thanks in advance #Include <String.au3> #Include <WinAPI.au3> global $pakbytes[13] global $decryptedpak[13] $recv = "0x0B00C5661A0F6160610000" ; the hex $recvpak = StringTrimLeft ( $recv, 0 ) ;nevermind this $size = StringLen ($recvpak) / 2 ;how many bytes (2 chars per byte) for $i = 0 to $size $pakbytes[$i] = StringLeft ( $recvpak, 2 ) ;for each byte (two characters), add into $pakbytes[] $recvpak = StringTrimLeft( $recvpak, 2 ) next for $i = 1 to ubound($pakbytes) - 1 ; consolewrite($pakbytes[$i] & @CR) next ;consoleWrite("DECRYPTED::" & @CR) for $i = 2 to ubound($pakbytes) - 2 ;for i to how many bytes (except first two and last two) $decryptedpak[$i] = 0x61 ^ $pakbytes[$i] consoleWrite($decryptedpak[$i] & @CR) next
  5. Uh... Minimize all windows?
  6. I don't get it. You want winwaitactive() to check if the desktop is visible? You want to minimize everything to view the desktop?
  7. Well you could make it function on only one monitor, but you couldn't really use the mouse macro. It would require 2 mice at the same time, no? One for the macro and one for you to use.
  8. Post your code here Just type it before and after your code
  9. So instead of it constantly searching the rows in order, I just wait until something changes and THEN send the PixelGetColor()? That honestly doesn't make too much sense to me, as it would be nearly the same thing. PixelGetColor() Will still take the same amount of time to see what has changed. With a step of 20 pixels.. 12,500 pixels need to be pixelgetcolor()'d in a 500x500 square.. Searching approximately 735 pixels per second.. 17 seconds to loop through ONCE. As in, if I waited for the pixelchecksum() to be set off, and the movement was in the bottom right corner, it would be 17 seconds before it reached that corner and detected movement at all, if the movement is still there. The only solution I got out of that post was MULTIPLE pixelchecksum()'s all searching MUCH smaller areas at the same time. If one of the very small squares is tripped, it sends the pixelgetcolor() in that small square, resulting in a helluva lot faster searching speeds. Each pixelchecksum() checking a 75x75 square.. I like it. 0.7 seconds to detect movement from the very bottom right corner.
  10. Yeah, I need the detected movement to return the coordinates (or at least have the coordinates it was found at available, like in my script) I like that For Loop thing, thanks.
  11. Well, I've been working on a 'motion detection' type script. It works as good as I expected it too, but it's no where near fast enough. The only way I've been able to fix it is to open the script 10 times at once. Right now, all the code does is search a square, 250x250 (Top left corner of desktop, try dragging an icon over there while program is running) for a change in color. If a color change happens, it sets a little red marker thing. There's a 20 pixel jump, just to save time, so it isn't very sensitive. I know that the sleep(500) will slow it down, but that's just so I could see where the marker would appear. There's bound to be a faster alternative. How the heck would I be able to speed this up? #include <GUIConstants.au3> #include <Array.au3> Global $size = 5 Global $Left = MouseGetPos (0) Global $Top = MouseGetPos (1) $X = 0 $Y = 0 While 1 ; loop $p1 = PixelGetColor ( $X , $Y ) ; Get pixel color at $X, $Y sleep(1) ; Delay for 1 ms $p2 = PixelGetColor ( $X , $Y ) ; Get pixel color again $X = $X+20 ; Add 20 to $X if $x > 250 then $Y = $Y+20 ; If $X = 250, add 20 to Y. This basically checks if X has reached the end of it's row, and if it has, start searching 20 pixels down if $x > 250 then $x = 0 ; Same as above, except it set's $X back to 0 if $p1 - $p2 > 500000 then ; If The two pixel color checks are not the same, Create the little red GUI motion indicator thing. $MouseShadow = GUICreate ("motionX", 3, 100, $Left, $Top, $WS_POPUP, _ BitOR ($WS_EX_TRANSPARENT, $WS_EX_LAYERED, $WS_EX_TOPMOST)) WinSetTrans ($MouseShadow, "", 190) GUISetBkColor(0xFF0000, $MouseShadow) GUISetState () WinMove ($MouseShadow, "", $X, $Y) $MouseShadow2 = GUICreate ("motionY", 100, 3, $Left, $Top, $WS_POPUP, _ BitOR ($WS_EX_TRANSPARENT, $WS_EX_LAYERED, $WS_EX_TOPMOST)) WinSetTrans ($MouseShadow2, "", 190) GUISetBkColor(0xFF0000, $MouseShadow2) GUISetState () WinMove ($MouseShadow2, "", $X, $Y) sleep(500) ; Display the GUI's for 500 ms guidelete($mouseshadow) ; Delete GUI 1 guidelete($mouseshadow2) ; Delete GUI 2 endif if $y > 250 then $y = 0 ; If $Y Has reached the end, go back to searching from 0. Wend ; End loop
  12. Yeah, here ya go. http://www.autoitscript.com/forum/index.ph...t=0&start=0 At least, I think that's what you're looking for. edit: sorry for double post, thought it would merge with my previous post.
  13. As in, a game bot that clicks things in a minimized window? Yeah, you suck at explaining things. There's a topic for it somewhere, I'll try to look for it for you.
  14. whoops. Crysm Found: </li><li>The quick brown fox jumps over the lazy dog Apparently a tiny error when it got the response. hash: 9e107d9d372bb6826bd81d3542a419d6
×
×
  • Create New...