Pages

Showing posts with label Keybord. Show all posts
Showing posts with label Keybord. Show all posts

2025/01/17

TinyTask (FREE) – Macro Recorder – Compile to .EXE on Windows 11

There is no virus alert when I open .exe file that is created by TinyTask that is downloaded from the link I provided. https://tinytask.en.uptodown.com/windows/download

The weak point of this app:

I start and stop recording using a shortcut – Control + Shift + Alt + R.

I compile recording to .EXE file.

I open that .EXE file. Everything is fine, my job is done but the recording button is changed to red at the end.


That means this app is recording, I assume a hotkey -- ‘Control + Shift + Alt + R’ is pressed because I use it for starting and stopping recording.

The workaround is close the app before opening .EXE file


And make sure that every open app or other areas that can be affected doesn’t use ‘Control + Shift + Alt + R’ as a shortcut because it will be pressed (I haven’t tested this situation but I’m pretty sure it will happen.).

The funny thing is if I play a recording using a ‘play’ button in the app’s window, there is no issue.



The test steps – TinyTask 1.50

On: Windows 11 Home

Download: https://tinytask.en.uptodown.com/windows/download

 

1. Go to the link above to download it.


There is no need to install it, just open the downloaded file.


Select hotkey for start/stop recording.


2. If your task requires specific size and position, read my previous post to set size and position of an active window with hotkey. https://windowsfreewareguide.blogspot.com/2025/01/autohotkey-free-change-size-and.html


I pressed hotkey to record but the app’s window was not minimized.

You might want to move it to a corner.


While recording, I pressed hotkey to set size and position of the active window. The result was great. Playing the macro can set the size and position of my target window.

After finish recording, you can save it (extension is .rec)


After saving it, name shows in title of the app’s window.

You can play the current macro.

Remember if you press to record while the app’s window has a title, after recoding finishes then you click to play. What you get is the latest recording but don’t worry what you recorded in the name of app’s window doesn’t disappear, you can click a folder icon to open it.


If you want to save the latest recording, you can save it to a new file.

3. Compiling recording to .EXE file (application) is the best way for me because I can place it at task bar and open it from there.


Click an icon to compile recording. You can see the icon of .EXE file in the picture below.

Right click at it and select ‘Show more options’.


Move a mouse pointer over menu ‘Send To’, then click ‘Desktop’ (create shortcut)


You will have a new shortcut file.


You can drag and place it at the taskbar.

Click to run it whenever you want.


To run it with a shortcut, right click at a shortcut file and select ‘Properties’


Click at 'Shortcut key' box, then press a shortcut.


Click ‘Apply’, then click ‘OK’.


Keep in mind that which shortcut you use to start/stop recording.

I haven’t tested clicking a start/stop button.

Even with a weak point but I think it is still a nice app to use.


The test steps – TinyTask 1.50

On: Windows 11 Home

Download: https://tinytask.en.uptodown.com/windows/download

 

2025/01/16

AutoHotkey (FREE) – Change Size and Position of The Active Window with Hotkey on Windows 11

I wanted to use a macro recorder to make my life easier but the problem was size and position of window must be the same every time in order to click or type at the right spot.


All of the free apps I had tried have no ability to serve me. I have to use AutoHotkey for this job

 

The test steps – AutoHotkey 1.1.37.02

On: Windows 11 Home

Download: https://www.autohotkey.com/

 

1. Go to the link above and download version 1.1.


Click the ‘Download’, you will see the options.

Open the downloaded file to install the app.


2. Open new document of Notepad.

 

^+w::

WinGetPos, X, Y, W, H, A

MsgBox, X, Y, W, H of the active window: %X%`, %Y%, %W%, %H%

 

Copy the code above (orange font), then paste it to Notepad.

This code is for getting size and position of active window by pressing

Ctrl+Shift+W.

You can change ‘w’ to the other. If I change it to ^+p, Ctrl+Shift+P is my hotkey.

Please take a look at the last line. After %X%, there is `. That is the code, not a typo.

Save a document and set the extension to .ahk.

3. Set the size and position of a window of Notepad the way you want.

Open the .AHK file.



Click an arrow at taskbar, you will see .AHK file (see picture above). That means it is running and detecting keystrokes. Whenever you press hotkey, message box will show values of size and position of active window (see picture below).


4. We have values of X, Y, W, H. The next step is the code for changing the size and position of active window.

 

^+z::WinMove, A,, 489, 192, 907, 572

 

From the code, you can change 358, 121, 1331, 818 to size and position you want.

Whenever you press Ctrl+Shift+Z, the size and position of the active window will be set.

You can change z to the other in ^+z

It’s time to do the same steps: copy the code above > create a new document of Notepad > paste it to Notepad > edit the code > save it > set the extension to .ahk > open a .AHK file.

Then make a target window active and press hotkey to change size and positon.


That’s it for this post. The next post I’ll show you the free app I use for recording macro.

 

The test steps – AutoHotkey 1.1.37.02

On: Windows 11 Home

Download: https://www.autohotkey.com/

 

2024/08/06

AutoHotkey (FREE) - Send Actions from Double Pressing a Key for Specific Application

Finally, I have found the code that works.

 

 

The test steps – AutoHotkey 2.0.18

OS: Windows 11 Home

Download: https://www.autohotkey.com/

 

1. Download it from a link above and install.

 

2. The code.

 

#IfWinActive ahk_exe Notepad.exe

$a::

KeyWait,a

KeyWait,a,D T0.04

If ErrorLevel

               Send a

else

               Send x

return

#IfWinActive

 

 

Code explanation

 

Line 1: Notepad.exe is an active app. To get name of active app, read my previous post -- https://windowsfreewareguide.blogspot.com/2024/07/autohotkey-free-send-actions-from.html

 

Line 2: I use one key, in this code is a. If you want to use other letters (b,c,d,e...), just change it.

 

Line 3: replace a after , to your letter.

 

Line 4: replace a after , to your letter.

D T0.04 = waits for 0.04 secs for key a to be pressed down.

 

In this code if I press key a one time, it sends a. If I press key a twice while 'Notepad' is active, it sends x. If you type fast and set D T to D T3, what will happen is when you type 'ab' you'll get 'ba' because it waits for 3 secs then key a will be pressed.

 


Time in D T affects double pressing too. If you set D T to D T0.04 but you double press key a too slow, what you get is aa not x.

 


So you might want to do lots of testing in order to make no mistake.

 

Line 6: replace a to your letter.

 

Line 8: replace x to your action.

 

If you want this script to work on every active application, just delete the first and the last line.

 

3. To run script, read step 2 in my post -- https://windowsfreewareguide.blogspot.com/2024/07/send-key-sequences-after-key-is-held.html

 

4. You can send key combination (Ctrl+x,....) as an action. If you don't want to read the offical manual, you can read my post from a link above.

 

To open an application, replace line 8 with Run "wordpad". In this case 'Wordpad' is launched.

 

More details: https://www.autohotkey.com/docs/v2/howto/RunPrograms.htm

 

The manual says Run command can also be used to open documents, folders and URLs.

 

Not bad for 10-line code that will make my flow faster.

 


The test steps – AutoHotkey 2.0.18

OS: Windows 11 Home

Download: https://www.autohotkey.com/