Jump to content
Sign in to follow this  
Szefer

Questions and I guess simple help.

Recommended Posts

Szefer

Hello, I'am quite new to this. My requested help is regarding. If its possible to get the "commands" for mouse buttons that is uniqe for the mouse itself. Like 4-5 buttons on the mouse, they got no commands to get those to "Mousedown" or is it only the middle,left,right that exists?

And also, if there is any commands for the CTRL,ALT,SHIFT. Just like for HotKeySet("CTRL", "start") or something like that, because it isent working for me.

If this makes any sence please try helping me.

Thanks and bye.

Share this post


Link to post
Share on other sites
Authenticity

As for the first part of the question I believe it's the responsibility of the driver to post the correct task of the appropriate key, i.e, if you have 5 buttons and 2 are not standard they probably sending the same key-code like a valid mouse click button so if you have 2 other buttons for the thumb like up and down they probably sending same thing as left or right send or registering a mouse wheel up or down key-code.

About HotKeySet or Send functions read the help file because some combination just not allowed by system design of windows, CTRL can be bounded like HotKeySet('{CTRL}', 'Blah') or HotKeySet('^', 'Blah_')

Share this post


Link to post
Share on other sites
FireFox

@szefer

Little example with ctrl or alt :

#Include <IsPressed_UDF.au3>

While 1
Sleep(50)
If _IsOrKeyPressed('11|12') Then
Msgbox(64, '_IsOrKeyPressed', 'CTRL or ALT key pressed !')
EndIf
WEnd

For include udf see my signature :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

My bad, there is no such combination lol, Try to bind to LCTRL and RCTRL to achieve the CTRL thing... also ^ won't work either.

Edit: I give up, no such thing to register only ctrl as HotKey because it's always pressed first and unlike alt has special meaning.

Edited by Authenticity

Share this post


Link to post
Share on other sites
FireFox

@Authenticity

No combinaison ?

#Include <IsPressed_UDF.au3>

While 1
Sleep(50)
If _IsAndKeyPressed("11|1B") Then ; CTRL + ESC
MsgBox(64, '_IsAndKeyPressed', 'CTRL + ESC keys pressed !')
EndIf
WEnd

:)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

heh, no I meant that it's not a problem to check if ctrl key is press but hotkey'ing it and only itself won't work. It might be different case with alt though.

Share this post


Link to post
Share on other sites
FireFox

@Authenticity

HotKeySet("^{F12}", "_HotKey")

Func _HotKey()
MsgBox(64, 'HotKeySet', 'Keys pressed !')
EndFunc

While 1
Sleep(250)
WEnd

Work fine for me :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Szefer

So there is no way to get the CTRL or SHIFT button just, presst down to start out the script? all the questions are regarded to start the script, the mouse things also. I want to start it on SHIFT,CTRL or the unknown mouse buttons on the side. :/

But is there a way, please yes or no :) Because im not so good and dont understand everything.. ;p

Share this post


Link to post
Share on other sites
FireFox

@Szefer

#Include <Misc.au3>

While 1
sleep(50)
If _IsPressed('11') Then
MsgBox(64, '_IsPressed', 'CTRL key pressed !')
EndIf
WEnd

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Authenticity

So use _IsPress on CTRL, LCTRL or RCTRL to determine if the key was down or is down. The bad thing is that this kind of method will need to be within While...WEnd which keep invoking the key status (Strike your CPU if no sleep is specified) but still it's pretty OK for this task... =]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.