Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie: Volume Control
#3
1. The main difference is for what purposes they are used. Macros are used to automate something. Usually they interact with other applications. Usually you launch them manually (hotkey, mouse, etc). You can press Pause key to end macro. You will use macros in most cases. Functions is more advanced thing. They are mostly used for: a) Like functions in other programming or scripting languages. That is, to use the same code in multiple places just by calling the function; b) Unlike macros, multiple functions can run simultaneously, which is better in some cases. For example, use functions to execute background tasks and other tasks that run long time, often unattended, can run simultaneously, do not interfere with each other, like separate applications or services. Read more in Help, "QM items" topic.

2. Do you want to create a dialog to control volume? Why?

3. Maybe repeat key command. Like this:

Code:
Copy      Help
int steps=5
spe
rep steps
,key (VK_VOLUME_DOWN)

1

rep steps
,key (VK_VOLUME_UP)


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)