haXor4life Posted August 2, 2011 Author Posted August 2, 2011 Sleep(2000) Send("{CTRLDOWN}") Sleep(100) Send("g") Sleep(100) didn't work
haXor4life Posted August 2, 2011 Author Posted August 2, 2011 Sleep(2000) Send("{^ down}") Send("{g down}") didn't work
PowerCat Posted August 2, 2011 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
haXor4life Posted August 2, 2011 Author 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
haXor4life Posted August 2, 2011 Author 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.
haXor4life Posted August 2, 2011 Author Posted August 2, 2011 SendKeyDownDelay and WinActivate don't help either.
Moderators SmOke_N Posted August 2, 2011 Moderators 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.
Recommended Posts