shanet Posted December 15, 2010 Share Posted December 15, 2010 Hey forum, I am wondering how you would achieve _IsPressed detecting key combinations such as ctrl+shift+x or similar? Thanks, shanet [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm Link to comment Share on other sites More sharing options...
iamtheky Posted December 15, 2010 Share Posted December 15, 2010 (edited) #Include <Misc.au3> While 1 If _ispressed (11) and _ispressed (10) and _ispressed (58) Then msgbox (0 , '' , "you pressed ctrl shift x") exit Endif Wend sure, or this for hotkeyset while 1 HotKeySet ("+^x" , "_msg") wend Func _Msg () msgbox (0 , '' , "you pressed ctrl shift x") EndFunc Edited December 15, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
shanet Posted December 15, 2010 Author Share Posted December 15, 2010 Should I use the hotkeyset function instead? The only problem with that is I would then have to do all possible combinations for left ctrl and right ctrl, and shift. [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 15, 2010 Share Posted December 15, 2010 HotKeySet and _IsPressed are not the same thing. Decide on the functionality you want and then take the corresponding function._IsPressed= The keys get send through to whateverHotKeySet= No keysJust test and you'll see.The only problem with that is I would then have to do all possible combinations for left ctrl and right ctrl, and shift.I don't see any problem. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now