Sign in to follow this  
Followers 0
Xephon

Simple Problem, Someone please help.

4 posts in this topic

#1 ·  Posted (edited)

I need an autoit script that does these simple things.

Holds "Ctrl" for 3 minutes

Release Ctrl

Holds "Shift" For 5 Seconds

Release Shift

And Infinite Repeats.

If anyone have some time, can you please write down the commands for this. Thankyou very much.

Edited by Xephon

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Global $Paused

HotKeySet("{INSERT}", "Trigger")

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

HotKeySet("{END}", "END")

While 1

Sleep(100)

WEnd

//////////////////////////////////////////////////////////////

Func Trigger ()

While 1 Everythings working fine except this area. I wanted "b" to be held down for

Send ("{b down}") 3 minutes then released.....

Sleep (180000) After "b" is realeased, I want "n" to be held down for 5 seconds and then

Send ("{b up}") released. after that the process repeats until i hit "pause".

Sleep (1000) how can i get this reapeating?

Send ("{n down}") Can someone edit the script to work correctly, thankyou.

Sleep (5000)

Send ("{n up}")

Sleep (1000)

WEnd

Exit

EndFunc ;==>_Func

/////////////////////////////////////////////////////////////////

Func TogglePause()

$Paused = NOT $Paused

Send ("{b up}")

Send ("{n up}")

While $Paused

sleep(100)

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

WEnd

ToolTip("")

EndFunc

Func END ()

Send ("{b up}")

Send ("{n up}")

Exit

EndFunc

Edited by Xephon

Share this post


Link to post
Share on other sites

Sleep uses milliseconds

1000 milliseconds = 1 second, so 60000, would = 1 minute thus Sleep(180000) = approximately 3 minutes.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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