| Author |
Message |
Forum: Scripts Topic: Change volume, window, or tab with only mouse buttons/scroll |
| bigboehmboy |
|
Posted: January 7th, 2010, 6:48 am
|
|
Replies: 6 Views: 2268
|
| I just got a Kensington Orbit Trackball with Scroll Ring and was hoping to do more with the scroll ring than just scroll pages, so wrote an AHK script. The script has 3 modes: 1:VOLUME (adjust windows volume) 2:WINDOW (switch windows in vista using windowskey + tab) 3:TAB (switch tabs in firefox/pid... |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 7:38 pm
|
|
Replies: 9 Views: 362
|
tonne wrote: Maybe the initial assignment are after the auto-execute section?
This is almost definitely it; I'll check as soon as I get home. Thanks! |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 7:36 pm
|
|
Replies: 9 Views: 362
|
tonne wrote: Maybe the initial assignment are after the auto-execute section?
This is almost definitely it; I'll check as soon as I get home. Thanks! |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 7:35 pm
|
|
Replies: 9 Views: 362
|
tonne wrote: Maybe the initial assignment are after the auto-execute section?
This is almost definitely it; I'll check as soon as I get home. Thanks! |
|
 |
Forum: Scripts Topic: Very Small AHK Editing Macro |
| bigboehmboy |
|
Posted: January 6th, 2010, 7:32 pm
|
|
Replies: 2 Views: 1514
|
|
 |
Forum: Scripts Topic: Very Small AHK Editing Macro |
| bigboehmboy |
|
Posted: January 6th, 2010, 3:34 pm
|
|
Replies: 2 Views: 1514
|
| I'm sure many of you already have some sort of macro like this, but I thought I'd share anyway. It definitely comes in handy when editing AHK scripts. The script does 1 of 3 things: If the window in focus is the AHK script (in a text editor): Save the script and reload AHK Else, If the AHK script is... |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 3:22 pm
|
|
Replies: 9 Views: 362
|
| Did you solve your problem? It isn't clear to me _what_ problem your example shows. I found a work-around, but it still doesn't work as expected. Basically, at the top of the script, I have some variables defined, like myvar=1 but later when I check the value inside the code for a macro with someth... |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 3:49 am
|
|
Replies: 9 Views: 362
|
| so it turns out they have no starting value, but once assigned in a hotkey, the assignment holds. I've modified my program logic to make sure they're assigned to their defaults at the necessary time, but am probably missing a better way to handle this. |
|
 |
Forum: Support Topic: Code in hotkey definition not seeing "global" vari |
| bigboehmboy |
|
Posted: January 6th, 2010, 3:02 am
|
|
Replies: 9 Views: 362
|
| Here's a simplified example to replicate the problem I'm having: testvar:=0 ^t:: ;testvar:=0 MsgBox testvar: %testvar% return Uncommenting the inner assignment makes this work. I know if this were a function, I'd declare "global testvar" inside the function to make it work, but I'm not sur... |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 1:51 am
|
|
Replies: 5 Views: 356
|
| Never mind, this disables right click. for now I just increased the max number of hotkeys per interval. I was hoping to be able to turn the wheeldown hokey on and off with something like: WheelDown:: MsgBox testing return *RButton:: SetKeyDelay -1 ; If the destination key is a mouse button, SetMouse... |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 1:39 am
|
|
Replies: 5 Views: 356
|
Whoops, just found the very trivial way to do this:
Code: RButton & WheelDown:: SendInput a return |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 1:34 am
|
|
Replies: 5 Views: 356
|
| This works, but means that rapid scrolling causes the hotkey to be fired many times, somtimes going above the MaxHotKeyPerInterval limit. I could change the limit, but I'm looking for a better way. perhaps have a hotkey for right mouse button as well... |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 1:31 am
|
|
Replies: 5 Views: 356
|
Actually, got it working with this:
Code: WheelDown:: if (not GetKeyState("RButton")){ Send {Blind}{WheelDown} } else { MsgBox testing } return |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 1:05 am
|
|
Replies: 5 Views: 356
|
I just had an idea, but it's a bit hackish and may not work.
RDown=0
RButton::
RDown=1
KeyWait RButton
RDown=0
return
WheelDown::
if(RDown==1)
MsgBox "testing"
return |
|
 |
Forum: Support Topic: Detect right mouse button down + scrolldown |
| bigboehmboy |
|
Posted: January 6th, 2010, 12:54 am
|
|
Replies: 5 Views: 356
|
| I'm looking for some way to detect when someone scrolls down while holding the right mouse button down. Do you know if there's an easy way to do this? |
|
 |
| Sort by: |