Jump to content

run every 12 hours


Recommended Posts

need help on this im trying to run this every 12 hours can someone pls help me with this pls what should i add with this script and if possible i know this is done only by the recorder and its messy can someone pls help me click this up, thank you very very much would like it to be run every 12 hours so i can add it to the start menu to auto run

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('F:\Program Files\Internet Explorer\iexplore.exe')

WinWait("Yahoo! - Windows Internet Explorer","")

If Not WinActive("Yahoo! - Windows Internet Explorer","") Then WinActivate("Yahoo! - Windows Internet Explorer","")

WinWaitActive("Yahoo! - Windows Internet Explorer","")

MouseMove(208,42)

MouseDown("left")

MouseUp("left")

Send("vote.wowfusiononline.com{ENTER}")

WinWait("WoWFusion Vote Conrol Panel - Windows Internet Explorer","")

If Not WinActive("WoWFusion Vote Conrol Panel - Windows Internet Explorer","") Then WinActivate("WoWFusion Vote Conrol Panel - Windows Internet Explorer","")

WinWaitActive("WoWFusion Vote Conrol Panel - Windows Internet Explorer","")

MouseMove(798,369)

MouseDown("left")

MouseUp("left")

Send("name{TAB}password{TAB}{ENTER}")

WinWait("http://vote.wowfusiononline.com/index.php?action=home - Windows Internet Explorer","")

If Not WinActive("http://vote.wowfusiononline.com/index.php?action=home - Windows Internet Explorer","") Then WinActivate("http://vote.wowfusiononline.com/index.php?action=home - Windows Internet Explorer","")

WinWaitActive("http://vote.wowfusiononline.com/index.php?action=home - Windows Internet Explorer","")

MouseMove(822,487)

MouseDown("left")

MouseMove(822,488)

MouseUp("left")

WinWait("XtremeTop100.com - Gaming top 100 list - Windows Internet Explorer","")

If Not WinActive("XtremeTop100.com - Gaming top 100 list - Windows Internet Explorer","") Then WinActivate("XtremeTop100.com - Gaming top 100 list - Windows Internet Explorer","")

WinWaitActive("XtremeTop100.com - Gaming top 100 list - Windows Internet Explorer","")

MouseMove(1677,11)

MouseDown("left")

MouseMove(1677,12)

MouseUp("left")

Link to comment
Share on other sites

Using an other program to do that is hard and sometimes impossible. Instead, use an shell object via autoit.

using

$oIE.navigate() to navigate yourself through everything is better than navigating by entering it with SEND.

Sometimes if you're busy on the computer and the script is running, you can easily interfere with the script.

If you do it my way, you cannot. Below is an example

#include <GUIConstants.au3>

$oIE = ObjCreate("Shell.Explorer.2")

$title  =   "Immense Kick ass"
$width  =   750
$height =   600
GUICreate($title, $width, $height)
GUICreate ( "Embedded Web control Test", $width, $height)
$GUIActiveX         = GUICtrlCreateObj      ( $oIE, 10, 10, $width-20, $height-20)

GUISetState ()       ;Show GUI

$oIE.navigate("http://www.autoitscript.com")

While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

GUIDelete ()
Exit

hope that this helped a bit.

immense

Edited by Immense
Link to comment
Share on other sites

here

#include <guiconstants.au3>
#include <guiconstants.au3>
#include <File.au3>
#include <String.au3>
#include <GuiEdit.au3>


For $i = 1 To 99999
    sleep (12*60*60*1000)
    
    If ProcessExists ("name.exe") Then
    
Else
    run("name.exe")
    endif
    Next
    

GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    If $nMsg = $GUI_EVENT_CLOSE Then Exit
WEnd
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...