Chobyhy 0 Report post Posted July 17, 2006 i cant find this topic in manual does anyone wanna tell me details to find it? and is there such coding for when the key was released? Share this post Link to post Share on other sites
Daniel W. 0 Report post Posted July 17, 2006 Yes look it up in BETA helpfile --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Share this post Link to post Share on other sites
Chobyhy 0 Report post Posted July 17, 2006 i did. which category even tried searching.. Share this post Link to post Share on other sites
Helge 1 Report post Posted July 17, 2006 IsPressed is a UDF that is in the betas only. Download the newest and there you go.. Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted July 17, 2006 For the record... it's not _IfPressed... it's _IsPressed.... It seems that some people have been getting it wrong lately. 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. Share this post Link to post Share on other sites
Chobyhy 0 Report post Posted July 17, 2006 (edited) oooooo okay thx for Is pressed notice grr i still cant find it i have the beta help open.. nvm i found it. is there one for being released? grr there is almost every key listed cept ~ or ` Edited July 17, 2006 by Chobyhy Share this post Link to post Share on other sites
Chobyhy 0 Report post Posted July 17, 2006 IsPressed refers to a key being held? im trying to make a script where if the key is being held it keeps on looping. until key gets released and when it gets released it goes back to some original settings. Share this post Link to post Share on other sites
Helge 1 Report post Posted July 17, 2006 Press and release left mouse button : #include <Misc.au3> $pressed = 0 While 1 Sleep(100) ; press If _IsPressed ("01") And $pressed = 0 Then $pressed = 1 ; release and action If Not _IsPressed ("01") And $pressed = 1 Then $pressed = 0 Action () EndIf WEnd Func Action() MsgBox(64, "", "released") EndFunc Share this post Link to post Share on other sites
Chobyhy 0 Report post Posted July 17, 2006 lol cool but thx for suggestion but i need help with the following IsPress refers to key being held? Is there IsPress code for ` which is ~ when shifted. Is there any functions for key being released? The reason i need the following is because when ` is pressed, settings for my games change using hotkeys and it does some loops on mouseclicks and holds a different key down and when the key is released, mouse stops clicking and the key that was being held down by ` key will be released along with settings reverse back to way it was. Share this post Link to post Share on other sites
Nomad 0 Report post Posted July 17, 2006 lol cool but thx for suggestion but i need help with the followingIsPress refers to key being held?Is there IsPress code for ` which is ~ when shifted.Is there any functions for key being released?The reason i need the following is because when ` is pressed, settings for my games change using hotkeys and it does some loops on mouseclicks and holds a different key down and when the key is released, mouse stops clicking and the key that was being held down by ` key will be released along with settings reverse back to way it was. If you have the beta helpfile, then enter _IsPressed in the "index" tab (not the "contents" tab), and it should take you right there. Share this post Link to post Share on other sites