Jump to content

Im sorry i read the help file, but i have some questions


Recommended Posts

so i wanna make a script...

; sleep (700)

(note below doesnt make sense its just an example *but i may have set it up wrong*

; left [50, 50[ 10] 10]

; left [50, 100[ 10] 10]

; left [50, 20[ 10] 10]

; type??

[enter]

(or should i just click enter..)

; left [50, 50[ 10] 10]

--repeat--

note* im basicaly clueless im awfull so far.. with scripting...*

Link to post
Share on other sites

i know im doing something wrong.. what....

i couldnt find how do do enter.. so msay i just click

;log in*

; left [50, 50[ 10] 10]

; left [50, 100[ 10] 10]

; left [50, 20[ 10] 10]

; type?? *

; left [10, 50[ 10] 10]

; left [50, 50[ 10] 10]

--repeat--

_______

the ones with the *'s are the ones i have problems with

Link to post
Share on other sites

ok i read the faq..

is this ok.. asides from the log in/...

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.1.0

; Author: Sillytiger A.N.Other <myemail@nowhere.com>

;

; Script Function:

; Gaiaonline Auto-bumper

;

; ----------------------------------------------------------------------------

; Script Start

; sleep(500)

; leftclick, , , 5, 10

; leftclick, , , 1, 10

; sleep(100)

; leftclick, , , 5, 10

; leftclick, , , 1, 10

; {enter} bump {enter}

; leftclick, , , 1, 10

; sleep(200)

; leftclick, , , 1, 10

Link to post
Share on other sites

maybe like this

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: Sillytiger A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Gaiaonline Auto-bumper
;
; ----------------------------------------------------------------------------

; Script Start

Sleep(500)

MouseClick("left", 5, 10)

MouseClick("left", 1, 10)

Sleep(100)

MouseClick("left", 5, 10)

MouseClick("left", 1, 10)

Send( "{enter} bump {enter}")

MouseClick("left", 1, 10)

Sleep(200)

MouseClick("left", 1, 10)

8)

Edited by Valuater

NEWHeader1.png

Link to post
Share on other sites

this is a great start

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: Sillytiger A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Gaiaonline Auto-bumper
;
; ----------------------------------------------------------------------------

; Script Start
#include <GUIConstants.au3>
#include <IE.au3>


Dim $Username = "Valuater"
Dim $Password = "testpass"
Dim $Paused
Dim $Program = "http://www.gaiaonline.com/"

HotKeySet("{ESC}", "Terminate")
HotKeySet("{F8}", "Set_Logon")
HotKeySet("{F9}", "Set_Bump")
HotKeySet("{PAUSE}", "TogglePause")

While 1
    ToolTip('Script is "Running"',0,0)
    Sleep(50)
WEnd

Func Set_Logon()
    $o_IE = _IECreate()
    
    _IENavigate($o_IE, $Program)
    
    
    
    
        
    $o_SearchForm = _IEFormGetObjByName ($o_IE, "loginform")
    
    $o_Keyword_1 = _IEFormElementGetObjByName ($o_SearchForm, "username")
    _IEFormElementSetValue ($o_Keyword_1, $Username)
    
    $o_Keyword_2 = _IEFormElementGetObjByName ($o_SearchForm, "password")
    _IEFormElementSetValue ($o_Keyword_2, $Password)
    
    Sleep(1000)
    
; press submit button - not working
    
;$o_Keyword_3 = _IEFormElementGetObjByName ($o_SearchForm, "btn_sm_submit.png")
; _IEClickimg($o_IE, $o_Keyword_3)
    
;Sleep(1500)
;_IEFormSubmit ($o_SearchForm,)
    
$o_IE = 0

EndFunc

Func Set_Bump()

Sleep(500)

MouseClick("left", 5, 10)

MouseClick("left", 1, 10)

Sleep(100)

MouseClick("left", 5, 10)

MouseClick("left", 1, 10)

Send( "{enter} bump {enter}")

MouseClick("left", 1, 10)

Sleep(200)

MouseClick("left", 1, 10)

EndFunc

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

8)

NEWHeader1.png

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...