alminago

how to add hotkeys on my script

5 posts in this topic

Hello 

i wanna know how if posible to add hotkeys on my script and "F1" and run the scriopt once.

but i want script to be there not disappear like you can see on picutres, so when i press f1 again to rune the script hope someone will help me i really need hope my english is not to bad,THANKS AUTOIT.

Capture.PNG

Share this post


Link to post
Share on other sites



Just now, alminago said:

Hello 

i wanna know how if posible to add hotkeys on my script and "F1" and run the scriopt once.

but i want script to be there not disappear like you can see on picutres, so when i press f1 again to rune the script hope someone will help me i really need hope my english is not to bad,THANKS AUTOIT.

Capture.PNG

sorry my script is

$Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D)
If IsArray($Variable) = True Then
  MouseClick("Right", $Variable [0], $Variable [1], 1)
  Else

$Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D)
If IsArray($Variable) = True Then
  MouseClick("Right", $Variable [0], $Variable [1], 1)
  Else

$Variable = PixelSearch(0, 0, 501, 435, 0x0D0D0D)
If IsArray($Variable) = True Then
  MouseClick("Right", $Variable [0], $Variable [1], 1)
  Else

Send (escape)

Share this post


Link to post
Share on other sites

@alminago, You can check with the help file for HotKeySet() and Send() functions. Also, Send(escape) won't work, it should be Send("{ESC}"). Anyways, what are you up to for PixelSearch()?^_^

 

KS15

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

@alminago, Please read the forumrules about sending PM's soliciting for help:

Quote

5. Do not PM other users asking for support - that is why the forum exists, so post there instead.

EDIT: and while reading also read point 6. carefully as that seem another one that applies to you!

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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