Jump to content
Sign in to follow this  
haXor4life

Simplest Send("^g") doesn't work

Recommended Posts

haXor4life

Sleep(2000)

Send("{CTRLDOWN}")

Sleep(100)

Send("g")

Sleep(100)

didn't work

Share this post


Link to post
Share on other sites
haXor4life

Sleep(2000)

Send("{^ down}")

Send("{g down}")

didn't work

Share this post


Link to post
Share on other sites
haXor4life

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 by haXor4life

Share this post


Link to post
Share on other sites
haXor4life

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

SendKeyDownDelay and WinActivate don't help either.

Share this post


Link to post
Share on other sites
SmOke_N

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
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.