admin

How to generate a random string

Uncategorized Comments Off on How to generate a random string
Oct 282016

In Automatic Mouse and Keyboard, you can call the function RandomString to generate a random string. You can also call the function RandomNumber to select a random string from a string list. You can use this for many functions as Instagram follower counter for example would be useful.
Random String

You can download the sample from rand_str.amk or go to this website.

The useful function StringFormat

Uncategorized Comments Off on The useful function StringFormat
Jul 282016

Automatic Mouse and Keyboard now has a very useful function StringFormat. It can return a formatted string. You can get a specified format string with StringFormat easily.
String Format

You can download a sample from str_fmt.amk.

How to get drive serial number

Uncategorized Comments Off on How to get drive serial number
Jul 242016

With the Scripting.FileSystemObject object, you can get a drive serial number. It is useful when you want your script can only run in a specified computer.
Get Drive Serial Number

And you can get the sample from GetDriveSerialNumber.amk.

Play another script in Automatic Mouse and Keyboard

Uncategorized Comments Off on Play another script in Automatic Mouse and Keyboard
Apr 012016

In Automatic Mouse and Keyboard, a script can play another script. Play another script just like invoke a function, you can pass arguments and receive script return value.
Play Another Script

You can learn how to pass and receive arguments from PlayScriptSample1.zip.
And you can learn how to modify values in another script from PlayScriptSample2.zip.

How to use SQLite database

Uncategorized Comments Off on How to use SQLite database
Jan 142016

In Automatic Mouse and Keyboard, it is very easy to use SQLite database. The following sample shows you how to create a table, and how to insert and get a record.
SQLite

And you can download the sample from sqlite.amk

How to get file size

Uncategorized Comments Off on How to get file size
Nov 152015

In Automatic Mouse and Keyboard, you can create a Scripting.FileSystemObject object, then use the object to get the size of a file.
Get File Size

You can download the sample from GetFileSize.amk

Regular Expression matching in Automatic Mouse and Keyboard

Uncategorized Comments Off on Regular Expression matching in Automatic Mouse and Keyboard
Sep 112015

It is very easy to match a regular expression in Automatic Mouse and Keyboard. You just need to call the function RegExpMatch.
RegExpMatch

Click the “Pattern“, then you will see the “Regular Expression” dialog.
Regular Expression

Select the “Expression type” as “<Common regular expressions>“.
Common Regular Expressions

Then you can find some common regular expressions.
Common Regular Expressions

You can learn how to create regular expressions from the common regular expressions.
And you can download a sample from RegExp.amk

Load text file and split string

Uncategorized Comments Off on Load text file and split string
Aug 222015

To load a txt file, you can call the function LoadTextFile. And then you can call the function SplitString to split the texts to lines. You can also call SplitString again to split a line to values. The following sample show you how to load a text file and split its content.
Load Text File

You can download the sample from LoadTextFile.zip
And you can learn more about the function SplitString from http://blog.robot-soft.com/how-to-split-string.

How to run Windows Console Command

Uncategorized Comments Off on How to run Windows Console Command
May 032015

In Automatic Mouse and Keyboard, you can call the function Command to run Windows console commands.
Command

The following sample show you how to make a directory and remove a directory with the function Command.
Make directory

You can download the sample: Command.amk

How to connect to MySQL

Uncategorized Comments Off on How to connect to MySQL
Jan 302015

To connect to MySQL with Automatic Mouse and Keyboard, you need to install the MySQL ODBC Driver. You can download the driver from: http://www.mysql.com/downloads/connector/odbc/
Download the connector which is compatible with your Windows. Then install it and create a MySQL data source.

Then you can call the function Database_Connect with connection string:
Driver=MySQL ODBC 5.3w Driver;Server=localhost;Option=16834;Database=test;User=root;Password=123;

And you can get more help about MySQL ODBC Driver with google.

© 2018 RobotSoft Suffusion theme by Sayontan Sinha