haXor4life 0 Posted August 2, 2011 It sends only g, help. Share this post Link to post Share on other sites
haXor4life 0 Posted August 2, 2011 Sleep(2000) Send("{CTRLDOWN}") Sleep(100) Send("g") Sleep(100) didn't work Share this post Link to post Share on other sites
haXor4life 0 Posted August 2, 2011 Sleep(2000) Send("{^ down}") Send("{g down}") didn't work Share this post Link to post Share on other sites
PowerCat 0 Posted August 2, 2011 this works for me: HotKeySet("^g","sendkey") while 1 sleep(2000) send("^g") WEnd func sendkey() msgbox(0,"","ctrl+g sent", 1) EndFunc Share this post Link to post Share on other sites
haXor4life 0 Posted August 2, 2011 (edited) this works for me: HotKeySet("^g","sendkey") while 1 sleep(2000) send("^g") WEnd func sendkey() msgbox(0,"","ctrl+g sent", 1) EndFunc Doesn't for me. Oh AutoIt, why are you so sucky? Edit: it sends g every 2 seconds by the way Edited August 2, 2011 by haXor4life Share this post Link to post Share on other sites
haXor4life 0 Posted August 2, 2011 Sleep(2000) Send("{LCTRL down}") Send("{g down}") Sleep(500) Send("{g up}") Send("{LCTRL up}") This worked strangely, doesn't send ctrl+g or g but after script ends it keeps control pressed. Share this post Link to post Share on other sites
haXor4life 0 Posted August 2, 2011 SendKeyDownDelay and WinActivate don't help either. Share this post Link to post Share on other sites
SmOke_N 211 Posted August 2, 2011 Ok, I think we're done with ya. 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. Share this post Link to post Share on other sites