Jump to content

IhanPrime

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

IhanPrime's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. This is very cool, thank you for this . I was just about to trash my old iPod Touch (headphone jack is busted among other things), until I found this. One quick question. Have you been able to successfully send data to TouchOSC? Would it just be a matter of reversing the steps you took to decode the data and sending it through UDP to the iPod/iPhone?
  2. Ahhhh, ok. Thank you good sir
  3. Thank you very much for this I had a question as far as manipulating pixel data. I have everything working perfectly, until I get to the spot where I need to change the value that the "$bits" pointer points to. #include <FreeImage.au3> OnAutoItExitRegister("Cleanup") func Main() _FreeImage_LoadDLL(@ScriptDir&"\FreeImage.dll") _FreeImage_Initialise() ;============================================================================= Global $image = _FreeImage_Load($FIF_TIFF, "test.tif") $bitdepth = _FreeImage_GetBPP($image) $bitsperpixel = _FreeImage_GetLine($image) / _FreeImage_GetWidth($image) Msgbox(0, "", $bitsperpixel) Local $bits ;$temp = _FreeImage_GetChannel($image, $FICC_RED) $y = 0 $x = 0 for $y = 0 to _FreeImage_GetHeight($image) step 1 $bits = _FreeImage_GetScanLine($image, $y) ;Tooltip($bits) for $x = 0 to _FreeImage_GetWidth($image) step 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;Manipulate Pixel here;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; $bits = $bits + $bitsperpixel next next Msgbox(0, "", "Done") _FreeImage_Save($FIF_TIFF, $image, "test.tif") endfunc Main() Exit func Cleanup() _FreeImage_Unload($image) _FreeImage_DeInitialise() endfunc I've been looking everywhere for how to manipulate data from a pointer (Like in C++, the simple *ptr), and all I'm getting is Cheat Engine stuff
  4. I'm worried about it being to slow, and I wouldn't be able to "block" user input from the mouse, only get it . Edit: Although, now that I think about it, I suppose I don't need to "block" mouse input. But I do need to get the mouse data, and somehow have the clicks translate to a couple of pixels back from where the mouse actually is. Like dragging a line. Here's a picture of what LazyNezumi does. See, real location of the mouse is at the red circle, but the program tells Windows to register the mouse click/drag at butt of that line instead of where the cursor is. Cool, I'll check it out, thank you . So it is possible then to do it, I'm not totally crazy?
  5. I can't quite seem to wrap my head around Hooks and DLLs. I can get the UDFs like _MouseSetOnEvent to do their job, but as far as understanding them and making my own code from them, I'm lost. The end goal is to be able to Smooth out Mouse Movements for Photoshop and other art programs. Similar to LazyNezumi and ZBrush's Lazy Mouse. With the _MouseSetOnEvent UDF I'm able to block Mouse Input, but unable to process/send it anywhere. Other snippets I've come across through searching do the opposite; I can't block Mouse Input, only read it. I'm looking for a middle ground, where I can block, read, process, then send out Mouse Cords. Any help would be greatly appreciated . Keep in mind, I have decent AutoIT skills, but have a very poor understanding of Hooks and DLLs.
×
×
  • Create New...