MacroButtons 1.0.0.7
Posted: Fri Feb 26, 2016 10:35 am
MacroButton 1.0.0.7 implements new SYSTEM commands to send Keyboard Event or execute application/script
You can download this last version directly there:
http://vbaudio.jcedeveloppement.com/Dow ... _v1007.zip
(simply extract and copy VoicemeeterMacroButtons.exe in your "C:\ Program Files (x86)\ VB \ Voicemeeter" folder - possibly rename the previous one by "old" to keep it in case of problem).
System Execute
This function works like a “CreateProcess” or ShellExecute under windows and allow to start any application with a command line argument.
Example to open a web page with the internet explorer:
ENVIRONMENT VARIABLES
It is also possible to use system environment variable by using %envname% syntax.
Example to run the Microsoft WRITE Editor application
RUNNING DOS APPLICATION
To run command line program, you need to launch cmd.exe with /K command to specify you want to execute the command after…
Example to run ipconfig in a DOS window:
Example to ping your internet router (usual address is 192.168.1.1):
System KeyDown / KeyUp / KeyPress
This functions allow to send a combination of 1 to 4 keys by a simple string describing this keyboard combination, like “CTRL+SHIFT + F10” or simply “0”.
System.KeyDown(szKey);
System.KeyUp(szKey);
Example:
KeyPress function send Down and UP message in a single function.
List of Key Name:
You can download this last version directly there:
http://vbaudio.jcedeveloppement.com/Dow ... _v1007.zip
(simply extract and copy VoicemeeterMacroButtons.exe in your "C:\ Program Files (x86)\ VB \ Voicemeeter" folder - possibly rename the previous one by "old" to keep it in case of problem).
System Execute
This function works like a “CreateProcess” or ShellExecute under windows and allow to start any application with a command line argument.
Code: Select all
System.Execute(szprogram, szworkdir, szcommand);
Code: Select all
System.Execute("C:\Program Files\Internet Explorer\iexplore.exe",
"","-new www.voicemeeter.com");
ENVIRONMENT VARIABLES
It is also possible to use system environment variable by using %envname% syntax.
Example to run the Microsoft WRITE Editor application
Code: Select all
System.Execute("%windir%\write.exe","%TMP%","");
RUNNING DOS APPLICATION
To run command line program, you need to launch cmd.exe with /K command to specify you want to execute the command after…
Example to run ipconfig in a DOS window:
Code: Select all
System.Execute("%windir%\system32\cmd.exe","%windir%\system32","/K ipconfig");
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
Code: Select all
System.Execute("%windir%\system32\cmd.exe","%windir%\system32","/K ping 192.168.1.1");
This functions allow to send a combination of 1 to 4 keys by a simple string describing this keyboard combination, like “CTRL+SHIFT + F10” or simply “0”.
System.KeyDown(szKey);
System.KeyUp(szKey);
Example:
Code: Select all
System.KeyDown("A");
System.KeyDown("SHIFT+T");
System.KeyUp("A");
System.KeyUp("SHIFT+T");
System.KeyDown("CTRL+NP1");
System.KeyDown("ALT+F8");
System.KeyUp("CTRL+NP1");
System.KeyUp("ALT+F8");
Code: Select all
System.KeyPress("CTRL+NP1");
System.KeyPress("ALT+F8");