Jump to content

Recommended Posts

Posted

Hey guys,

I am very new to Auto It V3. I was hoping to create a script which would press Control Control G every 5 minutes. The left Control button that is.. So to make it clear it's :

Hit the Left Control twice

Then the button "G"

Posted (edited)

Hey guys,

I am very new to Auto It V3. I was hoping to create a script which would press Control Control G every 5 minutes. The left Control button that is.. So to make it clear it's :

Hit the Left Control twice

Then the button "G"

All need knowledge you goth in help of autoit...

Thats yours code:

While 1

Send("{LCTRL}{LCTRL}G")

Sleep(5*60*1000)

Wend

Exit

if it to fast do

While 1

Send("{LCTRL}")

Sleep(500)

Send("{LCTRL}")

Sleep(500)

Send("G")

Sleep(5*60*1000)

Wend

Exit

Edited by Uriziel01
Posted

All need knowledge you goth in help of autoit...

Thats yours code:

While 1

Send("{LCTRL}{LCTRL}G")

Sleep(5*60*1000)

Wend

Exit

if it to fast do

While 1

Send("{LCTRL}")

Sleep(500)

Send("{LCTRL}")

Sleep(500)

Send("G")

Sleep(5*60*1000)

Wend

Exit

Thanks alot!!

Posted

For future reference dommaz if you look in the help file index for "Send Key List" you will get all the send keys in autoit :)

You will notice you can also use "^" to send control. Therefore you can replace the {LCTRL} with simply ^. Thus your code becomes:

While 1
Send("^^G")
Sleep(300000) ;5minutes
Wend

Dave

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

Posted

Hi, or else :

AdlibEnable ( "gosend", 300000)

Func gosend()
Send("^^G")
endfunc

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

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
×
×
  • Create New...