Sign in to follow this  
Followers 0
Evil_Has_Survived

Help Please

7 posts in this topic

#1 ·  Posted (edited)

Hi everyone im new here hehe :), anyways I made a script for ill show you my script then ask for help after you take a look at it.

; SAFER VERSION of Double click at 0,500

Opt ("MouseClickDelay", 0)

Opt ("MouseClickDownDelay", 1)

Dim $primary

Dim $secondary

;Determine if user has swapped right and left mouse buttons

$k = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

; It's okay to NOT check the success of the RegRead operation

If $k = 1 Then

$primary = "right"

$secondary = "left"

Else ;normal (also case if could not read registry key)

$primary = "left"

$secondary = "right"

EndIf

MouseClick($primary, 28, 325, 2)

MouseClick($primary, 377, 311, 2)

Sleep(1000)

send("cocklefighting")

MouseClick($primary, 412, 337, 2)

MouseClick($primary, 47, 259, 2)

MouseClick($primary, 494, 415, 2)

MouseClick($primary, 493, 446, 2)

MouseClick($primary, 493, 450, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 652, 558, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

;;;; Body of program would go here ;;;;

While 1

Sleep(100)

WEnd

;;;;;;;;

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Func ShowMessage()

MsgBox(4096,"","This is a message.")

EndFunc

sorry that its to long I cutted it down a bit though , anyways the problem is in order for this to work the screen must be maximized or the mouse clicks won't be correct. How would I make it so it automaticly maximizes it.

Thanks in advance

Edited by Evil_Has_Survived

Thanks in advance

Share this post


Link to post
Share on other sites



Hi,

have a look at WinSetState()

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

have a look at WinSetState()

So long,

Mega

ok thanks ill try that


Thanks in advance

Share this post


Link to post
Share on other sites

HI,

maybe also have a look at the macros, too.

@DesktopHeight

Height of the desktop screen in pixels. (vertical resolution)

@DesktopWidth

Width of the desktop screen in pixels. (horizontal resolution)

This will help you to check for the correct desktop resolution.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

HI,

maybe also have a look at the macros, too.

@DesktopHeight

Height of the desktop screen in pixels. (vertical resolution)

@DesktopWidth

Width of the desktop screen in pixels. (horizontal resolution)

This will help you to check for the correct desktop resolution.

So long,

Mega

thanks it worked


Thanks in advance

Share this post


Link to post
Share on other sites

Wow this script is in dire need of a loop.

Instead of 8 pages of mouseclicks in the exact same location, use a For loop.

For $i = 1 to 166

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

Next

Share this post


Link to post
Share on other sites

Wow this script is in dire need of a loop.

Instead of 8 pages of mouseclicks in the exact same location, use a For loop.

For $i = 1 to 166

MouseClick($primary, 301, 330, 2)

MouseClick($primary, 652, 558, 2)

Next

yea thanks I found that out after I made it lol im new :)


Thanks in advance

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  
Followers 0