zeroZshadow Posted August 6, 2006 Posted August 6, 2006 hex table can be found in the beta help file at the _IsPressed() command but where do you need my function for ??? i still don't get it *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Paulie Posted August 6, 2006 Posted August 6, 2006 but where do you need my function for ??? i still don't get itHe wants to do what you did in your first post, without "HotKeySet" so he can push right arrow+a and have it both execute a function, and still register the keys
zeroZshadow Posted August 6, 2006 Posted August 6, 2006 (edited) then just put get key in a loop and put a switch behind it -.- it aint that hard EDIT: want an example mate ?? Edited August 6, 2006 by zeroZshadow *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
psgame_freak Posted August 7, 2006 Author Posted August 7, 2006 want an example mate ?? Yes Please!Thank you
Moderators SmOke_N Posted August 7, 2006 Moderators Posted August 7, 2006 want an example mate ?? Yes Please!Thank youYou know what they say about people that talk to themselves and answer themselves Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
zeroZshadow Posted August 7, 2006 Posted August 7, 2006 i'll make a small one today. just to get this on the list program: i control the mouse with my arrowkeys right ?? *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
psgame_freak Posted August 8, 2006 Author Posted August 8, 2006 Anything that you think will help me will do . But here's what I want mine to do: 1) Press right 2) Execute function 3) Right command
zeroZshadow Posted August 8, 2006 Posted August 8, 2006 still don't get it, but who cares XD i'll make it when i have some time left, busy sced lately *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
zeroZshadow Posted August 8, 2006 Posted August 8, 2006 omg, i just started coding, couln't help it freaky XD #Include <Misc.au3> $speed = 10 while 1 $pos = MouseGetPos() switch _GetKey() case 26 MouseMove( $pos[0], $pos[1]-$speed,0) case 27 MouseMove( $pos[0]+$speed, $pos[1],0) case 28 MouseMove( $pos[0], $pos[1]+$speed,0) case 25 MouseMove( $pos[0]-$speed, $pos[1],0) case 21 $speed = $speed +1 case 22 $speed = $speed -1 if $speed < 0 then $speed = 0 EndSwitch WEnd Func _GetKey() for $i = 1 to 165 if _IsPressed(Hex($i,2)) Then return Hex($i,2) EndIf Next EndFunc moves the mouse with ur arrow, doesn't do diagonal tho. speed up and down with page up and page down. hope this is what u mean *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
psgame_freak Posted August 9, 2006 Author Posted August 9, 2006 (edited) You still don't get -.-. Thanks for the code but I can't use that. Try this code Global $Modifier = "" HotKeySet("{RIGHT}", "SetRightModifier") HotKeySet("{LEFT}", "SetLeftModifier") While 1 sleep(1000) WEnd Func SetRightModifier() $Modifier = "right" EndFunc Func SetLeftModifier() $Modifier = "left" EndFunc Try that code. When you press right or left arrow keys the $Modifier is assigned the value of "left" or "right but the cursor does not move to the right or left. What I want is to also be able to the cursor left or right while being able to assign values to $Modifier. Edited August 9, 2006 by psgame_freak
Moderators SmOke_N Posted August 9, 2006 Moderators Posted August 9, 2006 This thread reminds me of the Scare Crow in the Wizard of Oz. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
psgame_freak Posted August 10, 2006 Author Posted August 10, 2006 This thread reminds me of the Scare Crow in the Wizard of Oz.@.@Help?!My last problem then all is fixed.
psgame_freak Posted August 11, 2006 Author Posted August 11, 2006 *Kicks topic back up* Still can't make it work =.+
Moderators SmOke_N Posted August 11, 2006 Moderators Posted August 11, 2006 Global $Modifier HotKeySet("{RIGHT}", "SetRightModifier") HotKeySet("{LEFT}", "SetLeftModifier") While 1 sleep(1000) WEnd Func SetRightModifier() If $Modifier <> 'right' Then $Modifier = "right" Send('{RIGHT}') EndFunc Func SetLeftModifier() If $Modifier <> 'left' Then $Modifier = "left" Send('{LEFT}') EndFunc Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
psgame_freak Posted August 13, 2006 Author Posted August 13, 2006 Global $Modifier HotKeySet("{RIGHT}", "SetRightModifier") HotKeySet("{LEFT}", "SetLeftModifier") While 1 sleep(1000) WEnd Func SetRightModifier() If $Modifier <> 'right' Then $Modifier = "right" Send('{RIGHT}') EndFunc Func SetLeftModifier() If $Modifier <> 'left' Then $Modifier = "left" Send('{LEFT}') EndFunc Recursive error...
psgame_freak Posted August 18, 2006 Author Posted August 18, 2006 I tried to put the send ("{Right}") on a different function. Still no work.
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