haXor4life Posted August 2, 2011 Share Posted August 2, 2011 It sends only g, help. Link to comment Share on other sites More sharing options...
haXor4life Posted August 2, 2011 Author Share Posted August 2, 2011 Sleep(2000) Send("{CTRLDOWN}") Sleep(100) Send("g") Sleep(100) didn't work Link to comment Share on other sites More sharing options...
haXor4life Posted August 2, 2011 Author Share Posted August 2, 2011 Sleep(2000) Send("{^ down}") Send("{g down}") didn't work Link to comment Share on other sites More sharing options...
PowerCat Posted August 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
haXor4life Posted August 2, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
haXor4life Posted August 2, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
haXor4life Posted August 2, 2011 Author Share Posted August 2, 2011 SendKeyDownDelay and WinActivate don't help either. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 2, 2011 Moderators Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts