Jump to content

Recommended Posts

Posted (edited)

can anyone help mi with this? i was trying to do a hotkey combo Home+End+PageUp+PageDown+Pause , i did it this way HotKeySet("{Home}{End}{PgUp}{PgDn}{Pause}","EXITSCRIPT") but the script exits once i pressed one of any of the buttons.... how do u make it so that the script will only exit when all of the buttons are pressed?

Add On TO New Topic: ok i am wondering whether if i can make a script run as a windows service... i mean in the task manager u can see that the script's .exe file is run by local service and not by ur own name.... is there any way?

Edited by autoitnerd
Posted (edited)

You can not use hotkeyset like that unless you use the !#^ characters but this should help:

#Include <Misc.au3>

while 1

if _IsPressed(21) and _IsPressed(22) and _IsPressed(24) and _IsPressed(23) then MsgBox(0,"","")

sleep(100)

WEnd

I took the pause out....

Edited by flip209

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Posted (edited)

The following hotkeys cannot be set:

any combos of two or more "base keys" such as '{F1}{F2}', and any keys of the form '{LALT}' or '{ALTDOWN}'.

I believe those are base keys but i'm not totally sure.

Edit- Yeah Flip got it posted at same time

Edited by Muchuchu
Posted

It happens to me all the time, but you know I just have to put my two cents in...

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Posted

oh ok so you can't set them to those keys eh? thanks a lot :D so can u tell mi where cna u find the list of modifier hotkeys? i mean control+alt+something else...

Posted

You can use those key just not all at the same time. Well at least not that I have seen yet. Also, The ^+!# are defined in the help file...

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Posted

You can use your key if you use the _ispressed function, like I posted above...

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Posted

Can you post the function?

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Posted

for example i use a script like this:

While 1

If ProcessExists("notepad.exe") Then

ProcessClose("notepad.exe")

EndIf

WEnd

it will take up 50% of my computer usage... how do u solve this?

Posted

oh ok thanks a lot! :D i dun wan to spam lots of threads so i will jsut ask some more questions in this thread... how do u check the string that is entered? for example i wnana set the password function, and i use this: If $password = "pass" Then ...

but it turned out that if i type it in big casing it also recgonise it as the correct password... how do u solve this then?

Posted

MsgBox(0, '"HI" = "hi"', "HI" = "hi")
MsgBox(0, '"HI" == "hi"', "HI" == "hi")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

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
×
×
  • Create New...