rodiney Posted February 15, 2016 Share Posted February 15, 2016 Hi again. need some help here , I need to do while checking if the button was not clicked , Button which added "$button1" , not the keyboard key . will be like in so much I did not click on the button he keeps doing WHAT was defined . case $Button1 While << I NEED HERE ReDim $Array[UBound($Array) + 1] $Array[$iCount] = $H $Input1 = GUICtrlSetData($Input1,$Array[$iCount] & " Start") if $H <> $Array[$iCount] Then $iCount += 1 ReDim $Array[UBound($Array) + 1] $Array[$iCount] = $H EndIf ConsoleWrite($Array[$iCount] & @CR) _ArrayDisplay($Array, "", Default, 8) WEnd Link to comment Share on other sites More sharing options...
water Posted February 15, 2016 Share Posted February 15, 2016 Seems English isn't your mother language. I have absolutely no idea what you are looking for. Could you please describe in your language what you need and then use Google Translate or something similar to translate it to English? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
rodiney Posted February 15, 2016 Author Share Posted February 15, 2016 You know the script I immediately sent the top. I need it to check if my $ button2 was clicked or not. You have any user function that checks it? Link to comment Share on other sites More sharing options...
JohnOne Posted February 15, 2016 Share Posted February 15, 2016 there is no user function you will have to create your own. You could start with While _IsPressed("01") And MouseCoordinatesAreOnYourButton() ;code WEnd Pseudo code AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
rodiney Posted February 15, 2016 Author Share Posted February 15, 2016 thanks JohnOne i will try it Link to comment Share on other sites More sharing options...
kylomas Posted February 15, 2016 Share Posted February 15, 2016 rodiney, See comments in the following code... Case $Button1 While < < I NEED HERE ReDim $Array[UBound($Array) + 1] $Array[$iCount] = $H ; ; $Input1 is being used as a controlid. You do NOT want to overwrite it !!! ; $Input1 = GUICtrlSetData($Input1, $Array[$iCount] & " Start") ; ; two statements ago you set these values =. Why the test? ; If $H <> $Array[$iCount] Then $iCount += 1 ReDim $Array[UBound($Array) + 1] $Array[$iCount] = $H EndIf ConsoleWrite($Array[$iCount] & @CR) _ArrayDisplay($Array, "", Default, 8) WEnd It might be better to create a runnable reproducer and tell us what you expect and what it is/is not doing... kylomas water 1 Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
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