Pulover's Macro Creator v5.4.1 - The Complete Automation Tool

Advanced Macro Recorder/Editor.

Moderator: Pulover

iamaldrin08
Posts: 3
Joined: 07 Feb 2016, 12:02

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

07 Feb 2016, 19:45

Adorabla wrote:@iamaldrin08

I know your problem, for beginner's:
Think about what you want to realize, use the Recording button (Big Red Button) and record every move you make.
Now Cut out everything what you don't need and play your Macro, step by step and check if it doe's what you want !

If you use Imgsearch at the beginning without understanding PMC, you run into problem's and soon give up.

Good for you to know is, Pixelsearch is significant faster then imgsearch and more precise.

First: Create Macro via Record Button (This helps understanding PMC)
Second : Remove every recorded step and exchange it with precise Pixelsearch and if found/not found commands
Third: Optimise you Macro with loops or Goto's


Started the same way as you, with the Recording button and now im running a bot 24/7 (Pixelsearch Based) that automatically clicks away In-Game ads, play's complete without a user and chooses the next Action.
Even Restart's if stuck.

PMC is really awesome !
Thank you @pulover
Thank you for your tip, i'll definitely try it later. I agree that pixel search is better and faster for searching, but what if the content changes, for example, items. What I want to know is how to send mouse clicks with coordinates.
iamaldrin08
Posts: 3
Joined: 07 Feb 2016, 12:02

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

08 Feb 2016, 04:06

I've tried pixelsearch, was able to make it work but it takes control of my mouse and bluestacks must be the active window. How can I make it run in the background?
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

08 Feb 2016, 12:16

iamaldrin08 wrote:I've tried pixelsearch, was able to make it work but it takes control of my mouse and bluestacks must be the active window. How can I make it run in the background?
To control a window in the background you need to use Control Commands, and the target window must have exposed controls (which is not always the case). I thought it wouldn't work with an Android emulator, but I wanted to try so I downloaded BlueStacks and found that ControlClick actually works. However I don't think it will be useful for what you want because of two problems. First, every time I use ControlClick the BS window is activated for some reason. Second, Image and Pixel search don't work in the background.

You can test ControlClick if you want:
  • Go to the Mouse Command window.
  • Check the Control option.
  • Uncheck the Relative option, to make coordinates relative to the window.
  • Click the search button [...] in the Coordinates area.
  • Select the BlueStacks window and right click where you want to click to get the coordinates.
  • Click the search button [...] for the Window with Title selected and right click on the BS window.
You can get the coordinates from image/pixel search from the variables %FoundX% and %FoundY% and use them in the X/Y coordinates of Click/ControlClick, but you might need to change CoordMode to Screen in settings. For ControlClick the BS window must also be maximized.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

09 Feb 2016, 11:44

how can I download this program? it says that it is malicious when I tried to downloaded at Softpedia
User avatar
derz00
Posts: 497
Joined: 02 Feb 2016, 17:54
Location: Middle of the round cube
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

11 Feb 2016, 11:12

Hi Pulover,
I like the idea of your Macro Creator. I'm looking forward to your next version, and being able to easily download it without all those blocks and warnings.
For features, I'm hoping for big buttons to record and run, etc., other buttons can be smaller. Thanks for your work!
try it and see
...
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

11 Feb 2016, 13:34

Hi derz00,

Thanks for the feedback. I am working hard on the new version, adding many new features.
PMC used to have bigger buttons for Record and Play, but since v4 I'm using toolbars and rebars for the main buttons. Having one of bands with bigger icons is possible, but it affects the height of all of them and the result is kind of ugly, so I rather keep them all in the same size now. But I already added an option to use big icons and I think it's much better. Here's a preview:
Image
Thanks for the suggestion, anyway. :beer:
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

12 Feb 2016, 12:17

Hi Pulover,
how can I download your program. I could not make it with Softpedia.
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

12 Feb 2016, 12:57

I have included the Setup and Portable zip files for download in the GitHub release (I actually only recently found that you could do that :oops: :P ).

:arrow: Download PMC v4.3.1 from GitHub
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

12 Feb 2016, 13:27

thanks!
there are four files there
if I want to download to my PC, is it enough the first file?
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

12 Feb 2016, 13:33

AmDeG 11 wrote:thanks!
there are four files there
if I want to download to my PC, is it enough the first file?
The setup exe is enough.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Guest

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

19 Feb 2016, 14:10

Hi, I am trying to use your program to write a small scale script which would loop on the press of a key.
This is what I have so far.

Code: Select all

Top:
KeyWait, Shift
KeyWait, Shift, D
CoordMode, Pixel, Screen
PixelSearch, FoundX, FoundY, 0, 0, 380, 630, 0xE0A0C0, 25, Fast RGB
If ErrorLevel = 0
	Click, %FoundX%, %FoundY%, 0
Goto, Top
To which after I press Shift it will find the pixel/color and move mouse there, after I release Shift it will still keep my mouse on pixel position (I have no control over my cursor)
So then I tried

Code: Select all

Top:
GetKeyState, Shift
CoordMode, Pixel, Screen
PixelSearch, FoundX, FoundY, 0, 0, 380, 630, 0xE0A0C0, 25, Fast RGB
If ErrorLevel = 0
	Click, %FoundX%, %FoundY%, 0
Goto, Top
(Changing KeyWait to GetKeyState) - This had no effect and would just jump straight to pixel searching and taking control over my mouse.

Ideally I would like to be able to hold Shift - have it search for pixel and move my mouse to that pixel - upon releasing shift I would like to regain control over my mouse again.

P.S; Really enjoying this tool as it makes everything so simple, just a bit stumped at the moment!
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

19 Feb 2016, 15:02

Guest wrote:Hi, I am trying to use your program to write a small scale script which would loop on the press of a key.

Ideally I would like to be able to hold Shift - have it search for pixel and move my mouse to that pixel - upon releasing shift I would like to regain control over my mouse again.

P.S; Really enjoying this tool as it makes everything so simple, just a bit stumped at the moment!
Hello and thanks for the feedback.

The usual approach for this task is a While loop. This is not supported in the current version (it will be in the next version) but we can get the same results with an infinite loop and an If Statement.
Notice that in PMC you cannot have Shift as a hotkey to trigget the macro, so you have to choose something like Shift+T or some other key (you can use shift as the hotkey in ahk script, but it will trigger the macro every time you use it).

Code: Select all

[PMC Code]|+T||1|Window|1|Macro1
1|[LoopStart]|LoopStart|0|0|Loop|||||
2|GetKeyState|ShiftKeyState, Shift, P|1|0|GetKeyState|||||
3|Compare Variables|ShiftKeyState = U|1|0|If_Statement|||||
4|Break||1|0|Break|||||
5|[End If]|EndIf|1|0|If_Statement|||||
6|Move, Continue|0`, 0`, 380`, 630`, 0xE0A0C0`, 25`, Fast RGB|1|0|PixelSearch||Screen|||
7|[LoopEnd]|LoopEnd|1|0|Loop|||||

Code: Select all

Loop
{
	GetKeyState, ShiftKeyState, Shift, P
	If ShiftKeyState = U
	{
		Break
	}
	CoordMode, Pixel, Screen
	PixelSearch, FoundX, FoundY, 0, 0, 380, 630, 0xE0A0C0, 25, Fast RGB
	If ErrorLevel = 0
		Click, %FoundX%, %FoundY%, 0
}
Good luck and I hope PMC will help you learn more of AHK.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Sonovice

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

20 Feb 2016, 13:39

Hi Pulover,
thanks for your great tool so far. Is it possible to somehow start PMC in recording mode? I am actually abusing it to capture exact user input for interface design studies and have to set it up over and over again for every new participant. It would be perfect to just start it in silent mode and record right away logging into a specified file.

Best, Sonovice
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

20 Feb 2016, 22:15

Sonovice wrote:Hi Pulover,
thanks for your great tool so far. Is it possible to somehow start PMC in recording mode? I am actually abusing it to capture exact user input for interface design studies and have to set it up over and over again for every new participant. It would be perfect to just start it in silent mode and record right away logging into a specified file.

Best, Sonovice
Hi Sonovice,

There isn't any built-in way to start in recording mode in the current version. I'll make a note to add this as a command line parameter in the next one. For now, maybe something like this will work (untested):

Code: Select all

#NoEnv
#InputLevel, 1
SendLevel, 1
SetTitleMatchMode, 2

Run, macrocreator.exe ; if in the same folder, or full path if not
WinWaitActive, Pulover's Macro Creator
Send, ^r
Sleep, 500
F9 ; or your record hotkey
You can to customize it to open a file and save. You can find command line parameters in the help file (main window) to start it in tray as well.

Regards
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Adorabla
Posts: 26
Joined: 17 Dec 2015, 17:17

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

21 Feb 2016, 10:31

Hi @Pulover

I want to enhance my farming Macro's and i hope you can follow my request.
I have 3 Dungeons to farm.
At the actual point, i have separate Macro's for Dungeon's.
But, im trying to implement them all in one Script with a Random function.

Something like this (I hope you can follow me):

An example: The Macro Creator generates a Number and if the number is in example "3", the Script jumps with a Goto to this point and starts this part ->
Now a Goto back to the random generator and it generates a "2", this starts now another part.

Is this possible?
if yes, can you show it to me in a little *.pmc to learn how it works ?

And as always thank you for this awesome Software !!
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

21 Feb 2016, 11:17

Hi Adorabla,

Goto and Gosub accept variables, so you can do it with the Random command, like this:

Code: Select all

[PMC Code]|F6||0|Window|1|Start
1|Random|Rand, 1, 5|1|0|Random|||||
2|[Gosub]|Macro%Rand%|1|0|Gosub|||||

[PMC Code]|||1|Window|1|Macro1
1|[MsgBox]|Macro 1|1|0|MsgBox|0||||

[PMC Code]|F7||1|Window|1|Macro2
1|[MsgBox]|Macro 2|1|0|MsgBox|0||||

[PMC Code]|||1|Window|1|Macro3
1|[MsgBox]|Macro 3|1|0|MsgBox|0||||

[PMC Code]|||1|Window|1|Macro4
1|[MsgBox]|Macro 4|1|0|MsgBox|0||||

[PMC Code]|||1|Window|1|Macro5
1|[MsgBox]|Macro 5|1|0|MsgBox|0||||

Thank you too for helping answering the questions here.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Adorabla
Posts: 26
Joined: 17 Dec 2015, 17:17

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

21 Feb 2016, 11:30

@Pulover

You are truly a Hero, thank you !
This Made my day.

Take all time you need to enhance your awesome piece of Software.
Thank's for everything
Guest

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

21 Feb 2016, 13:10

Hi Pulover,

Your software is awesome, but when I try to use it to control software with a fixed screen interface (that can't be re-sized), my recorded mouse clicks are inaccurate. I have tried slowing down the macro & using re-sizing software without success.
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Macro Creator v4.1.3 - Automation Tool (Recorder & Writer)

21 Feb 2016, 13:46

Guest wrote:Hi Pulover,

Your software is awesome, but when I try to use it to control software with a fixed screen interface (that can't be re-sized), my recorded mouse clicks are inaccurate. I have tried slowing down the macro & using re-sizing software without success.
The default behavior is to record coordinates relative to the active window. If you want it to be relative to your screen you have to change coordmode in settings (if that's what you mean).
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 16 guests