Jump to content
Sign in to follow this  
Wolfshare

If nothing happens do..

Recommended Posts

Wolfshare

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 :)

Share this post


Link to post
Share on other sites
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

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

Share this post


Link to post
Share on other sites
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

I mean " if nothing happens" that means if script clicks and nothing happens, there are few pages, two i think so, with different download button coordination.. That's why i need this.

Share this post


Link to post
Share on other sites
careca

"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

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
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
Sign in to follow this  

×