Jump to content

Finish button - (Moved)


charly99
 Share

Recommended Posts

Hi everyone, I'm new to this, I have a couple of questions:
When I automate the apps and interrupt the installation (by clicking on the desktop) the installation stops. Is that normal?
My other problem is to finish an app, for example I was creating an automation with apmstudio trial, but when I get to the end I can't give it or it doesn't finish the box and it stays. Could you help me understand that part.

.........................................................................................

WinWaitActive("AutoPlay Media Studio 8 Trial Setup")
WinActivate("AutoPlay Media Studio 8 Trial Setup")
 Send("{ENTER}")                                                                ; paso 13

WinWaitActive("AutoPlay Media Studio 8 Trial Setup")
WinActivate("AutoPlay Media Studio 8 Trial Setup")
Send("{ENTER}")                                                                 ; paso 14

WinWaitActive("AutoPlay Media Studio 8 Trial Setup")
WinActivate("AutoPlay Media Studio 8 Trial Setup", "")                 ; " " there is no text to place
Send("{Enter}")           ; no  finish

Link to comment
Share on other sites

  • Moderators

Moved to the appropriate forum.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

16 hours ago, charly99 said:

When I automate the apps and interrupt the installation (by clicking on the desktop) the installation stops. Is that normal?

I guess it depends on what you mean by normal. ;)

Yes, I would expect it to be interrupted if you are relying on Send() and/or MouseClick() functions. 

Check out the ControlSend() and ControlClick() functions instead if you are hoping to automate something, and continue using the computer while the script runs.

You may also look into whether or not the installer supports a silent install.  That is arguably the best way to perform an install and have it run in the background, if the installer supports it.

16 hours ago, charly99 said:

My other problem is to finish an app

Looking at the example you posted, it looks like the logic may not be accomplishing what you think it should, they way you think it should.

WinWaitActive pauses until the window becomes active.  If it never becomes active (by user intervention or own its own), the script will not continue. 

Perhaps WinWait is what you need instead?

Edited by spudw2k
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...