LibFunc Library

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

LibFunc Library

Post by PepsiHog » Tue Feb 01, 2011 3:57 pm

Hello Everyone,

I have an idea. Now all of this is based on it being OK with MJTNET.com. But I can't really see why there would be a problem. I don't want to step on any toes, so if this suggestion is already being worked on, let me know and I will discontinue.

OK, now with that out of the way.....

I have been playing around with LibFunc commands in MS. It is a very powerfull command. I am still in the early stages of learning myself. And speaking solely for me, I know sometimes it is difficult to translate the free sources about Library Functions to information that will aid me in Macro Scheduler. Are there others out there with this same difficulty?

MJTNET is currently working on, and have some already available, video tutorials. Which I believe is an AWESOME idea. So I thought maybe we all could pitch in on this idea. (If you guys like my idea.)

My thought is, we are all at different levels of learning. Some of us may only know a few LibFunc's and others may know more. So, without having to make any commitments, if anyone knows of a handy LibFunc command that they use and understand, then they could post it here. Post the command and if you have a link to explain the parms then post it as well. But don't worry about it, because what one doesn't know, someone else may. Just post any handy LibFunc's you know of.

Now, if we do this, I will log on and make a list of the LibFunc's and thier Links in the below reply. This will keep all the data gathered together and easy to read and (Hopefully) easy to understand(or easIER). Also making it easier for the user looking for a LibFunc.

I am really interested in LibFunc. It is a very powerful tool. With this link I believe even the beginers will benefit and will become more powerful in programming.

Let me know what you all think. But.....there is a slight possibility that I'm CRAZY. :) OK, I am.


PepsiHog
Last edited by PepsiHog on Tue Feb 01, 2011 3:59 pm, edited 1 time in total.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

New Links

Post by PepsiHog » Tue Feb 01, 2011 3:58 pm

LibFunc's will be posted here.

Here is a simple Library Function. It retrieves the handle of the Desktop.
LibFunc>user32.dll,GetDesktopWindow,GWres
LibFunc> A , B , C

"A" is the Library file.
"B" is the Function
"C" is the Result variable

This function (above) does not have any Parms. More about this Function at:
http://msdn.microsoft.com/en-us/library/ms633504

This Library Function Finds a Window of a class (optional) and title (optional)
LibFunc>user32.dll,FindWindowA,hwnd,windowclass,windowname

I will keep posting as I learn. So check back.
Last edited by PepsiHog on Sat Feb 05, 2011 9:49 pm, edited 14 times in total.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Feb 01, 2011 4:20 pm

Cool. See also:
http://www.mjtnet.com/blog/2010/11/15/c ... functions/

And note my call to action at the end. So carry on.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts