Sign in to follow this  
Followers 0
MajSlayer420

Program is not pressing ALT-F1 correctly. Why?

5 posts in this topic

Okay I've been trying to get this program to do an ALT-F1 keypress. I've looked at help and have tried !{F10} but it doesnt work.. this code works like 90% of the time, when it fails it usualy presses F1 not ALT-F1. Heres my code.

Send("{ALTDOWN}")

sleep(100)

Send("{F1}")

sleep(100)

Send("{ALTUP}")

sleep(100)

Let me know thanks y'all

MajSlayer420

Share this post


Link to post
Share on other sites



To my surprise that it runs very well here just as ----->Send("!{F1}")

Share this post


Link to post
Share on other sites

Okay I think I got it working, I increased the sleep times to 500 so more simulate the human touch, seems to have worked. Seems its a problem with the program im scripting.

Thanks

MajSlayer420

Share this post


Link to post
Share on other sites

Okay I think I got it working, I increased the sleep times to 500 so more simulate the human touch, seems to have worked. Seems its a problem with the program im scripting.

Thanks

MajSlayer420

O.K., why don't you use Send("!{F1}"), as everybody else?


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

To OP ! = press ALT-key so !{F1} will produce a Alt+F1 :)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0