Jump to content

Remote control not working with _IsPressed(...) and _IsPressed(...) ....


Guest
 Share

Recommended Posts

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?

Link to comment
Share on other sites

@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 by FireFox
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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 Gude
How 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

Link to comment
Share on other sites

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 by Guest
Link to comment
Share on other sites

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 by FireFox
Link to comment
Share on other sites

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 by Guest
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...