Jump to content

Recommended Posts

Posted

I need help making a script to do the following

I need a mouse click make it any position on the screen I can put in my own numbers where the X and Y access of the screen

if I can just get a script to click some place on the screen

then tell it to do a keyboard move of Pressing Control Shift and Delete to erase the cookies on Mozilla Firefox

then I need to to repeate the Click every 2 seconds..

I doing a voting deal I need to figure this out so I don't have to sit there and Do Control shift Delete and then mouse click every 2 seconds

I want it to run indefinatly until I press Escape..

I've Done this Before but someone else has set up the script so PLEASE someone Help me

Big Jeff

Posted

I need help making a script to do the following

I need a mouse click make it any position on the screen I can put in my own numbers where the X and Y access of the screen

if I can just get a script to click some place on the screen

then tell it to do a keyboard move of Pressing Control Shift and Delete to erase the cookies on Mozilla Firefox

then I need to to repeate the Click every 2 seconds..

I doing a voting deal I need to figure this out so I don't have to sit there and Do Control shift Delete and then mouse click every 2 seconds

I want it to run indefinatly until I press Escape..

I've Done this Before but someone else has set up the script so PLEASE someone Help me

Big Jeff

Mouse Clicking

Key Pressing

Time Waiting

Hotkey Setting

Posted (edited)

You would probably get help much more quickly if you posted something that you had tried to make using the help files. Than if you just show up and ask for a script. Most people get offended if you just show up 'begging'. Having said that, I am no great coder with Autoit by any means. And it took me all of about 5 minutes to create a script that does this.

Edit: Spelling

Edited by Wolffe
Posted

You would probably get help much more quickly if you posted something that you had tried to make using the help files. Thank if you just show up and ask for a script. Most people get offended if you just show up 'begging'. Having said that, I am no great coder with Autoit by any means. And it took me all of about 5 minutes to create a script that does this.

I've Done this Before but someone else has set up the script

obviously Wolffe is correct, the first person didn't really help you learn anything

8)

NEWHeader1.png

Posted

Well Wolfe this is what I tried

MouseClick ( "left" 483,393 )

send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] )

Sleep(5000) ;five seconds

repeate

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

Posted

Well Wolfe this is what I tried

MouseClick ( "left" 483,393 )

send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] )

Sleep(5000) ;five seconds

repeate

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

that didn't work i have No Idea

Posted (edited)

Well Wolfe this is what I tried

MouseClick ( "left" 483,393 )

send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] )

Sleep(5000) ;five seconds

repeate

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

You weren't too horrible, but i think more can be done if you were to look at the EXAMPLES on the bottom of each page help file

Just a tip, Try "Loops" instead of the "word" "repeate"

Edited by Paulie
Posted

that didn't work i have No Idea

MouseClick ( "left" 483,393 )

send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] )

Sleep(5000) ;five seconds

repeate

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

I just wanted you to attempt before I gave actual code to you, sorry.

You're mostly just screwed up on syntax, but also some fundamentals. Here is more what you would want:

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

While 1
     MouseClick("left",483,393)
     send("^+{DEL}")
     sleep(5000)
WEnd

func quitprog()
     Exit
EndFunc

The while loop runs forever, and is killed when you use your hotkey (esc) since it will then execute quitprog(). For the send command, the ^+{DEL} is a shorthand way of saying "press CONTROL+SHIFT+DELETE".

Posted

I just wanted you to attempt before I gave actual code to you, sorry.

You're mostly just screwed up on syntax, but also some fundamentals. Here is more what you would want:

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

While 1
     MouseClick("left",483,393)
     send("^+{DEL}")
     sleep(5000)
WEnd

func quitprog()
     Exit
EndFunc

The while loop runs forever, and is killed when you use your hotkey (esc) since it will then execute quitprog(). For the send command, the ^+{DEL} is a shorthand way of saying "press CONTROL+SHIFT+DELETE".

THANK YOU

Posted (edited)

THANK YOU

or this is a little more complicated but it can be used easier....

HotKeySet("{esc}","end")
HotKeySet("`","ss")
While 1
    Sleep(100)
    $m = MouseGetPos()
    ToolTip($m[0]&","&$m[1],$m[0] + 20,$m[1] + 20)
WEnd
Func ss()
    $m = MouseGetPos()
    While 1
    MouseClick("left",$m[0],$m[1])
    Send("{CTRLDOWN}" & "{shiftdown}" & "{del}" & "{ctrlup}" & "{shiftup}")
    Sleep(5000)
    WEnd
EndFunc
Func end()
    Exit
EndFunc
Edited by vintorecavaj

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