water 2,391 Posted July 1, 2011 ? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Tvern 11 Posted July 1, 2011 #include "UserState.au3" $US_State = _UserState_Get(@UserName) _UserState_Set(@UserName, BitOR($US_State, $US_Amazing)) While BitAND(_UserState_Get(@UserName), $US_Amazing) ;Do something here while you're amazing. WEnd Share this post Link to post Share on other sites
Klovis 0 Posted July 1, 2011 #include "UserState.au3" cannot find Share this post Link to post Share on other sites
Tvern 11 Posted July 1, 2011 Wel yeah, but I couldn't find a question in your title, or post either. Mind telling us what it is you want to do other than "something amazing" and what problem you are running into? Share this post Link to post Share on other sites
czardas 1,269 Posted July 1, 2011 (edited) UserState.au3 #include <string.au3> Func _UserState_Get($User) Switch $User Case "Klovis" Return SetError (1, 0, _StringToHex("Amazing") Case Else Return _StringToHex("Awesome") EndSwitch EndFunc Func _UserState_Set($User, ByRef $US_State) $US_State = _UserState_Get($User) EndFunc Edited July 1, 2011 by czardas operator64 ArrayWorkshop Share this post Link to post Share on other sites
JohnOne 1,603 Posted July 1, 2011 Jump over the moon. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
sleepydvdr 8 Posted July 1, 2011 The original poster wants us to do something amazing: become psychics. #include <ByteMe.au3> Share this post Link to post Share on other sites
Bert 1,430 Posted July 1, 2011 Help me!Lets see....OP goofed and didn't post this thread in chat....$2.31OP is new....$1OP is bored... $2OP didn't bother using the search function to see how many times this has been asked and review the suggestions made....one penny.OP gets made fun of by many other users of the forum....priceless.We get your bored. Next time think, search, then if you can't find what your looking for, post in the correct place.moving on... The Vollatran project My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
monoscout999 10 Posted July 1, 2011 there`s a sticky in the chat section about jokes and that sort of things, maybe you can give us a good laugh while we work in something for you. Share this post Link to post Share on other sites
omikron48 0 Posted July 1, 2011 UserState.au3 #include <string.au3> Func _UserState_Get($User) Switch $User Case "Klovis" Return SetError (1, 0, _StringToHex("Amazing"));<- missing closing parenthesis. will not compile. Case Else Return _StringToHex("Awesome") EndSwitch EndFunc Func _UserState_Set($User, ByRef $US_State) $US_State = _UserState_Get($User) EndFunc Share this post Link to post Share on other sites
czardas 1,269 Posted July 1, 2011 operator64 ArrayWorkshop Share this post Link to post Share on other sites