Search found 88 matches

by Petr
Thu Sep 14, 2017 7:33 pm
Forum: Macros & Solutions
Topic: Key is disabled, what to do?
Replies: 0
Views: 772

Key is disabled, what to do?

A question asked was: "Perfect keyboard disables the c key on the board. At some point after it starts. If I disable the app the c key is functional, as soon as I enable it the key stops working again." The problem is very probably that the c key is assigned as a hotkey to a macro. This is the way h...
by Petr
Fri Jul 28, 2017 3:09 pm
Forum: Macros & Solutions
Topic: WAIT FOR - Image on Screen
Replies: 3
Views: 2555

Re: WAIT FOR - Image on Screen

You are right, this is not a convenient behavior. Before we fix it please use the work around you very well described: Move the Macro Toolworks to the screen you want to capture the image.
by Petr
Thu Jul 20, 2017 11:38 am
Forum: Macros & Solutions
Topic: WAIT FOR - Image on Screen
Replies: 3
Views: 2555

Re: WAIT FOR - Image on Screen

There is a bug that causes that after the ""Close this message box and then use ..." is closed (button to close is clicked) then the dialog and whole the Macro Toolworks (Perfect Keyboard) is still showing on the screen. However, you should be able to select the area of the screen as shown on this p...
by Petr
Mon Jul 10, 2017 3:44 pm
Forum: Macros & Solutions
Topic: Start application always on required position on screen
Replies: 0
Views: 1481

Start application always on required position on screen

This example shows how to always start an application on required position. The example opens Notepad on position [100,100] and sizes its window to [600,400]: <execappex>("notepad.exe","","",0,0)<#> <varset>("vWin=[* - Notepad|Notepad|#77|#99]","")<#> <waitfor>("WIN","OPEN","%vWin%",15,0)<#> <if_win...
by Petr
Wed Jun 21, 2017 12:46 pm
Forum: Macros & Solutions
Topic: Loop in list of pre-defined X:Y mouse positions
Replies: 0
Views: 1955

Loop in list of pre-defined X:Y mouse positions

This is the background for the example: I have a set macro which will move mouse position example: x 1273 y 84 I also have a loop in the macro and thus when looping round I want the coordinates x & y to change to a next in list coordinate x & y. So the next time it loops it now becomes example: x 27...
by Petr
Wed May 31, 2017 11:32 am
Forum: Macros & Solutions
Topic: Use of Windows environment variables
Replies: 0
Views: 2072

Use of Windows environment variables

Windows environment variables can be used (read-only) in Macro Toolworks / Perfect Keyboard commands the same as native variables. For example, this macro inserts Windows %USERNAME% variable to an application:

Code: Select all

User logged to computer is: <varout>("%USERNAME%",0)
by Petr
Fri May 26, 2017 2:52 pm
Forum: Macros & Solutions
Topic: How to add new lines in text and then save it in file
Replies: 0
Views: 1923

How to add new lines in text and then save it in file

This is an example how to create a text with new lines and how to save it in a file. The example text is: Hello, I'm writing you concerning... The macro that creates such text and save it to file: <varset>("text=Hello,%_vKeyReturn%","")<#> <varset>("text=%text%%_vKeyReturn%","")<#> <varset>("text=%t...
by Petr
Sat Apr 29, 2017 4:45 pm
Forum: General Discussion
Topic: Documents?
Replies: 1
Views: 2997

Re: Documents?

There are some videos on the product pages:

http://www.pitrinec.com/products/macro-toolworks
http://www.pitrinec.com/products/perfect-keyboard

More content is in on-line help file packaged with the products. PDF files like the one you point to were not updated for version 8.
by Petr
Sat Apr 29, 2017 4:39 pm
Forum: General Discussion
Topic: Help with image error trapping
Replies: 1
Views: 3289

Re: Help with image error trapping

The _vErr value YES or NO is case sensitive. So you should change the "if" to:

Code: Select all

<if_str>("_vErr!=YES")<#>
by Petr
Thu Apr 13, 2017 3:54 pm
Forum: Macros & Solutions
Topic: Store Data as a Variable
Replies: 1
Views: 3143

Re: Store Data as a Variable

The example that you can download below shows how to open Excel file, read data from spreadsheet cells and then insert data to other application (text editor in this sample). Just download the zip file, unzip all files to a folder and open CopyPasteExcelData.4tw file in Macro Toolworks Professional....