Sign in to follow this  
Followers 0
haXor4life

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

8 posts in this topic

It sends only g, help.

Share this post


Link to post
Share on other sites



Sleep(2000)

Send("{CTRLDOWN}")

Sleep(100)

Send("g")

Sleep(100)

didn't work

Share this post


Link to post
Share on other sites

Sleep(2000)

Send("{^ down}")

Send("{g down}")

didn't work

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by haXor4life

Share this post


Link to post
Share on other sites

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

SendKeyDownDelay and WinActivate don't help either.

Share this post


Link to post
Share on other sites

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  
Followers 0