kosamja Posted August 10, 2017 Share Posted August 10, 2017 GUICtrlSetData($Logs, GUICtrlRead($Logs) & 'Display id | ' & $sOutput & @CRLF) Link to comment Share on other sites More sharing options...
SeharH Posted August 10, 2017 Author Share Posted August 10, 2017 23 minutes ago, kosamja said: GUICtrlSetData($Logs, GUICtrlRead($Logs) & 'Display id | ' & $sOutput & @CRLF) Really out of mind or may be iam add your line at wrong place?Can you guys guied me Link to comment Share on other sites More sharing options...
Simpel Posted August 10, 2017 Share Posted August 10, 2017 Overwrite Line 43 with Line 36. And change then in this line $sOutput with $sLogs. In your script is nothing giving a value to $sOutput. Conrad SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
SeharH Posted August 10, 2017 Author Share Posted August 10, 2017 Well really thanks all of you guys i cannot mention only 1 person but all of you my respected seniors. I will set something like this in my gui Link to comment Share on other sites More sharing options...
SeharH Posted August 11, 2017 Author Share Posted August 11, 2017 Everything is set now but with little thing left which i surf hours but could'nt get it right While the logs getting more than current page than edit box bar start slide up so i have to navigate it down always for see the more logs,Anyone can help me on it so it can automaticaly move down so every time i can see the logs without scroll down.Thans Link to comment Share on other sites More sharing options...
kosamja Posted August 11, 2017 Share Posted August 11, 2017 Try this #include <SendMessage.au3> #include <ScrollBarsConstants.au3> #include <GUIConstants.au3> Sleep(3000) _SendMessage('HandleOfYourControl', $WM_VSCROLL, $SB_BOTTOM, 0) Link to comment Share on other sites More sharing options...
SeharH Posted August 11, 2017 Author Share Posted August 11, 2017 Nothing has been changed or may be something iam missing, Link to comment Share on other sites More sharing options...
water Posted August 11, 2017 Share Posted August 11, 2017 You need to replace 'HandleOfYourControl' with the REAL handle. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
SeharH Posted August 11, 2017 Author Share Posted August 11, 2017 5 minutes ago, water said: You need to replace 'HandleOfYourControl' with the REAL handle. Hi What could be it is...?can you please make it right Quote #include <EditConstants.au3> #include <SendMessage.au3> #include <Constants.au3> #include <GUIConstants.au3> #include <ScrollBarsConstants.au3> Opt("GUIOnEventMode", 1) ;creates gui window###########################################3 $Form1 = GUICreate("Andoid_Tools_By_SeharH_v1.2", 600, 350, 350, 150) GUISetIcon("ICON\SH.ico", -1) $Tab1 = GUICtrlCreateTab(3, 3, 595, 345) ;creates tab base ;end########################################################################### ; adb fastboot files added ######################################### If Not FileExists(@TempDir & "\adb.exe") Then FileInstall("adb.exe", @TempDir & "\adb.exe", 1) EndIf If Not FileExists(@TempDir & "\AdbWinApi.dll") Then FileInstall("AdbWinApi.dll", @TempDir & "\AdbWinApi.dll", 1) EndIf If Not FileExists(@TempDir & "\AdbWinUsbApi.dll") Then FileInstall("AdbWinUsbApi.dll", @TempDir & "\AdbWinUsbApi.dll", 1) EndIf ;end############################################################## $TabSheet2 = GUICtrlCreateTabItem("Samsung") $Group9 = GUICtrlCreateGroup("ADB Task's", 05, 30, 220, 310) $Group10 = GUICtrlCreateGroup("LOGS", 227, 30, 365, 310) $Buildprop = GUICtrlCreateButton("Read Information", 10, 50, 210, 30) $faltu = GUICtrlCreateButton("", 10, 290, 210, 15) $rebootdevice = GUICtrlCreateButton("Reboot-Device", 10, 305, 210, 30) $passwordremove = GUICtrlCreateButton("Password Remove", 120, 80, 100, 30) $pinremove = GUICtrlCreateButton("Pin Remove", 10, 80, 100, 30) $patternremove = GUICtrlCreateButton("Pattern Remove", 10, 110, 100, 30) $frpbypass = GUICtrlCreateButton("Frp Bypass", 120, 110, 100, 30) $Logs = GUICtrlCreateEdit("", 231, 42, 357, 293) GUICtrlSetOnEvent($Buildprop, '_Buildprop') GUICtrlSetOnEvent($rebootdevice, '_Rebootdevice') GUICtrlSetOnEvent($frpbypass, '_frpbypass') GUICtrlSetOnEvent($pinremove, '_pinremove') GUICtrlSetOnEvent($patternremove, '_patternremove') GUISetOnEvent($GUI_EVENT_CLOSE, '_AllExit', $Form1) GUICtrlSetData($Logs, "" & @CRLF) GUISetState(@SW_SHOW, $Form1) ;~ adb tab####################################################################### $TabSheet2 = GUICtrlCreateTabItem("ADB Functions") $Group3 = GUICtrlCreateGroup("ADB Task's", 05, 30, 220, 310) GUICtrlCreateGroup("", -99, -99, 1, 1) ;end################################################################################### ;~ fastboot tab $TabSheet3 = GUICtrlCreateTabItem("FastBoot Functions") $Group4 = GUICtrlCreateGroup("Misc", 05, 30, 110, 310) ;~ Huawei y560-l01 tab $Group6 = GUICtrlCreateGroup("Huawei Y560-L01", 115, 30, 110, 82) GUICtrlCreateGroup("", -99, -99, 1, 1) ;~ Misc tab $TabSheet4 = GUICtrlCreateTabItem("Misc") ;creates tab item $Group5 = GUICtrlCreateGroup("I will Add Functions In Next Version", 200, 56, 200, 180) ;~ about tab $TabSheet4 = GUICtrlCreateTabItem("About SeharH") GUICtrlSetState(-1,$GUI_SHOW) ;set About tab as default tab on run $Pic1 = GUICtrlCreatePic("ICON\logo.jpg", 190, 112, 196, 204) $Label1 = GUICtrlCreateLabel("Android_Tool_By_SeharH_V1.2 ", 190, 35, 180, 17) $me = GUICtrlCreateLabel("SeharH", 355, 33, 65, 20) GUICtrlSetFont($me, 9, 400, 4, "Bold") GUICtrlSetCursor(-1, 0) GUICtrlSetColor(-1, 0xFF0000) $Label2 = GUICtrlCreateLabel("H Is Inspired From Sehar", 235, 55, 129, 17) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) While 1 Sleep (3000) _SendMessage('HandleOfYourControl', $WM_VSCROLL, $SB_BOTTOM, 0) $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _AllExit() GUIDelete(@GUI_WinHandle) Exit EndFunc Accept my appology iam totally new to learning GUI Link to comment Share on other sites More sharing options...
water Posted August 11, 2017 Share Posted August 11, 2017 3 minutes ago, SeharH said: Accept my appology iam totally new to learning GUI Then now is the perfect point in time to learn something new The help file explains how to get the handle of a control. SeharH 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Simpel Posted August 11, 2017 Share Posted August 11, 2017 And when you post code please use the "code"-tags instead of "quote"-tags. It's much more easier to read. Try to change "HandleOfYourControl" with the variable you assigned to the edit box. Regards, Conrad SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
water Posted August 11, 2017 Share Posted August 11, 2017 33 minutes ago, Simpel said: Try to change "HandleOfYourControl" with the variable you assigned to the edit box. He needs the handle, not the ControlID. Have a look at GUICtrlGetHandle. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
SeharH Posted August 11, 2017 Author Share Posted August 11, 2017 38 minutes ago, Simpel said: And when you post code please use the "code"-tags instead of "quote"-tags. It's much more easier to read. Try to change "HandleOfYourControl" with the variable you assigned to the edit box. Regards, Conrad Thanks you Master but nothing has been changed expandcollapse popup#NoTrayIcon #RequireAdmin #include <Constants.au3> #include <GUIConstants.au3> #include <SendMessage.au3> #include <ScrollBarsConstants.au3> Opt("GUIOnEventMode", 1) ;creates gui window###########################################3 $Form1 = GUICreate("Andoid_Tools_By_SeharH_v1.2", 600, 350, 350, 150) GUISetIcon("ICON\SH.ico", -1) $Tab1 = GUICtrlCreateTab(3, 3, 595, 345) ;creates tab base ;end########################################################################### ; adb fastboot files added ######################################### If Not FileExists(@TempDir & "\adb.exe") Then FileInstall("adb.exe", @TempDir & "\adb.exe", 1) EndIf If Not FileExists(@TempDir & "\AdbWinApi.dll") Then FileInstall("AdbWinApi.dll", @TempDir & "\AdbWinApi.dll", 1) EndIf If Not FileExists(@TempDir & "\AdbWinUsbApi.dll") Then FileInstall("AdbWinUsbApi.dll", @TempDir & "\AdbWinUsbApi.dll", 1) EndIf ;end############################################################## $TabSheet2 = GUICtrlCreateTabItem("Samsung") $Group9 = GUICtrlCreateGroup("ADB Task's", 05, 30, 220, 310) $Group10 = GUICtrlCreateGroup("LOGS", 227, 30, 365, 310) $Buildprop = GUICtrlCreateButton("Read Information", 10, 50, 210, 30) $faltu = GUICtrlCreateButton("", 10, 290, 210, 15) $rebootdevice = GUICtrlCreateButton("Reboot-Device", 10, 305, 210, 30) $passwordremove = GUICtrlCreateButton("Password Remove", 120, 80, 100, 30) $pinremove = GUICtrlCreateButton("Pin Remove", 10, 80, 100, 30) $patternremove = GUICtrlCreateButton("Pattern Remove", 10, 110, 100, 30) $frpbypass = GUICtrlCreateButton("Frp Bypass", 120, 110, 100, 30) $Logs = GUICtrlCreateEdit("", 231, 42, 357, 293) GUICtrlSetOnEvent($Buildprop, '_Buildprop') GUICtrlSetOnEvent($rebootdevice, '_Rebootdevice') GUICtrlSetOnEvent($frpbypass, '_frpbypass') GUICtrlSetOnEvent($pinremove, '_pinremove') GUISetOnEvent($GUI_EVENT_CLOSE, '_AllExit', $Form1) GUICtrlSetData($Logs, "" & @CRLF) GUISetState(@SW_SHOW, $Form1) ;~ adb tab####################################################################### $TabSheet2 = GUICtrlCreateTabItem("ADB Functions") $Group3 = GUICtrlCreateGroup("ADB Task's", 05, 30, 220, 310) GUICtrlCreateGroup("", -99, -99, 1, 1) ;end################################################################################### ;~ fastboot tab $TabSheet3 = GUICtrlCreateTabItem("FastBoot Functions") $Group4 = GUICtrlCreateGroup("Misc", 05, 30, 110, 310) ;~ Huawei y560-l01 tab $Group6 = GUICtrlCreateGroup("Huawei Y560-L01", 115, 30, 110, 82) GUICtrlCreateGroup("", -99, -99, 1, 1) ;~ Misc tab $TabSheet4 = GUICtrlCreateTabItem("Misc") ;creates tab item $Group5 = GUICtrlCreateGroup("I will Add Functions In Next Version", 200, 56, 200, 180) ;~ about tab $TabSheet4 = GUICtrlCreateTabItem("About SeharH") GUICtrlSetState(-1,$GUI_SHOW) ;set About tab as default tab on run $Pic1 = GUICtrlCreatePic("ICON\logo.jpg", 190, 112, 196, 204) $Label1 = GUICtrlCreateLabel("Android_Tool_By_SeharH_V1.2 ", 190, 35, 180, 17) $me = GUICtrlCreateLabel("SeharH", 355, 33, 65, 20) GUICtrlSetFont($me, 9, 400, 4, "Bold") GUICtrlSetCursor(-1, 0) GUICtrlSetColor(-1, 0xFF0000) $Label2 = GUICtrlCreateLabel("H Is Inspired From Sehar", 235, 55, 129, 17) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) While 1 Sleep (3000) _SendMessage('$Logs', $WM_VSCROLL, $SB_BOTTOM, 0) $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _AllExit() GUIDelete(@GUI_WinHandle) Exit EndFunc Link to comment Share on other sites More sharing options...
water Posted August 11, 2017 Share Posted August 11, 2017 11 minutes ago, SeharH said: _SendMessage('$Logs', $WM_VSCROLL, $SB_BOTTOM, 0) You definitely need to dive deeper into how AutoIt works! What you provided is a string, $Logs is also wrong because it contains a ControlID. I already provided the solution above. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
SeharH Posted August 11, 2017 Author Share Posted August 11, 2017 (edited) 2 minutes ago, water said: You definitely need to dive deeper into how AutoIt works! What you provided is a string, $Logs is also wrong because it contains a ControlID. I already provided the solution above. Really iam START writing script 5 days ago with AUTOIT .I'am trying my level best to understand it with help of you Master's Edited August 11, 2017 by SeharH Link to comment Share on other sites More sharing options...
SeharH Posted August 15, 2017 Author Share Posted August 15, 2017 Hi All Master's After 3 days afort still iam unable to get success for find what is actually " GUICtrlGetHandle " for my scripts .I look arround the help file but result the same.My problem is still remain at bellow point. And i dont get what is the "GUICtrlGetHandle" for my script.May be anyone can help me about it.Thanks Link to comment Share on other sites More sharing options...
SeharH Posted August 15, 2017 Author Share Posted August 15, 2017 I have tried my level best but understand what is actually GUICtrlGetHandle My script code expandcollapse popup#NoTrayIcon #RequireAdmin #include <Constants.au3> #include <GUIConstants.au3> #include <SendMessage.au3> #include <ScrollBarsConstants.au3> #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) Global $Form1 = GUICreate("Form1", 577, 329, 330, 318) Global $Buildprop = GUICtrlCreateButton("Build.prop Info", 24, 56, 113, 185) Global $Logs = GUICtrlCreateEdit("", 216, 56, 297, 193, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY)) GUICtrlSetOnEvent($Buildprop, '_Buildprop') GUISetOnEvent($GUI_EVENT_CLOSE, '_AllExit', $Form1) GUICtrlSetData($Logs, "Logs" & @CRLF) GUISetState(@SW_SHOW, $Form1) If not FileExists(@TempDir & "\adb.exe") Then FileInstall("adb.exe", @TempDir & "\adb.exe", $FC_OVERWRITE) If not FileExists(@TempDir & "\AdbWinApi.dll") Then FileInstall("AdbWinApi.dll", @TempDir & "\AdbWinApi.dll", $FC_OVERWRITE) If not FileExists(@TempDir & "\AdbWinUsbApi.dll") Then FileInstall("AdbWinUsbApi.dll", @TempDir & "\AdbWinUsbApi.dll", $FC_OVERWRITE) While 1 Sleep(3000) _SendMessage('GUICtrlGetHandle', $WM_VSCROLL, $SB_BOTTOM, 0) WEnd Func _AllExit() GUIDelete(@GUI_WinHandle) Exit EndFunc Func _Buildprop() $iPID = Run("adb shell getprop ro.build.id", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ProcessWaitClose($iPID) $sOutput = StringStripWS(StdoutRead($iPID), $STR_STRIPLEADING + $STR_STRIPTRAILING) GUICtrlSetData($Logs, GUICtrlRead($Logs) & 'Display id | ' & $sOutput & @CRLF) EndFunc Kindly help me and if any master edit my script than i will study what is actually GUICtrlGetHandle for my script.Thanks in advance Link to comment Share on other sites More sharing options...
SeharH Posted August 15, 2017 Author Share Posted August 15, 2017 Any help for newbe....? Link to comment Share on other sites More sharing options...
water Posted August 15, 2017 Share Posted August 15, 2017 According to the Wiki: Plase wait at least 24 hours before bumping a thread. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted August 15, 2017 Share Posted August 15, 2017 Just a hint: You again provided a string but GUICtrlgetHandle is a function! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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