Jump to content

how to make autoit to use a hotkey


nadah
 Share

Recommended Posts

  • Developers

windows does not allow any of the Hotkeys simulation ?? thas sad :-(

This statement is valid for Ctrl+Alt+Delete, not for Hotkeys in general.

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

From the AutoIt help file:

Example of how to pause a script

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")


Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Look through the help file for more information and for more key stroke information.

Edited by mistersquirrle

We ought not to misbehave, but we should look as though we could.

Link to comment
Share on other sites

i think he specifically wanted to open the taskmanager by sending the key combination not setting it as a hotkey, althou you say ctrl + alt + del wont work, on my windows ctrl + shift + esc opens the taskmanager aswell.

Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

Link to comment
Share on other sites

i actually wanna do a ALT+CTRL+SHIFT+F5

I just tried making a script to send that command, but task manager doesn't start. normally it does but I don't think you can launch task manager using send

you could do

Send("#r")
    WinWaitActive("Run")
    Send("taskmgr.exe{Enter}")

We ought not to misbehave, but we should look as though we could.

Link to comment
Share on other sites

well maybe you should test before you say as that does not work i tried it before and just now aswell.

Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

Link to comment
Share on other sites

Windows XP Proffesional SP3

Edited by FaT3oYCG

Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

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