Sign in to follow this  
Followers 0
Abaddon

Hot Key Start

10 posts in this topic

Is there any way that I can set a hot key to start my script? That would save alot of time thank you. :P

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have a look at this and see if you get any ideas from it.

Posted Image

autoitscript.com/autoit3/docs/f...s/HotKeySet.htm

Edited by Googler24022

Share this post


Link to post
Share on other sites

I might be interpreting this wrong.

You can make a shortcut of your script.

Right click>Properties

Then make a shortcut key (will be Ctrl Alt {your key here})

Press that combination to start your script

*Note, If your default double click action is edit this will edit it.

Also if you use scite, Alt F5 runs the script


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Sorry, all I got from that was how to end a script via hot key. I am a noob, I was just looking for a simple thing like,

ctr+alt+s to start the script.

Oh and dethredic Im sorry i wasn't more specific. Here is what I want.

To start the script and enter the game.

Then when they want the script to start running press a key. Thanks

Edited by Abaddon

Share this post


Link to post
Share on other sites

you misunderstood me

You can make a shortcut of your script.

Right click>Properties

Then make a shortcut key ex Ctrl Alt S

When you press Ctrl Alt S, it will run the script


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

Read the editied post^^^^^^^^^^^

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

EDIT: Just read your edit. HotKeySet is what you are looking for.

Example just for informational purposes:

;set the hotkey
HotKeySet("{Enter}", "Start")

;activate the game window
WinActivate("Title of window")

;wait for the hotkey to be pressed
While 1
    Sleep(100)
WEnd

;take this action when the hotkey is pressed
Func Start()
    MouseMove(500, 500, 2)
EndFunc

Something similar to this should do what you are looking for.

Edited by dandymcgee

- Dan [Website]

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Sorry i posted before your edit was done***

Well you could make the script open with my hotkey suggestion (in shortcut properties).

The script then runs the program, and then waits for another set of hotkeys (this would be in script), before it starts

Edited by Dethredic

"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

If you don't want your script to be running, there obviously is no way for it to interpret the hotkey.

So the only way to do what i think you are asking (Correct me If I'm Wrong) is to have 2 scripts. one containing something like this,

HotkeySet("{HOME}", "Go")

While 1
Sleep(3000)
WEnd

Func go()
 Run("*Your Script*"); see run helpfile for proper syntax
EndFunc

and then have your script in a separate file.

Edited by Paulie

Share this post


Link to post
Share on other sites

Thanks guys. I just needed a hot key because I am going to be distributing this over the net and didn't want people to have to set shorcuts :P

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