Close URL

Advanced Macro Recorder/Editor.

Moderator: Pulover

farmock1
Posts: 3
Joined: 16 Jan 2021, 09:10

Close URL

16 Jan 2021, 09:27

I am brand new to Pulover's Macro Creator. On my first macro I can open a website, get the info I want but cannot figure out how to close it. I watched the first video showing the use of winclose but I cannot get the tab to close as shown in the video. I am opening in Chrome, opened multiple tabs and have also tried the keyboard shortcut Control W, all to no avail. I have spent hours on trying to make what I am sure is a simple task, work. I would highly appreciate any help which could be provided.
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Close URL

16 Jan 2021, 09:53

Post your code.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
farmock1
Posts: 3
Joined: 16 Jan 2021, 09:10

Re: Close URL

16 Jan 2021, 13:13

Pulover,
I could not figure out how to directly copy and insert code here. I indirectly got it here but not sure if this is in form you need. Thanks so much for your help.

Code: Select all

[PMC Globals]|None||
[PMC Code v5.3.9]|F3||1|Window,2,Fast,0,1,Input,-1,-1,1|1|Macro1
Context=None|
Groups=Start:1
1|Run|https www.publix.com /covid-vaccine/florida|1|0|Run|||||1|  Broken Link for safety
2|WinWaitActive||1|333|WinWaitActive||COVID-19 Vaccine in Florida  Publix Super Markets - Google Chrome|||2|
3|[Pause]||1|1000|Sleep|||||4|
4|Left Move & Click|832, 116 Left, Up|1|10|Click|||||5|
5|Down|{Down}|1|0|Send|||||7|
6|Down|{Down}|1|0|Send|||||8|
7|Down|{Down}|1|0|Send|||||8|
8|Down|{Down}|1|0|Send|||||8|
9|Down|{Down}|1|0|Send|||||8|
10|Down|{Down}|1|0|Send|||||8|
11|Down|{Down}|1|0|Send|||||8|
12|Continue, Break, FoundX, FoundY, 1|0, 0, 1366, 768, C:\Users\farmo\Desktop\PuloversMacroCreator-Portable\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20210115141824.png|1|0|ImageSearch||Window|||8|
13|If Image/Pixel Found||1|0|If_Statement|||||13|
14|Down|{Down}|1|0|Send|||||15|
15|[End If]|EndIf|1|0|If_Statement|||||16|
16|[Pause]||1|1|Sleep|||||17|
17|Break, Continue, FoundX, FoundY, 1|0, 0, 1366, 768, C:\Users\farmo\Desktop\PuloversMacroCreator-Portable\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20210115142004.png|1|0|ImageSearch||Window|||18|
18|If Image/Pixel Found||1|0|If_Statement|||||23|
19|[End If]|EndIf|1|0|If_Statement|||||25|
20|[Pause]||1|1|Sleep|||||26|
21|WinActivate||1|333|WinActivate||COVID-19 Vaccine in Florida  Publix Super Markets - Google Chrome|||27|
22|[Pause]||1|1|Sleep|||||29|
23|WinWaitClose||1|333|WinWaitClose||COVID-19 Vaccine in Florida  Publix Super Markets - Google Chrome|||30|
[Mod edit: [code][/code] tags added.]
User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Close URL

18 Jan 2021, 07:26

The default mode for title match is that it must contain the text anywhere (mode 2). I think it's getting stuck due to the title not being exact, so you I think you should use a shorter title. I've tested the code below (skipping the image searches) and it worked closing the tab with Ctrl+W.

Code: Select all

[PMC Globals]|None||
[PMC Code v5.3.9]|F3||1|Window,2,Fast,0,1,Input,-1,-1,1|1|Macro1
Context=None|
Groups=Start:1
1|Run|https://www.publix.com/covid-vaccine/florida|1|0|Run|||||1|
2|WinWaitActive||1|333|WinWaitActive||Publix Super Markets|||2|
3|[Pause]||1|1000|Sleep|||||4|
4|Left Move & Click|832, 116 Left, Up|1|10|Click|||||5|
5|Down|{Down}|1|0|Send|||||7|
6|Down|{Down}|1|0|Send|||||8|
7|Down|{Down}|1|0|Send|||||8|
8|Down|{Down}|1|0|Send|||||8|
9|Down|{Down}|1|0|Send|||||8|
10|Down|{Down}|1|0|Send|||||8|
11|Down|{Down}|1|0|Send|||||8|
12|Continue, Break, FoundX, FoundY, 1|0, 0, 1366, 768, C:\Users\farmo\Desktop\PuloversMacroCreator-Portable\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20210115141824.png|1|0|ImageSearch||Window|||8|
13|If Image/Pixel Found||1|0|If_Statement|||||13|
14|Down|{Down}|1|0|Send|||||15|
15|[End If]|EndIf|1|0|If_Statement|||||16|
16|[Pause]||1|1|Sleep|||||17|
17|Break, Continue, FoundX, FoundY, 1|0, 0, 1366, 768, C:\Users\farmo\Desktop\PuloversMacroCreator-Portable\MacroCreatorPortable\x64\MacroCreator\Screenshots\Screen_20210115142004.png|1|0|ImageSearch||Window|||18|
18|If Image/Pixel Found||1|0|If_Statement|||||23|
19|[End If]|EndIf|1|0|If_Statement|||||25|
20|[Pause]||1|1|Sleep|||||26|
21|WinActivate||1|333|WinActivate||Publix Super Markets|||27|
22|[Pause]||1|1|Sleep|||||29|
23|Control + w|{Control Down}{w}{Control Up}|1|0|Send|||||30|
24|WinWaitClose||1|333|WinWaitClose||Publix Super Markets|||31|

Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
farmock1
Posts: 3
Joined: 16 Jan 2021, 09:10

Re: Close URL

18 Jan 2021, 15:35

Pulover,
It works! Thanks so much.

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 23 guests