Welcome, Guest. Please login or register.
Did you miss your activation email?
September 21, 2014, 11:10:43 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
181  Mach Discussion / Mach Screens / Re: Custom onscreen keyboard on: October 19, 2008, 12:07:56 PM
Not that I am aware of, the auto-calculator function is created in C++ on Brian's end.

It might be nice to have a Label that tells you which object currently has focus and then we could write some VB code to make things happen accordingly.

I wonder why the "On screen Keyboard" wouldn't pop-up when hitting a DRO, but work when hitting the MDI?
182  Mach Discussion / Flash Screens / Re: Flash problem on: October 17, 2008, 07:39:28 PM
This is how you look for keys.

HIT:
If you call on the code again it will keep creating Listener objects so if you do not want multiple key listeners make sure to remove it before calling it again.
To remove a "Key Listener just do:

Code:
Key.removeListener(key_Listener_Function);

Also you can remove the function as well:

Code:
///Remove one if there is one so they dont multiply////
delete key_Listener_Function;

Then just call on it again later if you want to turn it back on.

Listen for Enter key:

Code:
///Create an object////;
key_Listener_Function = Object();

///On key down...you can change this to keyup/down ect...///;
key_Listener_Function.onKeyDown = function() {


///Which key was pressed///;
trace(Key.getAscii());

if (Key.isDown(Key.ENTER)) {


///What you are looking for///;
trace("enter key pressed");

///Send to Mach////
fscommand("Code", 'X10 Y5.6 Z 5.6');

}
};

///add listener to wait for the key press//;
Key.addListener(key_Listener_Function);

Test it out below:

<a href="http://alphagraphicdesigns.com/demo/KeyWatchMach.swf" target="_blank">http://alphagraphicdesigns.com/demo/KeyWatchMach.swf</a>
183  Mach Discussion / Works in progress / IMach on: October 17, 2008, 06:53:42 PM
Some interesting work that I finished has been applied to file navigation and thought I would share on the development.

Was thinking of "IMach" could be a great way to navigate in Mach with touch screens. Who knows.

THIS IS A LIVE PREVIEW BELOW, take you figer or mouse and "drag and release up/down" I also detect "Right/Left" "Swips" as well.

<a href="http://alphagraphicdesigns.com/demo/IphoneScroll/IPhoneScroll.swf" target="_blank">http://alphagraphicdesigns.com/demo/IphoneScroll/IPhoneScroll.swf</a>

There shouldn¡¦t be a learing curve to use it, I think that is way a trillion people like the IPhone ƒº

This type of ¡§scrolling¡¨ should feel nature to work on a touch screen. The mouse does not do it justice  ƒº

-If you hold down and slid up/down it will scroll 1 at a time

-The shorter distance traveled in a longer time will make it scroll slowly

-The quicker you release will "roll" it quicker"

I measure distance and time and direction

I decided to do this to get angle of rotation:
Math.atan2(y, x)*57.29577951308232;

There is alot of math envolved and I think I about got it pretty much to how the Iphone works.

I'll see how it goes might end up with a full touch screen based off this consept.
Let me know if the idea sucks or might be good.
184  Mach Discussion / Flash Screens / Re: Function to get a number from a string!? on: October 17, 2008, 03:27:02 AM
NP  Smiley
185  Mach Discussion / Flash Screens / Re: Function to get a number from a string!? on: October 16, 2008, 02:29:39 AM
I think he meant in Flash and not VB   

This will return the number of your strings length:

Code:
MyString.length


this will check to see if the digits are 9:

Code:
if (MyString.length == 9) {
trace("Is 9");
} else {
trace("Is not 9 it is:"+ MyString.length);
}

.....but you can take the code they gave for VB  and run it in flash but you have to do it like this and I dont belive you can split and join in Mach's VB

fscommand("VBMacro" "some VB here")
186  Mach Discussion / Works in progress / Re: new italian touch screen on: October 16, 2008, 01:59:46 AM
Looks great!
187  Mach Discussion / Finished Screens / Re: Mach SoftLight on: October 16, 2008, 01:57:40 AM
Thank you!  Grin
Working on a lathe screen now and the many fixes I need to do for the other screens on the forum.
I will make those fixes.
188  Mach Discussion / Mach Screens / Re: Custom onscreen keyboard on: October 16, 2008, 01:55:46 AM
Great!
I took alook at that keyboard and it looks very nice.. how has it been working out?
189  Mach Discussion / Flash Screens / Re: Problem flash on: October 16, 2008, 01:54:23 AM
send me the swf or email me and I will have a look or I can send you a installer that will put everything in place for you.
190  Mach Discussion / Flash Screens / Re: Problem flash on: October 12, 2008, 05:34:09 PM
Hi,
Make sure you are using Mach 3.041 or greater.

Make sure there are no dialogue pup ups when starting Mach...if there are select "Please do not ask again" and restart Mach.

You can email me the swf and I can take alook if you like.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!