AutoHotkey Community

It is currently May 27th, 2012, 1:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: January 3rd, 2011, 6:28 pm 
Offline

Joined: February 17th, 2008, 5:01 pm
Posts: 303
I think that this project is cool enough that the real limiting factor is that none of the hardcore AHK hackers who might be up for a project happen to have a transceiver lying around. It's one thing to have fun writing software for someone else, but it's another to actually lay down money to buy hardware that you might not actually use.

Let's crowdsource the funds to buy a testing unit. Think of it as a way of giving back to AHK. I'll start:
http://www.autohotkey.com/forum/viewtop ... ht=#411380


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2011, 8:44 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
JoeSchmoe wrote:
I think that this project is cool enough that the real limiting factor is that none of the hardcore AHK hackers who might be up for a project happen to have a transceiver lying around. It's one thing to have fun writing software for someone else, but it's another to actually lay down money to buy hardware that you might not actually use.

Let's crowdsource the funds to buy a testing unit. Think of it as a way of giving back to AHK. I'll start:
http://www.autohotkey.com/forum/viewtop ... ht=#411380


Great idea, I'll gladly help. I answered in your other topic too.

Is there any important difference in the standard model and the one with the additional 56KHz IR Sensor? There is only $5 difference so I got the 56k version. Total price including shipping is $63.00.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2011, 9:34 pm 
Offline

Joined: February 17th, 2008, 5:01 pm
Posts: 303
specter333 wrote:
Is there any important difference in the standard model and the one with the additional 56KHz IR Sensor?
No idea... I haven't had time to check it out since the thread first popped up.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2011, 4:06 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
56KHz IR Sensor

@specter333
Is your USB-UIRT detected by WinLIRC?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2011, 2:10 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
jaco0646 wrote:
56KHz IR Sensor

@specter333
Is your USB-UIRT detected by WinLIRC?


I have not actually tried myself but I read somewhere that it is not. WinLIRC is not listed on the USB-UIRT home page either.

It is supported in Linux but without another automation app like AHK there is not much you can use it for. So I'm waiting until IronAHK gets developed further before switching to Linux.

In the mean time I'm trying to create my own automation app to use. Being new to scripting it's going very slowly. I just upload an advanced copy to get some input from others. Please check it out if you have time and let me know what you think. This is why I'm wanting to get USB-UIRT working with AHK.
http://www.autohotkey.com/forum/viewtopic.php?t=41397&start=270

Edit:
Gave it a shot and WinLIRC definitely does not work with USBUIRT.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2011, 5:19 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
JoeSchmoe wrote:
Let's crowdsource the funds to buy a testing unit. Think of it as a way of giving back to AHK.

Hey JoeSchmoe, don't spend any money. I actually figured this out. Give me a few days to make something of it and I'll get it posted. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2011, 12:48 pm 
Offline

Joined: October 4th, 2006, 2:15 am
Posts: 250
Location: Louisville, KY
Excellent news... can't wait to see what you've come up with!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2011, 4:18 pm 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
wtg wrote:
Excellent news... can't wait to see what you've come up with!


I've got most everything working as a function in a script but I'm having trouble converting some of it to a library, this is the first major library I've tried to put together. Do you have any experience at libraries?

I'm off to work now, If someone here is able to help I'll post questions tomorrow.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2011, 4:53 am 
Offline

Joined: January 15th, 2007, 2:37 pm
Posts: 573
I've got it real close. Went ahead and posted it.

http://www.autohotkey.com/forum/viewtopic.php?t=67843


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 27th, 2012, 1:38 pm 
Offline

Joined: November 27th, 2009, 3:31 pm
Posts: 46
Here is my Procedure for the learning Part. Abort function still not impleted, but realtime learning information impleted.

I defined variable irCode as global in the autoExe section

Code:
   learnIr: ;
      ;#define UUIRTDRV_CFG_LEDRX      0x0001
      ;#define UUIRTDRV_CFG_LEDTX      0x0002
      ;#define UUIRTDRV_CFG_LEGACYRX   0x0004

      ;#define UUIRTDRV_IRFMT_UUIRT   0x0000
      ;#define UUIRTDRV_IRFMT_PRONTO   0x0010

      ;#define UUIRTDRV_IRFMT_LEARN_FORCERAW      0x0100
      ;#define UUIRTDRV_IRFMT_LEARN_FORCESTRUC   0x0200
      ;#define UUIRTDRV_IRFMT_LEARN_FORCEFREQ      0x0400
      ;#define UUIRTDRV_IRFMT_LEARN_FREQDETECT   0x0800

      learnIrCallBackAddress := RegisterCallback("learnIrCallBack")
      
      VarSetCapacity(IrCode, 2048)     ;space reservation
   
      DllCall("uuirtdrv.dll\UUIRTLearnIR"
         ,UInt,hndl         ;Handle
         ,Int,0x110      ;Codeformat
         ,Str,irCode      ;variable to put IrCode
         ,UInt,learnIrCallBackAddress
         ,Str,0
         ,UIntP,abort       ;&abort Still Not Yet Impleted
         ,UInt,0
         ,UInt,0
         ,UInt,0)
      clipboard:=ircode
      ;send %irCode% {enter}
   return

   learnIrcallBack(progress,quality,frequency,userData){
      if (progress!="")
         tooltip % "progress " progress "%`nquality " quality "%`nfrequency " frequency "Hz",0,0,2
   } ;;



Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2012, 5:12 pm 
Offline

Joined: November 27th, 2009, 3:31 pm
Posts: 46
the abort Part should work but it dosen't

If anybody see an error please tell me

Code:
   learnIr: ;
      
      ;#define UUIRTDRV_CFG_LEDRX      0x0001
      ;#define UUIRTDRV_CFG_LEDTX      0x0002
      ;#define UUIRTDRV_CFG_LEGACYRX   0x0004

      ;#define UUIRTDRV_IRFMT_UUIRT   0x0000
      ;#define UUIRTDRV_IRFMT_PRONTO   0x0010

      ;#define UUIRTDRV_IRFMT_LEARN_FORCERAW      0x0100
      ;#define UUIRTDRV_IRFMT_LEARN_FORCESTRUC   0x0200
      ;#define UUIRTDRV_IRFMT_LEARN_FORCEFREQ      0x0400
      ;#define UUIRTDRV_IRFMT_LEARN_FREQDETECT   0x0800

      ;f11::gosub learnIR
      VarSetCapacity(abort,1,0)
      
      learnIrCallBackAddress := RegisterCallback("learnIrCallBack")
      VarSetCapacity(IrCode, 2048)
      DllCall("uuirtdrv.dll\UUIRTLearnIR"
         ,UInt,hndl
         ,Int,0x110
         ,Str,irCode
         ,UInt,learnIrCallBackAddress
         ,Str,""                        ;UserData
         ,UIntP,*abort                  ;numGet(&abort,0,"int")      ;abort   
         ,UInt,0                        ;Frequency forced
         ,UInt,0
         ,UInt,0)
      clipboard:=ircode
      
      ;tooltip %irCode%,0,60,1
      ;send %irCode% {enter}
   return
   learnIrcallBack(progress,quality,frequency,userData){
      global abort
      
      NumPut(1,&abort,0,"char")    ;it should abort Here!
      
      if (progress!="")
         tooltip % "progress " progress "%`nquality " quality "%`nfrequency " frequency "Hz",400,400,2
   } ;;


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group