Guest Posted March 11, 2013 Posted March 11, 2013 Hello. i have a Remote control in the Remote control i have a button that Equal to the key combination: ctrl + alt + - so this is what i did: if _IsPressed(11, $hDLL) and _IsPressed(12, $hDLL) and _IsPressed(BD, $hDLL) then <Do something> endif the code is working when i pres ctrl + alt + -. but when i pres on that button in the Remote control so it is not working.. what i did worng?
FireFox Posted March 11, 2013 Posted March 11, 2013 (edited) @gil900 Certainly because the keys sent by the remote control are not capturable by the _IsPressed function. And if it's the case I don't see how you can do it. Br, FireFox. Edited March 11, 2013 by FireFox
FireFox Posted March 11, 2013 Posted March 11, 2013 Does it work with the HotKeySet / _HotKeyAssign functions ?
Guest Posted March 11, 2013 Posted March 11, 2013 hotkeyset not working with HotKeySet("{LALT}", "test") or HotKeySet("{ALT}", "test") and i don't found the _HotKeyAssign functions in the UDFs for test it..
FireFox Posted March 11, 2013 Posted March 11, 2013 and i don't found the _HotKeyAssign functions in the UDFs for test it..A simple search would bring you
BrewManNH Posted March 11, 2013 Posted March 11, 2013 You can't use just the alt key as a hot key, that's in the help file. Shift/Alt/Ctrl are modifier keys that can't be used by themself. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator
Guest Posted March 11, 2013 Posted March 11, 2013 I wrote an entire script and at the end I can not use it? ... I thought it was a small problem
JohnOne Posted March 11, 2013 Posted March 11, 2013 Then look for a way to detect what is sent by remote control, there must be some device which receives its signal. might even just be comm. AutoIt Absolute Beginners  Require a serial  Pause Script  Video Tutorials by Morthawt  ipify Monkey's are, like, natures humans.
Guest Posted March 11, 2013 Posted March 11, 2013 (edited) Then look for a way to detect what is sent by remote control, there must be some device which receives its signal.might even just be comm.windows detect it as ctrl + alt + -Maybe something like hotkey.dll can help me?I'm just guessing Edited March 11, 2013 by Guest
Guest Posted March 11, 2013 Posted March 11, 2013 Maybe this: http://www.softlookup.com/display.asp?id=7269 ?
JohnOne Posted March 11, 2013 Posted March 11, 2013 Sure. here you go http://www.autoitscript.com/wiki/FAQ#When_should_I_bump_my_threads.3F FireFox 1 AutoIt Absolute Beginners  Require a serial  Pause Script  Video Tutorials by Morthawt  ipify Monkey's are, like, natures humans.
FireFox Posted March 12, 2013 Posted March 12, 2013 (edited) Let's be kind, I will try to help one more time. As JohnOne said, there is a way to detect the signal as the application does; I would bet this is a tcp connection through a WiFi. If that's true, you will need to use the Winpcap library to capture those packets. Br, FireFox. Edited March 12, 2013 by FireFox
Guest Posted March 12, 2013 Posted March 12, 2013 (edited) I had a mistake.the key is not ctrl + alt + -.windows just add the ctrl+alt...but when i prees the key in area I can write so i get only -so the key is - .the volume down key = -the volume up key = +the function detects it!!but i have i problem.i don't whant that it will Activated in areas that I can write in them.These key is like typing a Letters.It's not even a key combination. just like Letters (in my case, the Letters are "-"/"+") Edited March 12, 2013 by Guest
careca Posted March 12, 2013 Posted March 12, 2013 Your language is a bit confusing to me, but from what i understand you don't want to have a normal key, you use to write stuff, to be attached to the volume control...yeah? :S I think you could change the script, the bit with _IsPressed(XX, $hDLL) to, pageup and pagedown, then have the remote to press pgup and pgdn. Who uses these keys anyway? lol Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
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