MonkeyTools

Monkey Forums/Monkey Code/MonkeyTools

Canardian(Posted 2011) [#1]
MonkeyTools is a Monkey community created library with useful functions and classes which work on all targets.

Version 0.0.0.0 includes:

Commands:
- ExitApp
- ShowMouse
- HideMouse
- Timer class with the methods: Start, Pause, Resume, Reset, Stop.

Demos:
- NativeDemo.monkey
- TimerDemo.monkey

Download:
http://www.monkeytools.net/files/MonkeyTools_0.0.0.0.rar

Installation:
Just extract into your MonkeyPro directory, it has a modules and bananas directory with a MonkeyTools subdirectory in each.

Usage:
Import MonkeyTools


Volker(Posted 2011) [#2]
Nice to see more gaps getting filled.
I'm already using your timer code.


matt(Posted 2011) [#3]
Hi Lumooja, could you put together a guide to creating modules?

Also, if you're interested, I can help you create the documentation for MonkeyTools that can be included in the module docs folder? (I wrote the docs system)


Canardian(Posted 2011) [#4]
Hi matt, yeah those are good ideas.
I'll write an article on monkeytools.net how to create modules.


degac(Posted 2011) [#5]
Nice!
Thanks


degac(Posted 2011) [#6]
I added the following function

CurrentDate()
CurrentTime()

to MonkeyTools (at the moment work only on HTML5 and FLASH)
I'm working on Android device... but at the moment I'm a little stuck!: fixed
(ps: I've spent quite an hour to find an error in the ActionScript... Return instead of return...Argg!)
MonkeyTools.as


MonkeyTools.js


MonkeyTools.java


PS: you must add this to monkey\modules\mojo\native\mojo.android.monkey



MonkeyTools.monkey



Canardian(Posted 2011) [#7]
I would make it return ISO date and time, then it's country independant,
like 2011-03-12 19:23:32;43.231


okee(Posted 2011) [#8]
in v32 I wanted to use the show/hide mouse in flash but i get an error
for the 2 lines
app.dead=1;		
getConsole().textColor=0x00000000;


Once i comment them out it works ok


Canardian(Posted 2011) [#9]
Ok, thanks for the info, I will test it and update for V32.


therevills(Posted 2011) [#10]
Hey Lumooja,

Hope you dont mind, Ive added Show/Hide Mouse to our diddy module.

Thanks!


Canardian(Posted 2011) [#11]
That's fine, I use also other people's code :)