
Welcome and if you need help
- joedf
- Posts: 7928
- Joined: 29 Sep 2013, 17:08
- Facebook: J0EDF
- Google: +joedf
- GitHub: joedf
- Location: Canada
- Contact:
Re: Welcome and if you need help
Go ahead and bump. We have no rules on necro-posting either. 






Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Welcome and if you need help
Thanks! 

-
- Posts: 15
- Joined: 25 Oct 2018, 11:33
Re: Welcome and if you need help
I've posted two new posts and I cannot find them anywhere. Is there a delay in posting them live?
- joedf
- Posts: 7928
- Joined: 29 Sep 2013, 17:08
- Facebook: J0EDF
- Google: +joedf
- GitHub: joedf
- Location: Canada
- Contact:
Re: Welcome and if you need help






Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
-
- Posts: 1
- Joined: 19 Sep 2019, 15:18
Re: Welcome and if you need help
Hello
I'm sorry if I'm doing anything wrong, I'm new to the forum and to automation.
I'm using Pulover's Macro Creator. In my current project, which I use a lot, I have many tabs (+- 120). They all have small pieces of commands for the many different actions I need.
My problem is when I started using "GoTo". If i put in one tab to "GoSub" another, it goes and does then comes back and continues. However, I needed to include many picture searches and put "If" commands in the "Child" tab, and then I included if not found, GoTo the beginning again "beginning of the Child tab".
Problem: This last GoTo interrupted the "Mother" tab GoTO, and the command stop after "Child" tab finishes.
How can I make it go back to the Mother tab and continue?
OBS: Sorry for the massage boxes, they were supposed to be funny...
These are the lines I have:[Mod edit: [code][/code] tags added.]
I'm sorry if I'm doing anything wrong, I'm new to the forum and to automation.
I'm using Pulover's Macro Creator. In my current project, which I use a lot, I have many tabs (+- 120). They all have small pieces of commands for the many different actions I need.
My problem is when I started using "GoTo". If i put in one tab to "GoSub" another, it goes and does then comes back and continues. However, I needed to include many picture searches and put "If" commands in the "Child" tab, and then I included if not found, GoTo the beginning again "beginning of the Child tab".
Problem: This last GoTo interrupted the "Mother" tab GoTO, and the command stop after "Child" tab finishes.
How can I make it go back to the Mother tab and continue?
OBS: Sorry for the massage boxes, they were supposed to be funny...
These are the lines I have:
Code: Select all
Mother:
Gosub, WhatsSelectWindow
Gosub, WhatsSearchName
Gosub, WhatsSelectTextField
Gosub, TXTWeMissedYou
Gosub, WhatsCopyFirstName
Gosub, WhatsSelectTextField
Send, {Escape}
Sleep, 10
Gosub, WhatsSubstituteXxxx
Child:
LabelWhaytsSearchName2:
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1920, 1080, C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163841.png
CenterImgSrchCoords("C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163841.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
If ErrorLevel
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1920, 1080, C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163924.png
CenterImgSrchCoords("C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163924.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 10
Goto, LabelWhaytsSearchName2
}
Sleep, 300
Send, {Control Down}{v}{Control Up}
Sleep, 300
Send, {Enter}
Sleep, 10
LabelWhasSerchName:
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1920, 1080, C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919164555.png
CenterImgSrchCoords("C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919164555.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY%, 0
Sleep, 10
If ErrorLevel = 0
{
MsgBox, 0, You fuking retard. Another error,
(LTrim
ctr + space
Error in search name whats
)
}
Else
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1920, 1080, C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163841.png
CenterImgSrchCoords("C:\Users\Andrey\OneDrive\Wizard\Fosters\Macros\Shots\Screen_20190919163841.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
If ErrorLevel
{
Goto, LabelWhasSerchName
}
}
Send, {Control Down}{v}{Control Up}
Sleep, 10
Who is online
Users browsing this forum: No registered users and 2 guests