Jump to content

If nothing happens do..


Recommended Posts

Hey, just searched for this code, but found nothing, okay, everything works great, but if script clicks not on correct coordination and if nothing happens in example 20 sec after that click make it continue new loop, click on another coordination using mouseclick example :<

I dont know how to make it it do new loop if nothing happens if we take in example 20 sec :)

Link to comment
Share on other sites

  • Moderators

I read what you posted three times, and while I get that it is English - I can't understand what you're trying to do. Can you please post some code as an example? Otherwise you're asking us to guess at what you intend to do. ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Is this a follow up of an older thread?

Please post some code as JLogan3o13 suggested.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

if Not WinActive("Ultimated") then
WinActivate("Firefox")
endif
if Not WinActive("Ultimated") then
WinActivate("Firefox")
endif
sleep(1000)
MouseClick("left", 178, 389, 1, 0) ;click on Download player
WinWaitActive("Opening Software.exe")
WinActivate("Opening Software.exe")
sleep(1500)
MouseClick("left", 467, 279, 1, 0) ;click on Save player

And after that mouseclick if nothing happens how to make it click new mouseclick? :) i mean on other coordination.

Edited by Wolfshare
Link to comment
Share on other sites

Describe what happens if "something happens". After you click does a new window pop up?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

"And after that mouseclick if nothing happens how to make it click new mouseclick? :) i mean on other coordination."

You want the script to click on another coordinate, if the window that was supposed to appear, doesn't. Is that it?

MouseClick("left", 178, 389, 1, 0) ;click on Download player
Sleep (2000)
If WinActive("Opening Software.exe") Then
MouseClick("left", 467, 279, 1, 0) ;click on Save player
Else
MouseClick("left", 123, 123, 1, 0) ;click on alternative coordinate
EndIf[/url]
Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

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...