patys Posted August 11, 2009 Share Posted August 11, 2009 Hello, sorry for my bad English but I'm Polish : ). I have problem i want do hotkey. Example: I press F3 and then send("adress(enter)"). How i can write this. Link to comment Share on other sites More sharing options...
colafrysen Posted August 11, 2009 Share Posted August 11, 2009 Hello, sorry for my bad English but I'm Polish : ). I have problem i want do hotkey. Example: I press F3 and then send("adress(enter)"). How i can write this. HotKeySet second parameter is a function name, this means that you will have to create a function that contains the action that you want. for example HotKeySet("{F3}","_SendFunc") Func _SendFunc() Send ("Adress") Send ("{Enter}") EndFunc [font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size] Link to comment Share on other sites More sharing options...
patys Posted August 11, 2009 Author Share Posted August 11, 2009 HotKeySet("{F3}","_SendFunc") ^^ How i can use it. I want press F3 and then run example: google.com ? I must do name for function? Link to comment Share on other sites More sharing options...
eHash Posted August 11, 2009 Share Posted August 11, 2009 Not the best code ever written but you get the idea: Local $Out = 0 Do HotKeySet("{F3}","_SendFunc") Until $Out = 1 Func _SendFunc() ShellExecute("Iexplore", "www.yahoo.com") $Out = 1 EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now