jaberwacky

SciTE Customization GUI -- [07/12/2015]

189 posts in this topic

Fixed the User Include selection bugs reported by UEZ.  Thanks!

I don't think I can help out with the tooltip thing.  We'll have to see if anyone else has the same problem, both users and non-users of SCG.

See OP for details.

Share this post


Link to post
Share on other sites



Thanks seems to be fixed now. When I've selected an user includes path and saved it but after restart the path is only available in the combo list but not selected. This is irritating because it associates that it is saved properly.


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

Hmmm, how many user include paths can be used? I think only one, thus an input box should be enough, shouldn't it?

 


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

Well give the LV a try.


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

Thanks for the update!


 :thumbsup:


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

#189 ·  Posted (edited)

Hi,

I found this "bug" -- if you could call it that.

My Windows user uses the character "é" in its name. This seems to cause problems for SCG.

Don't know if it's going to be of any use, but here is the error I get when I (for example) click 'Save Theme As'.

Quote

Line 27689 (File "C:\temp\SciTe Customization GUI\SciTe Customization GUI.exe"): Error: Variable must be of type "Object".

 

This frustrated me for a while, but just now I figured I'd try copying the '.SciTEConfig' created by SCG, rename it and replace it with 'SciTEUser.properties' in my profile, manually. And it works!

 

Just wanted to share this in case it hasn't been brought up before.

Love both the original SciTe Config and SCG, though! :D - So thanks for making and sharing this!

Edited by Yuljup

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • rm4453
      Custom Stream GUI Using Autoit Gui Wrap
      By rm4453
      Hey guys! I need to find a way to wrap an autoit gui around a game. I am planning on making a custom gui overlay for interacting with my stream, which will allow me to run giveaways and stuff like that. But I need to find a way to force the steam games to run inside my autoit gui... I have the following code so far credit to those I took code from and modified to suite my needs "can't remember who u are pls post if i owe ty to u" If I select notepad and launch it then it works great! and the notepad window is wrapped inside my gui. However if I try it with teamfortress 2 it won't work...
       
      #include <Array.au3> #include <File.au3> #include <WinAPI.au3> #include <GUIConstants.au3> Local $msg, $hwnd, $WinHwnd ;===> UDV Start $pid = 0 $Hidden = 0 $exe = 0 $sDrive = 0 $sDir = 0 $sFileName = 0 $sExtension = 0 ;===> UDV End $hwnd = GUICreate("hello") $Open = GUICtrlCreateButton("Launch Game", 10, 30, 75, 25) $Select = GUICtrlCreateButton("Select Game", 10,60,75,25) GUISetState() ;===> UDF START Func _GetWinHwnd($pid) $aWinlist = WinList() For $i = 1 To $aWinlist[0][0] If $pid = WinGetProcess($aWinlist[$i][0]) Then Return $aWinlist[$i][0] Next EndFunc ;==>_GetWinHwnd Func _SetParentWindow($pid) $WinInfo = _GetWinHwnd($pid) $WinHwnd = ControlGetHandle($WinInfo, "", "") _WinAPI_SetParent($WinHwnd, $hwnd) _WinAPI_SetWindowLong($WinHwnd, $GWL_STYLE, $WS_POPUP + $WS_VISIBLE) WinMove($WinHwnd, "", 0, 0) EndFunc ;==>_SetParentWindow Func RedrawGui($RedrawMe) If ProcessExists($pid) And $Hidden = 0 Then GUICtrlSetState($RedrawMe, @SW_HIDE) $Hidden = 1 sleep(50) _WinAPI_RedrawWindow($pid) Sleep(50) ElseIf $Hidden = 1 And Not ProcessExists($pid) Then GUICtrlSetState($RedrawMe, @SW_SHOW) $Hidden = 0 EndIf EndFunc ;===> UDF END While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE If ProcessExists($pid) Then ProcessClose($pid) GUICtrlSetState($Open, @SW_SHOW) Else Exit EndIf Case $Open GUICtrlSetState($Open, @SW_HIDE) Sleep(100) $pid = Run('"' & $exe & '" -game tf -steam') #cs This RUN CMD is custom made for testing with TF2 change to just $exe to select any exe you want to test with -game tf specifies to launch tf2 and -steam gets rid of insecure mode error #ce RedrawGui($Open) ProcessWait($pid) Sleep(5500) _GetWinHwnd($pid) _SetParentWindow($pid) Case $Select $exe = FileOpenDialog("Please select your game!", @ScriptDir, "Executable File (*.exe)", "1", "Process Selection") Sleep(50) FileChangeDir(@ScriptDir) _PathSplit($exe, $sDrive, $sDir, $sFileName, $sExtension) EndSwitch WEnd  
    • ralph_ng
      How to append data (random) in Excel?
      By ralph_ng
      Hi everybody, I'm newbie to learn AutoIt, need some help... The process/ work that I'd like to automate is just for testing purpose for my job.
      Searching high and low, I found no script example for writing any random data into excel file. 
    • Valnurat
      Several small issues
      By Valnurat
      I have put all my small issues into one thread hope that is fine.
      I have GUI with many GUICtrlCreateInput and it's working ok.
       
      #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=x86\Create Consultant.Exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <AD.au3> #include <Array.au3> Main() Func Main() _AD_Open() If @error Then Exit MsgBox(0x40010, "ERROR", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended) Local $sUsername = InputBox('OPTIONAL', 'Please enter the username.' & @CRLF & @CRLF & 'Exampel: '& @UserName) If @error = 1 Then Exit If $sUsername <> "" Then Local $sFQDN = _AD_SamAccountNameToFQDN($sUsername) if @error = 1 Then MsgBox(64, "Info", "User '" & $sUsername & "' does not exist") Exit EndIf ; MsgBox(64, "Info", "User '" & $sFQDN & @CRLF & _AD_GetObjectAttribute($sFQDN, 'department')) EndIf ; MsgBox(64, "Info", "User '" & $sFQDN & @CRLF & _AD_GetManager($sFQDN, 'department')) local $aObj = _AD_GetObjectsInOU("OU=Users,OU=so,OU=dk,OU=company,DC=AD,DC=company,DC=ORG","(&(objectclass=person)(sAMAccountName=" & $sUsername & "))",2,"department,physicalDeliveryOfficeName,company", "") _ArrayDisplay($aObj) _ArrayDelete($aObj,0) ; Create a GUI with various controls. Local $hGUI = GUICreate("Create Consultant") GUICtrlCreateLabel("First name:", 10, 13) Local $idFirst = GUICtrlCreateInput("", 90, 10, 150, 20) GUICtrlCreateLabel("Shortname:", 245, 13) Local $idShort = GUICtrlCreateInput("", 300, 10, 90, 20) GUICtrlCreateLabel("Last name:", 10, 43) Local $idLast = GUICtrlCreateInput("", 90, 40, 300, 20) GUICtrlCreateLabel("Display name:", 10, 73) Local $idDisplay = GUICtrlCreateInput("", 90, 70, 300, 20) GUICtrlCreateLabel("Description:", 10, 103) Local $idRadio1 = GUICtrlCreateRadio("Consultant", 90, 100) Local $idRadio2 = GUICtrlCreateRadio("Group Account", 190, 100) GUICtrlCreateLabel("Email:", 10, 133) Local $idEmail = GUICtrlCreateInput("", 90, 130, 300, 20) GUICtrlCreateLabel("Department:", 10, 163) If $sUsername <> "" Then Local $idDepart = GUICtrlCreateInput($aObj[0][0], 90, 160, 300, 20) Else Local $idDepart = GUICtrlCreateInput("", 90, 160, 300, 20) EndIf GUICtrlCreateLabel("Office:", 10, 193) If $sUsername <> "" Then Local $idOffice = GUICtrlCreateInput($aObj[0][1], 90, 190, 80, 20) Else Local $idOffice = GUICtrlCreateInput("", 90, 190, 80, 20) EndIf Local $idCheckBox = GUICtrlCreateCheckbox("End date", 330, 190, 80, 20) Local $idDate = GUICtrlCreateDate("", 200, 190, 120, 20) GUICtrlSetState($idDate,$gui_disable) GUICtrlCreateLabel("Manager:", 10, 223) Local $idComboBox = GUICtrlCreateCombo("", 90, 220, 150, 100) GUICtrlCreateLabel("Misal code:", 245, 223) If $sUsername <> "" Then Local $idMisalCode = GUICtrlCreateInput($aObj[0][2], 310, 220, 80, 20) Else Local $idMisalCode = GUICtrlCreateInput("", 310, 220, 80, 20) EndIf GUICtrlCreateLabel("Ticket no.:", 10, 253) Local $idTicketNo = GUICtrlCreateInput("", 90, 250, 150, 20) GUICtrlCreateLabel("Cost no.:", 245, 253) Local $idCostNo = GUICtrlCreateInput("", 290, 250, 100, 20) GUICtrlCreateLabel("Ext. Company:", 10, 283) Local $idExtComp = GUICtrlCreateInput("", 90, 280, 300, 20) GUICtrlCreateGroup("Optional, if no Email", 10, 310, 380, 55) GUICtrlCreateLabel("Ext. Email:", 20, 333) Local $idExtEmail = GUICtrlCreateInput("", 90, 330, 290, 20) local $aObject = _AD_GetObjectsInOU("OU=Users,OU=so,OU=dk,OU=company,DC=AD,DC=company,DC=ORG","(&(objectclass=person)(StaffManager=TRUE))",2,"sAMAccountName,distinguishedName,displayname", "displayname") ; _ArrayDisplay($aObject,"") If IsArray($aObject) Then Local $sFill = "" For $i = 1 To $aObject[0][0] $sFill &= $aObject[$i][2] & "|" Next $sFill = StringTrimRight($sFill,1) ; Add additional items to the combobox. GUICtrlSetData($idComboBox, $sFill, "") EndIf Local $idOK = GUICtrlCreateButton("OK", 310, 370, 85, 25) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idOK MsgBox($MB_SYSTEMMODAL, "", "test") Global $sFirst = GUICtrlRead($idFirst) Global $sShort = GUICtrlRead($idShort) Global $sLast = GUICtrlRead($idLast) Global $sDisp = GUICtrlRead($idDisplay) If GUICtrlRead($idRadio1) = $GUI_CHECKED Then MsgBox($MB_SYSTEMMODAL, "test", "Consultants") EndIf Global $sEmail = GUICtrlRead($idEmail) Global $sDepart = GUICtrlRead($idDepart) Global $sOffice = GUICtrlRead($idOffice) Global $sManager = GUICtrlRead($idComboBox) If $sManager <> "" Then MsgBox($MB_SYSTEMMODAL, "test", $sManager) EndIf Global $sMisalCode = GUICtrlRead($idMisalCode) Global $sTicketNo = GUICtrlRead($idTicketNo) Global $sCostNo = GUICtrlRead($idCostNo) Global $sExtCompe = GUICtrlRead($idExtComp) Global $sExtEmail = GUICtrlRead($idExtEmail) ExitLoop Case $idCheckBox If _IsChecked($idCheckbox) Then GUICtrlSetState($idDate,$gui_enable) Else GUICtrlSetState($idDate,$gui_disable) EndIf EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) ; Create a new user #cs Global $iValue = _AD_CreateUser($sOU, $sShort, "Doe John") If $iValue = 1 Then MsgBox(64, "Active Directory Functions - Example 1", "User '" & $sUser & "' in OU '" & $sOU & "' successfully created") ElseIf @error = 1 Then MsgBox(64, "Active Directory Functions - Example 1", "User '" & $sUser & "' already exists") ElseIf @error = 2 Then MsgBox(64, "Active Directory Functions - Example 1", "OU '" & $sOU & "' does not exist") ElseIf @error = 3 Then MsgBox(64, "Active Directory Functions - Example 1", "Value for CN (e.g. Lastname Firstname) is missing") ElseIf @error = 4 Then MsgBox(64, "Active Directory Functions - Example 1", "Value for $sAD_User is missing") Else MsgBox(64, "Active Directory Functions - Example 1", "Return code '" & @error & "' from Active Directory") #ce EndIf _AD_Close() EndFunc Func _IsChecked($idControlID) Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED EndFunc ;==>_IsChecked Now I have to read all GUICtrlCreateInput and I want to be sure that all GUICtrlCreateInput is filled. Do I have to this for all of them:
      Global $sManager = GUICtrlRead($idComboBox) If $sManager <> "" Then MsgBox($MB_SYSTEMMODAL, "test", $sManager) Global $bManager = True EndIf Or is there a nice way of controlling that they all are filled out?
      And how can I be in the loop until all fields are filled out?
       
      I also have 2 radiobuttons. 1 with text "Consultants" and 1 with "Group account".
      How do I get the text from the 1 that's active? I tried this and it's working, but is there another way?
      If GUICtrlRead($idRadio1) = $GUI_CHECKED Then MsgBox($MB_SYSTEMMODAL, "test", "Consultants") EndIf  
    • killertone
      ControlSend Messing up the string
      By killertone
      Greetings!
      I have been trying to get send to this textarea on a website a message through ControlSend because _IEFormElementSetValue doesnt work on it, so i get the hwnd of the IE window then do the ControlSend to the window, and the message it sends doesnt type some of the letters.
      The textarea
      <textarea style="overflow:hidden;height:undefinedpx;" class="form-control input-sm" placeholder="Add a comment" rows="1" data-reactid=".0.3.2.1.2.0.$view.8.1.0.0.1"></textarea> How im getting the textarea:
      $comment_area = _IETagNameGetCollection($oIE,"textarea") for $element in $comment_area if $element.placeholder = "Add a comment" Then _IEAction($element,"focus") Sleep(1500) ;_IEFormElementSetValue($element,$comment_list[$random_index]) ;_IEFormSubmit($element) ControlSend($hIE,"","[CLASS:Internet Explorer_Server; INSTANCE:1]",$comment_list[$random_index],1) ;Send("{ENTER}") Sleep(3000) ;Hacer que sea random EndIf Next When i use _IEFormElementSetValue  it changes the text on the box, but it doesn't change the value or something because when i send an Enter key it doesn't submit the message (I Also tried _IEFormSubmit)
      With ControlSend it does send it but corrupted, for example: Message: Pretty nice Result: ety nice
      Also i know the element is the actual one im referring because if i use _IEAction($element,"focus") it focuses the one i want.
      Any help appreciated!
    • Valnurat
      How do I add content to a ComboBox from an AD attribute?
      By Valnurat
      Hi.
      Can someone help me with some code to get info from AD and into a ComboBox. I'm using this UDF:
      How do you get AD user object with the StaffManager attributes = True? I think I have to use:
      _AD_GetObjectsInOU($sOU[, $sFilter = "(name=*)"[, $iSearchScope = 2[, $sDataToRetrieve =  "sAMAccountName"[, $sSortBy = "sAMAccountName"[, $bCount = False[, $vReturnNull = True]]]]])
      but I don't know how.