Jump to content

how to add hotkeys on my script


alminago
 Share

Recommended Posts

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

Link to comment
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)

Link to comment
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

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Link to comment
Share on other sites

  • Developers

@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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...