Re: Pulover's Macro Creator v5.0.1 - The Complete Automation Tool
Posted: 25 Apr 2016, 01:24
Let's help each other out
https://www.autohotkey.com/boards/
To use the result as variable, first you need to assign a variable to the function result, like this:vallorian wrote:I'm tryding to do "random variable" like in example, but in result i need variable which i can use inside "text", like this:
Code: Select all
1|RandCity|RandCity := |1|0|Function|||||
2|[Text]|Random city is %RandCity%... Next text...|1|0|SendRaw|||||
To use a function directly inside a command, you need to make the whole parameter an expression, like this:vallorian wrote:So is it possible to use function inside [Text] ?
Code: Select all
1|[Text]|% "Random city is " RandCity() "... Next text..."|1|0|SendRaw|||||
Ok, How about multiple Functions/variables in one raw?pulover wrote:To use a function directly inside a command, you need to make the whole parameter an expression, like this:vallorian wrote:So is it possible to use function inside [Text] ?Code: Select all
1|[Text]|% "Random city is " RandCity() "... Next text..."|1|0|SendRaw|||||
Doesn't it show you a message saying "Restart the application to apply changes."?click-click wrote:I don't see a difference in icon size when choosing between small/large icons. Go to View -> Icons size -> neither large or small shows a check-mark and the size doesn't change after resetting layout and restarting .
Well, I'm sorry but I like the flat ones...click-click wrote:I actually liked the old toolbar icon-set better than the flat styled ones used now.
I'd like to add that option as well, but that is not simple task to be done in AHK... Not with an app that has over 40 guis.click-click wrote:Also, would it be possible to have an option to increase the font size for the app?
I do consider A_ScreenDPI to adjust gui elements. As far as I can tell everything is okay for me when I change DPI.click-click wrote:I'm not sure if Macrocreator is DPI-aware or not.
If you're talking about the hotkeys you can hide them from the View menu. I've never considered hiding the Main Loop band, but I think I can add that option in the future. As for the bottom edit bar, that is not a real toolbar, just normal controls, and I'm not feeling really motivated to make any changes there because it involves the GuiSize label which is not so trustful...click-click wrote:One more thing comes to mind. Is it possible to hide the start/stop/loop entries next to the toolbar(s) and the very bottom section (repeat, delay, etc.)? I've never used any of those functions and I did not find an option for hiding them..
Well, it is...vallorian wrote:Ok, How about multiple Functions/variables in one raw?
Is it possible?
Code: Select all
1|[Text]|% "Random city is " RandCity() "... Today is " A_DD " of " A_MMMM "`, and another random city is " RandCity() "."|1|0|SendRaw|||||
Thanks, I'll be waiting.vallorian wrote:ok, i will also send you few things i noticed in this new version.
And also i started correcting Polish translation in Lang File, so i will send you when I finished or E.g half-finished
It's AutoHotkey that crashes, and I don't know why. It happens at random places and when I run the source using a debug version of AutoHotkey.exe it won't crash, so I still have no clue.vallorian wrote:PS: this version, crashes alot, is there any error Log?
Right, it's exactly like you said. Name the variables for x and y positions in the MouseGetPos command and use them in the x and y coordinates of Mouse command, enclosed in percent signs. Check out the video tutorials and examples in the help file to learn more.roedtraad wrote:So I need to get som coordinates from MouseGetpos, as variables, and insert them later, right?
It is my post above. I haven't seen that I was logged off...Guest wrote:Hi,
I started using MacroCreator and it is great tool. I have a question, given that I am still new to automation process at all, how I can connect specific Excel file, that contain data, to macro? I am working on project to connect, via macro, website PDFMERGE.COM to merge pdf files and in this excel file will be paths of files that I want to send to particular locations on the website. There will be unknown number of data like: in column A will be paths of files that contains the first page, in column B paths of files for the second page, column C for the third page and so on. How to make to go cell by cell? I suppose I have to use VBA code with prefix XL. according to tutorials you posted. If I am wrong, please tell me what to do. I will appreciate your help. Thanks in advance.
You can use the "Connect" button or a function, like ComObjActive() to connect to the most recent active excel instance, or ComObjGet(FilePath) to connect to a file.MARE19722 wrote:how I can connect specific Excel file, that contain data, to macro?
You can use ActiveCell.Offset(y, x).Select to move the selection.MARE19722 wrote:How to make to go cell by cell? I suppose I have to use VBA code with prefix XL. according to tutorials you posted. If I am wrong, please tell me what to do.
Code: Select all
XL.ActiveCell.Offset(1, 0).Select ; moves the selection 1 cell down
XL.ActiveCell.Offset(0, 3).Select ; moves the selection 3 cells to the right
XL.ActiveCell.Offset(-2, -1).Select ; moves the selection 2 cells up and one cell to the left
Hi,Pulover wrote:Hi,You can use the "Connect" button or a function, like ComObjActive() to connect to the most recent active excel instance, or ComObjGet(FilePath) to connect to a file.MARE19722 wrote:how I can connect specific Excel file, that contain data, to macro?
You can use ActiveCell.Offset(y, x).Select to move the selection.MARE19722 wrote:How to make to go cell by cell? I suppose I have to use VBA code with prefix XL. according to tutorials you posted. If I am wrong, please tell me what to do.The Expressions window should be able to reproduce any COM expression example you can find on the forum. You can start here: https://autohotkey.com/boards/viewtopic.php?p=495#p495Code: Select all
XL.ActiveCell.Offset(1, 0).Select ; moves the selection 1 cell down XL.ActiveCell.Offset(0, 3).Select ; moves the selection 3 cells to the right XL.ActiveCell.Offset(-2, -1).Select ; moves the selection 2 cells up and one cell to the left
If you have doubts about how to do something using COM, you should post on the Ask For Help forum as this is not about PMC specifically.
Yes, ComObjGet() will return the pointer you're going to use on the other calls. You can write XL := ComObjGet("C:\SpreadSheet.xlsx") in the Expression window or call the function from the Function window.MARE19722 wrote:Hi,
Thank you for this tips. Could you please tell me, if I understood correctly, when I put function ComObjGet(FIlePath) In Expression/COM Interface, in the Expression window, it is connected? And afterward I have to write additional code, also in Expression window? Thanks in advance.
Code: Select all
[PMC Code v5.0.1]|F1||1|Window,2,Fast,0,1,Input,-1,-1,1|1|Macro1
Groups=Start:1
1|ComObjGet|XL := "C:\SpreadSheet.xlsx"|1|0|Function|||||
Which Drop-Down menu is missing there?
Ehhh... Did you click at the blue cog button? I could not put a drop-down menu there because of the properties of that window, that's why I put the cog buttons to show them.
What's "Continue Playback"?
There's something you and other users can help me with.Adorabla wrote:Editing Macro's was easy and fast without Hangups or Crash's