Sign in to follow this  
Followers 0
Nbanonimous

Does AutoIt have an IsPressed Function?

36 posts in this topic




I don't know, does it? :)

Share this post


Link to post
Share on other sites

April Fools day isn't for almost a week. Its in the help file under UDF's / Misc...

Share this post


Link to post
Share on other sites

I wonder... _IsPressed() maybe?

Or Maybe HotKeySet()?

Are those functions?

Share this post


Link to post
Share on other sites

mhmm..

in my help file is a command called:

IsPressed()

I wonder what it is for... :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

i typed in IsPressed in the help file

and nothing came up

maybe i forgot the ()

i actually checked the help file this time

i cant find it?

Edited by Nblufire12

Share this post


Link to post
Share on other sites

Type:

_IsPressed

And...boom

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

in the script editor?

edit

nvm got it

how do you work that stuff?

like i want it to check if Control is pressed

and if it is.. then execute something

Edited by Nblufire12

Share this post


Link to post
Share on other sites

You have to include the UDF that _IsPressed is contained in. If you search for _IsPressed in the help file, you will find all the details you need.

Share this post


Link to post
Share on other sites

in the script editor?

edit

nvm got it

how do you work that stuff?

like i want it to check if Control is pressed

and if it is.. then execute something

HotKeySet works just fine for this.

Share this post


Link to post
Share on other sites

HotKeySet takes over everything... _IsPressed() doesn't :)

Share this post


Link to post
Share on other sites

how would u work it

heres my situation

in my lab

theres this kid that comes around and sneakily hits control alt delete + enter + enter

which logs me out... while im working

and i wanted to make a script that as soon as Control is hit

it does something to stop it...

Share this post


Link to post
Share on other sites

how would u work it

heres my situation

in my lab

theres this kid that comes around and sneakily hits control alt delete + enter + enter

which logs me out... while im working

and i wanted to make a script that as soon as Control is hit

it does something to stop it...

Ctrl + Alt + Delete is reserved, even when you use BlockInput() this command is allowed.

Share this post


Link to post
Share on other sites

how would u work it

heres my situation

in my lab

theres this kid that comes around and sneakily hits control alt delete + enter + enter

which logs me out... while im working

and i wanted to make a script that as soon as Control is hit

it does something to stop it...

I would rig an innocuous thread to the key... tie the other end to an industrial flamethrower...

He'll only do it 1 more time.....


Everseeker

Share this post


Link to post
Share on other sites

im a freshman

hes a junior

hes black

im asian...

u kidding?!!?!

WTF are you talking about?

Share this post


Link to post
Share on other sites

im a freshman

hes a junior

hes black

im asian...

u kidding?!!?!

it does not matter WHAT color he is (or you are)

Flame throwers are equal opportunity immolators (Yup, spellchecked that :))


Everseeker

Share this post


Link to post
Share on other sites

All I have to say at this is LOL :)

In any case, why not just lock the computer when you're away from it?

Share this post


Link to post
Share on other sites

A-hem... where was I

is this done WHILE you are at the keyboard, or when you get up to get something?

If it happens WHILE you are at the computer... I don't know... perhaps bring your own keyboard with you... Mod the thing to make it hard to get to the Alt key (or just glue them "up"....)

If it happens when you're away, you could always use "Winflag"-L to lock the thing


Everseeker

Share this post


Link to post
Share on other sites

Mod the thing to make it hard to get to the Alt key

for example... glue a thumb-tack to the alt keys... you pay attention, you're ok... you reach over and hit Alt->>>>>Yeouch<<<<<

What's he gonna do? it's YOUR property he was touching...

I wonder... keyboard remapping software.... you could try to re-map the control keys.... (or the alt keys)


Everseeker

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