Wolfshare Posted March 22, 2013 Share Posted March 22, 2013 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 More sharing options...
Moderators JLogan3o13 Posted March 22, 2013 Moderators Share Posted March 22, 2013 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 More sharing options...
water Posted March 22, 2013 Share Posted March 22, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 22, 2013 Author Share Posted March 22, 2013 (edited) 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 March 22, 2013 by Wolfshare Link to comment Share on other sites More sharing options...
water Posted March 22, 2013 Share Posted March 22, 2013 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 22, 2013 Author Share Posted March 22, 2013 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. Link to comment Share on other sites More sharing options...
careca Posted March 22, 2013 Share Posted March 22, 2013 (edited) "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 March 22, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now