Jump to content
Sign in to follow this  
nadah

how to make autoit to use a hotkey

Recommended Posts

nadah

I just want to press ALT+CTRL+DEL but it doesnt seem to be working when i try with Send() or ControlSend()

can anyone help ??

Share this post


Link to post
Share on other sites
nadah

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

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

Edited by nadah

Share this post


Link to post
Share on other sites
Jos

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

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

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
mistersquirrle

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

RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites
FaT3oYCG

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.

Share this post


Link to post
Share on other sites
mistersquirrle

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}")

RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites
Richard Robertson

That is kinda stupid. Just Run("taskmgr.exe").

Share this post


Link to post
Share on other sites
trancexx

That is kinda stupid. Just Run("taskmgr.exe").

I just started writting and saw this post.

Man, you are fast :mellow:


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
FaT3oYCG

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.

Share this post


Link to post
Share on other sites
trancexx

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

Your OS?

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
FaT3oYCG

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.

Share this post


Link to post
Share on other sites
trancexx

Windows XP Proffesional SP3

That is because you have very strange PID.

No, I'm kidding. :mellow:

Unless you get message out of taskmgr.exe saying that your administrator disbled it for you, your system is not acting as it should. You might check AV logs or whatever.


♡♡♡

.

eMyvnE

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  

×