Jump to content

Adlib - What does the word mean?


Recommended Posts

I understand how the AdlibRegister function works, it seems to encapsulate the API timer call. This is clearly ready. ;)

1. But what does the word Adlib mean? I did research and used online translators, and I guess it has nothing to do with rap music, right? :P So what's the secret?

2. I wrote a small demo of how to start and use multiple Adlib timers at once. If anyone is interested, I am happy to share. - Where is the right place for it?

Prof Bernd.

Link to comment
Share on other sites

I guess the easiest way to describe it, is to say it works when it can, when your processor gives it a chance, based on a specified minimal time between workings.

If for instance, you have a MsgBox open, it won't happen until that MsgBox closes and that minimal amount of time has passed, which may have happened meanwhile.

You could see it as a kind of improvisation by your processor ... adjusting to conditions.

Here are some definitions of what is actually ad-lib, from which the function name would be derived.

https://dictionary.cambridge.org/dictionary/english/ad-lib

https://www.merriam-webster.com/dictionary/ad-lib

https://www.thefreedictionary.com/ad-lib

 

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

1 hour ago, Professor_Bernd said:

still doesn't tell me what connects a timer function and "at one's pleasure"

..I had children and had to give them names. Not easy. My spouses did that anyway ( and I had not much of a say anyway )
Now, coming up with names for concepts can get cumbersome and once you called it something it stays, even if you found a better name.
I think the AdLib is a good name for the concept. It could be called Juan but, then again, people would say One, so.... AdLib it is :D 

exploits-of-a-mom.jpg?w=666&h=255&crop=1

...and AdLib works like a timer but is not a timer. It will execute in the midst of the script every x ms. but is not a timer. Is an AdLib function.
I can code something to show/proof the difference ( even if to add another shoe to my mouth )

Edited by argumentum
=)

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Off-topic: Of the four of you I've been reading a lot of posts for quite some time now and I've already used some code from you. I am happy about your answers!

On-topic. All your answers are great, I like the one from argumentum best! Probably because I understand how hard it is to give good names. And I'm always happy when I have found an appropriate name for a function or feature.

If a name is catchy, it is good. For example, "API-Timer" is a name that came to my mind a long time ago. When I started programming, shortly after I created the first form (AutoIt language: GUI), with the first button and the first "Hello World! messagebox, I used the first API timer. - Those were still times.

Okay, I digress. It seems that there is no direct relation between the name Adlib and what the function does. So I think your answers are the best. Thank you very much for your posts!

 

On 8/9/2020 at 5:40 PM, argumentum said:

...and AdLib works like a timer but is not a timer. It will execute in the midst of the script every x ms. but is not a timer. Is an AdLib function.
I can code something to show/proof the difference ( even if to add another shoe to my mouth )

Sorry, I'm off-topic again, but this is very interesting!

I know that an MsgBox or a Sleep* pauses the Adlib function. The Adlib timer even pauses when you click and hold the mouse button on the title bar of a GUI. Very strange. An API timer is not paused by all this, it's probably running in a different thread.

If you know of other differences, I would be happy about a demo! 👍

* Edit: Sorry, that was wrong, "Sleep()" does not pause an Adlib timer.

Edited by Professor_Bernd
Link to comment
Share on other sites

2 minutes ago, Professor_Bernd said:

The Adlib timer even pauses when you click and hold the mouse button on the title bar of a GUI. Very strange. An API timer is not paused by all this

..that is that. I'd code something to show just that. Is all in the same thread.

At times, I run an AdLib from within a GUIRegisterMsg(), and act in "script time" to free the "GUIRegisterMsg time".
I use the $WM_TIMER when I need to get something done no matter what the user does to the GUI.
If the function called by $WM_TIMER is not fast ( say, under 20 ms. ), then I fork that to another script.

But yes, AdLib means "do it at your leisure ( within "script time" ), but do it" and $WM_TIMER means "I'll stop the world to do it, even if it explodes".
( my non-programmer explication )

Off-Topic: In the future, cars may self drive and also, AutoIt may run GUI stuff in a 2nd thread, ...in the future, maybe, just maybe.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Ad-lib would also be related to ad hoc ... but I am pretty sure we wouldn't want a function for that. :muttley:

https://www.merriam-webster.com/dictionary/ad hoc

... or maybe we do. :lmao:

Computer_Tastatur_blau.jpg

adhoc.jpg

.... or not.

Ad-hoc(1).jpg    ad-hoc.png?w=604

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

20 hours ago, Professor_Bernd said:

2. I wrote a small demo of how to start and use multiple Adlib timers at once. If anyone is interested, I am happy to share. - Where is the right place for it?

The suitable place to post your demo would be, in my opinion, the forum area autoit-example-scripts

Example scripts do not necessarily have to be huge projects like e.g. ISN AutoIt Studio. Even a small function can be beneficial for others ;).  

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

3 hours ago, Professor_Bernd said:

the name changed from AdlibEnable to AdlibRegister

AdlibEnable would enable the adlib. Just one. ( old AutoIt version )
AdlibRegister any count of Alibs ( newer versions )

Edit: ..I did not read attentively. You've answered your question. :D 

Edited by argumentum
=)

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Late to the party: I believe the name was chosen to match the uses case in music where it means "adjust the tempo as you see fit" or "repeat as much as you want", which is pretty close to what the function allows.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...