Jump to content

mikered82

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by mikered82

  1. I'm not sure if you are serious or not but at the moment I'm doing this for HOBBY only! Also because is a pure hobby (personal use) , and my limited english writing skill I never post my projects anywhere! But if someone is interested in my solution for NON commercial purpose I'm willing to share!
  2. I managed to make it work with the help of a FTDI FT232 Module on Arduino side (and default Serial library) and CommMG64.au3 on Autoit side. I also used CTS/RTS pins of the module to synchronize communication between Arduino and Autoit. Thanks for all that took the time to point me in the right direction!
  3. Hmm. It appear that the script use the data transfer over HID feature report. I guess I will have to figure out how to implement that! That will be a challenge, but I like a challenge! Best thing about Autoit and Arduino programming is overcoming challenges (and accomplish something)! Worst thing when you have NO idea how to proceed! So, thanks for give me an incite and for give me your time to respond!
  4. I also found that topic/script! It runs, but it doesn't have any function that get or send data from a device! Major available function are: HidD_GetCAPS, HidD_GetFeature, HidD_SetFeature, but no HidD_GetData for example!
  5. Of course I google IT! I've read about 50 topics/pages but nothing promising! Otherwise I have NOT opened a thread! I was hoping that someone encountered the same problem and there is a solution!
  6. Hello! Could someone help me please with a UDF/library/example to communicate with Arduino thru USB using V-USB Driver (HID Device). I want to implement remote control for PC (TV Tuner remote). Arduino would read and decode data from an IR Sensor then send the decoded data to the PC thru USB. Thanks! Any help much appreciated!!
  7. uTorrent has an advanced setting to modify the RSS update interval. Options -> Preferences -> Advanced -> rss.update.interval Note: I don't use RSS feature so I don't know if it's working.
  8. Yes, it was a mistake, but it still doesn't work.
  9. I did look in help file, but i don't know what I did wrong. If you do, please tell me!
  10. Hi! I need some help to convert the following C++ code to autoit: ;~ / COPYDATASTRUCT cds; ;~ // char buf[MAX_PATH]; ;~ // void *adr; ;~ // ;~ // adr=&buf; ;~ // cds.dwData=BSP_GetFileName; ;~ // cds.lpData=&adr; ;~ // cds.cbData=4; ;~ // SendMessage(bsp_hand,WM_COPYDATA,appHWND,(LPARAM)&cds); ;~ // available in BSPlayer version 0.84.484+ ;~ // ;~ // appHWND is calling application window handle ;~ // File name will be copied to buf ;~ // ;~ // Get open file name ;~ #define BSP_GetFileName 0x1010B What I got so far is: #Include <SendMessage.au3> $BS_FileName = BSP_GetFileName() MsgBox(0, "BSPlayer File Name", $BS_FileName) Func BSP_GetFileName() $hWndHandle = WinGetHandle("[CLASS:BSPlayer]") $WM_COPYDATA = 0x004A $BSP_GetFileName = 0x1010B $buf = DllStructCreate("CHAR[128]") $cds = DllStructCreate ("int;ptr;int") DllStructSetData ($cds, 1, $BSP_GetFileName) DllStructSetData ($cds, 2, DllStructGetPtr($buf)) DllStructSetData ($cds, 3, 4) _SendMessage($hWndHandle, $WM_COPYDATA, 0, $cds) Return DllStructGetData($buf, 1) EndFunc but, of course, it doesn't work. The function should return the file name currently playing in BSPlayer. Thank You!
  11. Hi. I'm not sure it's what you want but here you go: Func _GUICtrlListView_SetItemColor($hListView, $iItem, $xColor) If Not IsHWnd($hListView) Then $hListView = GUICtrlGetHandle($hListView) $iReturn = GUICtrlSetColor(_GUICtrlListView_GetItemParam($hListView, $iItem), $xColor) Select Case $iReturn = 0 Return SetError(1, 0, 0) ; Failure Case $iReturn = 1 Return SetError(0, 0, 1) ; Success EndSelect EndFunc ;==> END _GUICtrlListView_SetItemColor() Thanks to wraithdu. ()
  12. @RagsRevenge Search in your "_Adlib.au3" for "If $al_param[$al_ID] Then" and replace it with "If $al_param[$al_ID] Or IsArray($al_param[$al_ID]) Then" By the way, good job jennico.
×
×
  • Create New...