i'm not sure if that would be sufficient, but ill give it a shot, because it would have to work both ways.
I may try learning the original language, it seems better for capturing things.
"rocking" the mouse is when you hold down one key then click the other one. I'm looking to make a script that would detect when someone rocks their mouse in either direction and will perform an action depending on the direction (right<-left , right->left) I've found the (relatively) new function _IsPressed but the issue i was wondering if there was any sort of mouse detection that would act more like a hotkey. I'm not a fan of using such loops when i don't have to. i'm always paranoid they'll miss the action or delay the action too much. When testing it using the given example it missed my just tapping the end key, i had to hold it down instead #include <Misc.au3>
$dll = DllOpen("user32.dll")
While 1
Sleep ( 250 )
If _IsPressed("23", $dll) Then
MsgBox(0,"_IsPressed", "End Key Pressed")
ExitLoop
EndIf
WEnd
DllClose($dll) I'd love some suggestions. This script was inspired by the Lifehacker rocker app found here source, it was written in something called Autohotkey. Thanks
With this code i cant get, <,>,<=, or >= to work properly with this below:
$Local = RegRead ( $reg , 'li-version' )
$newversion = IniRead ( $tempini , 'info' , 'version' , 0 )
MsgBox ( 0 , $Local <= $newversion , $Local & '<=' & $newversion )
the operator returns 1 if they're equal and 0 otherwise, with <,> it always returns 0.
Any idea why these variables may not be formatted properly or somehting?
I've got the following code, and it exits out w/o error before the test_ ( 'if' ) line however the statement inside the for loop works.
$nuke = IniReadSection ( $tempini , 'nuke' )
If @error Then
test_('test')
Dim $nuke[1][1]
$nuke[0][0] = 'omg'
EndIf
test_ ( $nuke[0][0] & ' Nuke' )
If $nuke[0][0]<>'omg' Then
For $n = 1 To $nuke[0][0]+1
test_ (DirRemove ( $addondir & $nuke[$n][1] , 1 ))
Next
test_ ('if')
EndIf
i tried it w/o that if @error statement and some other things for the if nuke statement and had the same issue.
the test_ function is just a simple little debugging function which outputs a msgbox.
any idea why it exits out?
I wanted to a script to wait for any window to open and then if that window is one of the windows i'm looking for have it perform a particular aciton.
It's easy enogh with one window, but i dont want a different script for every window that i want to deal with. While 1
WinWait ( 'Alert' )
WinClose ( 'Alert' )
WEnd