Jump to content
alminago

how to add hotkeys on my script

Recommended Posts

alminago

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
alminago
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
KickStarter15

@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.

Share this post


Link to post
Share on other sites
spudw2k
Jos

@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                                How to post scriptsource        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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.