Jump to content

Ascer

Active Members
  • Posts

    127
  • Joined

  • Last visited

  • Days Won

    1

Ascer last won the day on February 12 2018

Ascer had the most liked content!

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ascer's Achievements

Adventurer

Adventurer (3/7)

33

Reputation

  1. Almost there! So there is no single control to do this? I need to use x3 ones?
  2. @Nine Thanks for respond but is not what I looking for. You just used sunken labels while maybe there is way to create example comobox or listbox with such as buttons included.
  3. Hello, I would like to ask if there is an GUI function that allow create control like this?
  4. @LarsJ, @argumentum, @pixelsearch, Mates, this function to catch signals from Menu freeze app at time to time no matter if return in function is quick or long. The only way is modify style of already created Menu by GUICtrlCreateMenu("&File") if even possible.
  5. @LarsJ I forgot to ask you how to catch signals from such as menu items.
  6. Hello, I would like to ask if there is any way to avoid pause loop when we click on Menu in AutoIt GUI? * without using _Timer_SetTimer. [Edit 2021-02-14 20:45] Solved! Big thanks for @MrCreatoR, below solution: #include <GuiMenu.au3> ; Create GUI. $hGUI = GUICreate("Autoit GUI", 200, 100) ; Create menu and item. Local $menu = GUICtrlCreateMenu("&Click here") GUICtrlCreateMenuItem("none", $menu) $hMenu = _GUICtrlMenu_GetMenu($hGUI) _GUICtrlMenu_SetMenuStyle($hMenu, $MNS_MODELESS) ; Crate label to control progress. Local $label = GUICtrlCreateLabel("Working: ", 60, 30, 160) ; Set start time point script. Local $startPoint = 0 ; Show GUI. GUISetState(@SW_SHOW) ; Loop until the user exits. While 1 ; Set new time to label. GUICtrlSetData($label, "Working: " & $startPoint & "%") ; add point $startPoint += 1 ; When point is above 100 reset If $startPoint >= 100 Then $startPoint = 0 ; Listen signal from GUI. Switch GUIGetMsg() Case -3 Exit EndSwitch WEnd
  7. Hey mate, You need to use function: oAuth2RefreshAccessToken($sRefreshToken, $sClientId, $sClientSecret) This function is described in file oAuth.au3
  8. Thanks for reply guys. After a few days of hard learning C programming i must say .. Good to know that Autoit exists C have 48 years old and learning it is like learning chinese. Speed is genius comparing func such as DllCall, FileRead/Write, Loop,Value assing,String Operations, Array Manage, func call: C is around x30 faster than Autoit but way you write it aaaa blood. I used Sublime Text with gcc compile to execute C scripts.
  9. Hello all, Since almost all my topics here are come to "How can i speed up Autoit?" I decided to start C programming. My question is how to setup Scite for C to works just like an Autoit. F5 Run, Ctrl+F5 error check? btw. comparing speed Autoit VS C Loop: 1:70 DllCall 1:15
  10. If TimerDiff return value in ms then you use / 100 and value is for single insert instead of all 100 lines.
  11. You right but this not solve problem the editbox can't be small it should be almost full screen mode
  12. Guys make tests on this example is more realistic in my case. Try to speed up it. Example() Func Example() Local $hGUI, $hEdit, $hButton, $hLabel, $time, $diff $hGUI = GUICreate("Test", 500, 500) $hEdit = GUICtrlCreateEdit("", 10, 10, 400, 400, 2099200) $hButton = GUICtrlCreateButton("Add", 10, 450, 80, 30) $hLabel = GUICtrlCreateLabel("", 10, 420, 100, 20) GUISetState() For $i = 1 To 100 GUICtrlSetData($hEdit, "Example add new line with some text bla bla bah" & @CRLF, 1) Next GUICtrlSendMsg($hEdit, 0xB1, 9999, 9999) While 1 Switch GUIGetMsg() Case -3 Exit Case $hButton $time = TimerInit() GUICtrlSetData($hEdit, "Example add new line with some text bla bla bah" & @CRLF, 1) $diff = TimerDiff($time) GUICtrlSetData($hLabel, "Time: " & Int($diff * 100)/ 100 & "ms") EndSwitch WEnd EndFunc
  13. @jchd You make an huuuge mistake here: $diff = TimerDiff($time) / 100 My goal is to make chat Console for TCP client so after adding new line script should fast as possible back to received message loop.
  14. Hello again, I looking for fast possible way to insert single line to EditBox GuiCtrlCreateEdit. BeginUpdate -> set data -> endUpdate cant be used! #include <GUIConstantsEx.au3> Example() Func Example() Local $msg, $diff, $time, $hEdit GUICreate("My GUI", 400, 250) $hEdit = GUICtrlCreateEdit("", 0, 0, 400, 150) GUISetState() $time = TimerInit() For $i = 1 To 100 GUICtrlSetData($hEdit, "GUICtrlSetData" & @CRLF, 1) Next $diff = Int(TimerDiff($time) * 100)/100 GUICtrlCreateLabel("GUICtrlSetData: " & $diff & "ms", 10, 170) $time = TimerInit() For $i = 1 To 100 GUICtrlSendMsg($hEdit, 0xC2, 0, "GUICtrlSendMsg $EM_REPLACESEL" & @CRLF) Next $diff = Int(TimerDiff($time) * 100)/100 GUICtrlCreateLabel("GUICtrlSendMsg: " & $diff & "ms", 10, 190) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example
  15. @jchd This method don't works. I just implemented Melba23 solution.
×
×
  • Create New...