iconz Posted July 1, 2005 Share Posted July 1, 2005 hey can sum1 help me? i want to make a prog which can auto press f8 every 1 second.. Im Really NEW to this so i need as much help i dunno howto script or anythin i jus dloaded program and all i want it to do is press f8 every second! please help Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 1, 2005 Share Posted July 1, 2005 you can use the Sleep command as well as the send commands. you will prolly want to use winactivate as well.http://www.autoitscript.com/autoit3/docs/functions.htm Link to comment Share on other sites More sharing options...
Valuater Posted July 1, 2005 Share Posted July 1, 2005 (edited) try this #include <GuiConstants.au3> Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") call("TogglePause") While 1 Send("{F8}") sleep(1000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc press "Pause" to start sending Press "Pause" to Pause the script Press "Esc" to exit the script 8) Edited July 1, 2005 by Valuater Link to comment Share on other sites More sharing options...
iconz Posted July 1, 2005 Author Share Posted July 1, 2005 thank you very much Link to comment Share on other sites More sharing options...
Valuater Posted July 1, 2005 Share Posted July 1, 2005 Your Welcome, ( its nice when people like you ask for help... get help... and the say thanks.. many Don't) 8) Link to comment Share on other sites More sharing options...
iconz Posted July 1, 2005 Author Share Posted July 1, 2005 oh i dont have pause on my laptop Link to comment Share on other sites More sharing options...
Valuater Posted July 1, 2005 Share Posted July 1, 2005 just change HotKeySet("{PAUSE}", "TogglePause") to HotKeySet("{F1}", "TogglePause") or something else f..... what ever you want 8) Link to comment Share on other sites More sharing options...
iconz Posted July 1, 2005 Author Share Posted July 1, 2005 oh and script unfortuanlly doesnt work =( Link to comment Share on other sites More sharing options...
Valuater Posted July 1, 2005 Share Posted July 1, 2005 (edited) maybe you can compile into an exe file test it then put the exe on your laptop 8) Edited July 1, 2005 by Valuater Link to comment Share on other sites More sharing options...
iconz Posted July 1, 2005 Author Share Posted July 1, 2005 (edited) hmm aright well i tried it and it works for everything else but when i put as f8 it wont skip my turn(pressing f8 will skip turn for game) so i dunno wat to do hmmm but works fine except f8 dun work for the game =/ when i press f8 my self it will skip turn but when i let the autoit on it wont work maybe it doesnt work on games? hmm how can u make this so it works on like games where when it turns on it will still work Edited July 1, 2005 by iconz Link to comment Share on other sites More sharing options...
Valuater Posted July 2, 2005 Share Posted July 2, 2005 Laptops are different in some respects, I suggest you start a new post.. and put in "latop problem with send F8 key" There are some guys here with more experience on laptops.... sorry I can't help here good luck 8) 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