Hi again!
Thanks for keeping up with me.
I am still having problems with it.
I am clicking the Play hotkey control and press, let's say enter, and it changes text to "Retur", then what do I do?
No code is added into the script.
Is there a button or key I need to press?
Pulover's Macro Creator v5.4.1 - The Complete Automation Tool
Moderator: Pulover
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
I feel silly.
I just found out how to do.
What I had not done is create a new macro and set the Play option for it. I tried to do it on the first one. I had no clue your macro creator added it together like it does when exporting.
Ow well, lets have some fun
I just found out how to do.
What I had not done is create a new macro and set the Play option for it. I tried to do it on the first one. I had no clue your macro creator added it together like it does when exporting.
Ow well, lets have some fun
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
I am looking for the best solution to parsing a csv into an array for use in PMC. I haven't yet found a way to do this through the existing tools in PMC, and while I was able to find a fantastic library, specifically the ObjCSV Library - Version v0.3.0 - By Jean Lalonde. However I still cant figure out how to make calls to these functions from within the pmc interface (meaning I will have to build the program with an expected output that will come from the library and code in the all file parsing references in the exported ahk after.). So I am looking for a way to use the functions defined in this library within PMC instead. any help would be greatly appreciated.
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
Hey,
How to add If excpression in Expression/Com Object Box?
I wanna add if statement to add "0" before single number - because it is date
DateDay := A_DD + A_Index
DateDay := "0" DateDay
so it would be like this
If(DateDay<10) than DateDay := "0" DateDay
How to add If excpression in Expression/Com Object Box?
I wanna add if statement to add "0" before single number - because it is date
DateDay := A_DD + A_Index
DateDay := "0" DateDay
so it would be like this
If(DateDay<10) than DateDay := "0" DateDay
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
You can use Loop, Read and StrSplit(). Examples of loops can be found in the help file.thedriver wrote:I am looking for the best solution to parsing a csv into an array for use in PMC. I haven't yet found a way to do this through the existing tools in PMC, and while I was able to find a fantastic library, specifically the ObjCSV Library - Version v0.3.0 - By Jean Lalonde. However I still cant figure out how to make calls to these functions from within the pmc interface (meaning I will have to build the program with an expected output that will come from the library and code in the all file parsing references in the exported ahk after.). So I am looking for a way to use the functions defined in this library within PMC instead. any help would be greatly appreciated.
You can only run functions from external AHK files if they return a string, it won't work with arrays.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
You have to use ternary. E.g.:Yoshimu wrote:Hey,
How to add If excpression in Expression/Com Object Box?
I wanna add if statement to add "0" before single number - because it is date
DateDay := A_DD + A_Index
DateDay := "0" DateDay
so it would be like this
If(DateDay<10) than DateDay := "0" DateDay
Code: Select all
DateDay := (DateDay < 10) ? 0 : DateDay
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
Hmmm, it's not working
Can you look?
Can you look?
Code: Select all
[PMC Code v5.0.3]|^F4||1|Screen,2,Fast,0,1,Input,-1,-1,1|1|Macro5
Groups=Start:1
1|[Expression]|DateDzien := A_DD + A_Index`nDataDzien := (DataDzien < 10) ? 0 : DataDzien|1|5|Expression|||||
2|[Text]|%DataDzien%|1|5|Send|||||
Re: Pulover's Macro Creator v5.0.4 - The Complete Automation Tool
Despite the typo in your variable, there is indeed a bug in the eval() function to detect the ternary in this case. It's not excluding the equal sign. I'm releasing an update.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Version Update: 5.0.5
Released version 5.0.5 to fix the problem. Your code should work now after correcting the variable name.
Btw, I have just bought a house and I'm very short this month... Some donations to help me pay for the domain name would be much appreciated.Version 5.0.5
- Fixed bug in expressions when assigning a variable to a ternary operation.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Version Update: 5.0.5
Ok, i see how Ternary operator works, but my code wont work as i wantPulover wrote:Your code should work now after correcting the variable name.
I want to:
1. Increment Day by A_index
2. place 0 before single number values. To make this:
05
06
07
08
09
10
11
This code is Assign 0 to my var if it is <10, and i wanna add "0" before number - so it is no longer number but string
Re: Version Update: 5.0.5
Well, it's your code, you should be able to fix it... I'm gonna give you the answer below, but I'd try to find it myself if I was you.Yoshimu wrote:Ok, i see how Ternary operator works, but my code wont work as i wantPulover wrote:Your code should work now after correcting the variable name.
I want to:
1. Increment Day by A_index
2. place 0 before single number values. To make this:
05
06
07
08
09
10
11
This code is Assign 0 to my var if it is <10, and i wanna add "0" before number - so it is no longer number but string
Spoiler
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
I tried that already but still no "0" before
I also tried
But also the same
When i did
The result is (for DataDzien <10):
123
So AHK removes all 0
Any idea?
I also tried
Code: Select all
DataDzien2 := "0" DataDzien
DataDzien := (DataDzien < 10) ? DataDzien2 : DataDzien
When i did
Code: Select all
DataDzien := (DataDzien < 10) ? 0000123 : DataDzien
123
So AHK removes all 0
Any idea?
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
I had a situation like that in my script in a close past...Yoshimu wrote: The result is (for DataDzien <10):
123
So AHK removes all 0
This code had success:
Code: Select all
loop %loop_count%
{
count += 1
if (count < 10)
{
count = 0%count%
}
Send {Control Down}
Sleep 50
Send {a}
Sleep 50
Send {c}
Sleep 50
Send {Control Up}
Sleep 50
ClipSaved := Clipboard
IniWrite, %ClipSaved%, Copy_Paste_Content.ini, 1, %count%
to fast reeditions, i wanted "0" in numbers less than 10 for speed in automatic modifications...
The outdated script:
https://autohotkey.com/boards/viewtopic ... 689#p96689
My shared scripts
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
Hummmm... Not AHK, but Uberi's ExprEval used in the Eval function. I don't think I'll be able to fix that one so quickly, though...Yoshimu wrote:I tried that already but still no "0" before
I also triedBut also the sameCode: Select all
DataDzien2 := "0" DataDzien DataDzien := (DataDzien < 10) ? DataDzien2 : DataDzien
When i didThe result is (for DataDzien <10):Code: Select all
DataDzien := (DataDzien < 10) ? 0000123 : DataDzien
123
So AHK removes all 0
Any idea?
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
Sure, take ur time.Pulover wrote:Hummmm... Not AHK, but Uberi's ExprEval used in the Eval function. I don't think I'll be able to fix that one so quickly, though...
For now i use (which work, but i like to minimalize my Macro in PCM )
Code: Select all
1|[Expression]|DataDzien := A_DD + A_Index|1|5|Expression||||0xFFFF00|
2|Compare Variables|DataDzien < 10|1|0|If_Statement||||0xFFFF00|
3|[Assign Variable]|DataDzien := "0" DataDzien|1|0|Variable|Expression|||0xFFFF00|
4|[End If]|EndIf|1|0|If_Statement||||0xFFFF00|
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
Hey Pulover, first of all, great piece of software!
I have encountered this annoying issue with your macro creator. For some unknown reason it appears to randomly crash on Windows 10 machines, roughly once every 30 minutes or so. Unfortunately this makes this great piece of software unusable for me at the moment. Is there any hope for a fix? If you are not aware of this problem, is there anything I can do to help you resolve it? E.G. Sending you a crash report (if you direct me on where to find it ^_^)
Cheers
I have encountered this annoying issue with your macro creator. For some unknown reason it appears to randomly crash on Windows 10 machines, roughly once every 30 minutes or so. Unfortunately this makes this great piece of software unusable for me at the moment. Is there any hope for a fix? If you are not aware of this problem, is there anything I can do to help you resolve it? E.G. Sending you a crash report (if you direct me on where to find it ^_^)
Cheers
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
The crashes problem is known and listed on GitHub. I suspect it's related to SciLexer.dll or its wrapper, but I'm way too busy with other projects at the moment. They are completely random, no way to force it, and I don't have the time to keep debugging it.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
-
- Posts: 2
- Joined: 13 Aug 2016, 16:20
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
Hi Pulover and friends,
I need help creating this macro.
I am using a pixel-search to react to something that occurs on screen. I am using an if statement and a loop for this part. So far this works OK.
Now I am trying to add a second component to my macro that uses a pixel search to react to another item on-screen that pops up very infrequently. So it may only pop-up every 2 or 3 hours.
I can get each pixel-search to work indepentently.
However, I cannot figure out how to add in the second pixelsearch without compromising the first. Basically, I would like the first pixel-search to loop for about 2-3 hours, then transition to the second pixel search for 1 minute, then go back to the first pixel-search for 2-3 hours. I cannot figure out how to structure this. The first pixel-search finishes any number of loops instantaneously. Adding delays does not help, because then it loops the delay and stops working.
Let me know if I am thinking about this the right way. I am not a very sophisticated user.
Thanks
I need help creating this macro.
I am using a pixel-search to react to something that occurs on screen. I am using an if statement and a loop for this part. So far this works OK.
Now I am trying to add a second component to my macro that uses a pixel search to react to another item on-screen that pops up very infrequently. So it may only pop-up every 2 or 3 hours.
I can get each pixel-search to work indepentently.
However, I cannot figure out how to add in the second pixelsearch without compromising the first. Basically, I would like the first pixel-search to loop for about 2-3 hours, then transition to the second pixel search for 1 minute, then go back to the first pixel-search for 2-3 hours. I cannot figure out how to structure this. The first pixel-search finishes any number of loops instantaneously. Adding delays does not help, because then it loops the delay and stops working.
Let me know if I am thinking about this the right way. I am not a very sophisticated user.
Thanks
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
You could use SetTimer for the second, or for both.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
-
- Posts: 2
- Joined: 13 Aug 2016, 16:20
Re: Pulover's Macro Creator v5.0.5 - The Complete Automation Tool
This worked, thanks!
Return to “Pulovers Macro Creator”
Who is online
Users browsing this forum: No registered users and 8 guests