dommaz Posted May 21, 2007 Share Posted May 21, 2007 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" Link to comment Share on other sites More sharing options...
Uriziel01 Posted May 21, 2007 Share Posted May 21, 2007 (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 1Send("{LCTRL}{LCTRL}G")Sleep(5*60*1000)WendExitif it to fast doWhile 1Send("{LCTRL}")Sleep(500)Send("{LCTRL}")Sleep(500)Send("G")Sleep(5*60*1000)WendExit Edited May 21, 2007 by Uriziel01 Link to comment Share on other sites More sharing options...
dommaz Posted May 21, 2007 Author Share Posted May 21, 2007 All need knowledge you goth in help of autoit...Thats yours code:While 1Send("{LCTRL}{LCTRL}G")Sleep(5*60*1000)WendExitif it to fast doWhile 1Send("{LCTRL}")Sleep(500)Send("{LCTRL}")Sleep(500)Send("G")Sleep(5*60*1000)WendExitThanks alot!! Link to comment Share on other sites More sharing options...
Davo Posted May 21, 2007 Share Posted May 21, 2007 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!!! Link to comment Share on other sites More sharing options...
November Posted May 21, 2007 Share Posted May 21, 2007 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now