kalemaroni
-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by kalemaroni
-
-
On 1/26/2023 at 2:24 PM, rberq said:
The only partial solution I have found is to trigger the macro with the mouse. Instead of (or in addition to) a hot-key combination, a Mouse Event can activate a macro. (Look at the Activation tab for the macro.) You can specify some unused area of the screen which you click on to start your macro. Not the most convenient, but maybe it would work for you.
A similar method would be having a macro that runs continuously, repeatedly checking mouse coordinates. When you move the mouse to some pre-determined area of the screen, this monitoring macro would then start the prompting macro. You would want a delay built into the Repeat loop of the monitor, so it wouldn't excessively hog processor time -- half-second delays should be adequate but still give quick response time.
Run MEP as admin sorted out you'll be pleased to know
-
On 1/26/2023 at 3:59 PM, Cory said:
Confirmed. I have a test macro crtl+keypad9 I use all the time. I had it pop up a message box and verified it works with other windows focused. I observe the last run time update. It does not activate when Disk Management is focused and the last run time does not change.
I searched the forum and found the answer in an old post about a similar behavior in task manager, disk management and such with the mouse locator. This is for security reasons and by design. I terminated MEP and ran it again with elevated permissions, administrator, and it works.
Somewhere in the forum is a post with instructions on how to always have MEP start with admin privileges. I think it's as simple as changing the shortcut, but I don't remember for sure. Search and you will find.
Yes, that did the job, thanks Cory
-
On 1/27/2023 at 10:23 PM, Samrae said:
This article describes How to Run Macro Express as Administrator when Windows Starts
Brilliant, thanks very much Samrae!
-
A client of mine is a slow typer and looks at the keyboard as he types. He gets really frustrated when he finds he's typed lots with caps lock on so I wrote this macro on ALT+CTRL+SHIFT+C to copy the selected text and invert the casing:
Clipboard Copy
Variable Set String %T[1]% from the clipboard contents
Variable Set String %T[2]% to ""
Variable Set Integer %N[1]% to the length of variable %T[1]%
Repeat Start (Repeat %N[1]% times)
Variable Modify String: Copy a substring in %T[1]%, starting at %N[2]% and 1 characters long to %T[3]%
Variable Set to ASCII Value %T[3]% to %N[3]%
If Variable %N[3]% Is Greater Than "64"
AND
If Variable %N[3]% Is Less Than "91"
Variable Modify Integer: %N[3]% = %N[3]% + 32
Else
If Variable %N[3]% Is Greater Than "96"
AND
If Variable %N[3]% Is Less Than "123"
Variable Modify Integer: %N[3]% = %N[3]% - 32
End If
End If
Variable Set to ASCII Char %N[3]% to %T[3]%
Variable Modify String %T[2]%: Append Text (%T[3]%)
End Repeat
Text Type (Simulate Keystrokes): %T[2]%
-
Some windows just do not acknowledge that I've pressed a macro express activation (I use alt+ctrl+shift+<key>).
For example, if Disk Management is in focus, none of them work, which is particularly annoying as I do data recovery and as soon as I see the drive letter I want to hit shift+ctrl+alt+D to prompt me for a drive letter which it will then open immediately in Explorer.
Any ideas how to fix this?
-
17 hours ago, acantor said:
It might be possible. Perhaps captures the current window title, revise it (or prompt the user to revise it), and save the result in a global variable that is restored the next time the macro is activated? Store the new name in a file that the macro reads when it is run?
Try to avoid creating a macro that modifies another by manipulating the MEP user interface. I know it's possible because I've done it, but phew!!! It was a lot of work. Although result was almost 100% reliable, it failed occasionally... and spectacularly.
I'd love to know how to create a macro dynamically - specifically the type that activates on Window Title becoming active. Please could you share how you did it?
-
16 hours ago, Cory said:
Sure. Just Repeat with Windows command and when you find the one you want, change it.
--This is a workaround that I may end up having to do but it's not ideal
Also why don't you have a macro for each window title that activates by Window Title instead of HotKey? Then it would happen automatically.
--This is what I want to do ultimately as it's the elegant solution, it's just that I don't know what the window titles are going to be, hence wanting to know how to create a macro like this dynamically.
What command do you use to change them? I remember this from long ago, but have forgotten.
-- I couldn't actually find a command to change them so I found a 3rd party app that does it and I just pass it command line parameters
-
I want to rename the captions (window titles) of certain windows as soon as the title of those windows come into view.
At the moment I have a macro that when I hit the hotkey activation it prompts for the new window title and changes the current focused window title to the prompted value. However, when I restart the computer it changes all those window titles back to their original value.
My idea was to, when the hotkey is pressed, dynamically create a macro that is activated by the original window title and then changing the title from within that macro.
Is this possible?
-
How do I have Macro Express (using v4.4) continue to run scripts while an informative message is displayed on the screen. Basically, it's a message informing the user that a program will be shut down in 5 mins and whether they are there or not to close the message box it should start the timer and continue to run the script.
Shortcut to run macros doesn't work with all Win10 windows
in Macro Express and Macro Express Pro
Posted
Running MEP as admin sorted out you'll be pleased to know