Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: CM17A, firecracker software problem  (Read 14026 times)

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: CM17A, firecracker software problem
« Reply #15 on: December 09, 2007, 07:55:06 PM »

You'll find a lot of help with code in chat rooms!
Even the one I link to in my posts if I'm on or one of the more experianced programers is online! ;)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bkjr

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 17
Re: CM17A, firecracker software problem
« Reply #16 on: December 09, 2007, 08:49:44 PM »

Thanks, I'll have to have a look.
I've gotten a few more revisions into it tonight.
I have the Icon working in notification tray working with context menus for brining the apps back up and or closing the controller all together.

I learned how to kill the top control bar, so it's a clean window that would look good with an image to mock a controller,  but I then loose the move capability, and haven't learned yet how to call up the move command in a context menu.. keep running into errors.
Learned how to open it where I want it on the screen too.
Lots of baby steps.. but I'm tearing into it as time comes.

Any hints to call up the "move" comand to work from a contextmenu?

TIA
-Bob

Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: CM17A, firecracker software problem
« Reply #17 on: December 10, 2007, 05:54:09 PM »

Any hints to call up the "move" comand to work from a contextmenu?

Nope, I haven't played with that much myself! ::)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bkjr

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 17
Re: CM17A, firecracker software problem
« Reply #18 on: December 10, 2007, 06:20:46 PM »

Did a few more things last night, but still haven't conquered the issue of calling up the move window function.
Thanks. I was hoping you knew. I guess sooner or later I'll figure it out and will ask on one of the forums.

Made a Ipod Shuffle desktop X10 Firecracker controller for my daughter. It's set up for unit code 1-4, she's uses 2, had the RX module with nothing plugged into the outlet.
and saved space for a 4th.  I'll just have to modify the text if she adds something else, and recompile.
That's the only negative about the simple VB controllers I'm doing. But hey, it's not like I'm changing house codes. Haven't changed them in 12 years.
It's fixed HC and fixed UCs. The square in the middle closes the app, the pause puts it down on the notification try.

Also there's a right key click menu when you click over the body... to Close it and to Move ... but the Move isn't working as mentioned.
There's also a context menu / right key menu when in the notification icon tray,  to Close or Bring it up - a double click also brings it up.
It's fun...




I also made a Palm Pad.. the preloaded HC can be changed, but doesn't stick.
Text labels, have to be filled in in the MS VB... then compiled.. but good for my uses.
The adjustable HCs let me play if needed.
I can recompile it wiith the UCs adjustment showing for each of the 8 channels, so I could play with them if needed, but figured it looked neater without them.
The switch for 1-8 and 9-16 doesn't function.
The dimmer buttons... left works to close the apps, the right send it to the notification tray. Same context / right key menus as above.
One of these nights I'll figure how to make the LED flash when hitting a UC button.

Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: CM17A, firecracker software problem
« Reply #19 on: December 10, 2007, 08:57:23 PM »

Awesome work!
I did some digging, here is the code to move the Pic:
Code: [Select]
Public Class Form1
Private mouseOffset As Point
'************mouse movecode**********************
    Private Sub Pic_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Pic.MouseDown

        mouseOffset = New Point(-e.X, -e.Y)

    End Sub

    Private Sub Pic_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Pic.MouseMove

        If e.Button = Windows.Forms.MouseButtons.Left Then

            Dim mousePos As Point = Control.MousePosition

            mousePos.Offset(mouseOffset.X, mouseOffset.Y)

            Location = mousePos

        End If
End Sub
End Class
Hope you find it helpful! ;) ;) ;)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bkjr

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 17
Re: CM17A, firecracker software problem
« Reply #20 on: December 10, 2007, 09:21:20 PM »

I've been googling and researching and haven't seen those commands.
Looks like a winner.

tnx a bunch, will try the code next....

-Bob
Logged

bkjr

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 17
Re: CM17A, firecracker software problem
« Reply #21 on: December 15, 2007, 06:58:27 PM »

Tried the code the other night, worked my way through it and changed the variables to fit in to what I have set up.
But when compiled for testing it bombs. So next step for me is to learn what the error means and how to fix it!....
Logged
Pages: 1 [2]
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.