GTK Objects
Timeline control with movement&effects control
Professional Software Development Tools
GTK Objects
Timeline control with movement&effects control
Plugin-Smugin...![]()
Code:function Gregorian2Julian(Year, Month, Day) local UT=0 local Y=Year local D=Day local M=Month JD=367*Y-Math.Floor(7*(Y+Math.Floor((M+9)/12))/4)-Math.Floor(3*(Math.Floor((Y+(M-9)/7)/100)+1)/4)+Math.Floor(275*M/9)+D+1721028.5+UT/24 return JD end function DatePlus(Year, Month, Day, nDiff) local UT=0 local Y=Year local D=Day local M=Month nDiff = String.ToNumber(nDiff) local JD=367*Y-Math.Floor(7*(Y+Math.Floor((M+9)/12))/4)-Math.Floor(3*(Math.Floor((Y+(M-9)/7)/100)+1)/4)+Math.Floor(275*M/9)+D+nDiff+1721028.5+UT/24 local rDate = Julian2Gregorian(JD) rYear = String.Left(rDate,4) rDate = String.Mid(rDate, 6, -1) rMonth = String.Left(rDate, String.Find(rDate, "-") - 1) rDay = String.Mid(rDate, String.Find(rDate, "-") + 1, -1) if String.Length(rDay) < 2 then rDay = "0"..rDay end if String.Length(rMonth) < 2 then rMonth = "0"..rMonth end return rYear.."-"..rMonth.."-"..rDay end function Julian2Gregorian(jd) intgr = Math.Floor(jd) frac = jd - intgr gregjd = 2299161 if(intgr >= gregjd) then tmp = Math.Floor(((intgr - 1867216) - 0.25) / 36524.25) j1 = intgr + 1 + tmp - Math.Floor(0.25*tmp) else j1 = intgr end --correction for half day offset dayfrac = frac + 0.5 if(dayfrac >= 1.0) then dayfrac = dayfrac - 1 j1 = j1 + 1 end j2 = j1 + 1524 j3 = Math.Floor(6680.0 + ((j2 - 2439870) - 122.1)/365.25) j4 = Math.Floor(j3*365.25) j5 = Math.Floor((j2 - j4)/30.6001) d = Math.Floor(j2 - j4 - Math.Floor(j5*30.6001)) m = Math.Floor(j5 - 1) if(m > 12) then m = m -12 end y = Math.Floor(j3 - 4715) if(m > 2) then y = y -1 end if(y <= 0) then y = y - 1 end if(y < 0) then y = -y end return y .. "-" .. m .. "-" .. d end
Last edited by Worm; 09-10-2009 at 10:54 AM.
I'm currently working on a plugin for that date thing, but there's a lot to it. I have so far, implemented both major calendar systems (Julian and Julian/Gregorian modified) and allowed for precise dates (date and time) conversions. It will be coming out in a couple of weeks.
Action Plugins
AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
Download
plz this plugin : real player (.rm)
if it's possibl.. Thnx![]()
A power-battery timer plugin
A scrolling windowed object that can hold (and scroll) other AMS objects or just some kind of system that will allow AMS application windows to scroll.
Action Plugins
AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
Download
the ScrollBar plugin is all you need
even the windows scrollbar takes a huge amount of work to get going, you don't just place a scrollbar and windows does the rest, you need to code the behaviour of everything on the window to react to the 'WM_HSCROLL' and 'WM_VSCROLL' notification that the scroll bar sends when its moved
a container object would be more useful, that way you could put your objects inside it and just scroll the container
a container is a underestimated object, i never saw the point of it until i started making my own objects, now its the backend to ALL my object projects in AMS and PB
a full on scroll area would be nice yea, but a container would open up so many more possibility's![]()
Open your eyes to Narcissism, Don't let her destroy your life!!
Yes, that's what I'm getting at. I'm just saying if a container isn't possible then a scrollable app window would be good...container first though.![]()
Action Plugins
AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
Download
just some expanded 'Page' functions would do, like Page.GetHWND and Page.Get/SetOffset/Size etc
with the above functions i know i could get a scrolling page in no time, each page is a window itself and all the pages are embedded into the main window, just give us access to the child pages and we could work our own systems![]()
Open your eyes to Narcissism, Don't let her destroy your life!!
this plug-in for AMS 8
http://www.indigorose.com/forums/thr...-Action-Plugin
is there project action plug-in for AMS 7 ?
hi.
i want plugin that takes picture or records videos from web cam.for all windows.
THX.