
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!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Ascer's Achievements

Adventurer (3/7)
33
Reputation
-
Parsix reacted to a post in a topic: [UDF] Gmail API - Emails automation with AutoIt!
-
Almost there! So there is no single control to do this? I need to use x3 ones?
-
@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.
-
-
Ascer reacted to a post in a topic: Read output from CMD using PID
-
Ascer reacted to a post in a topic: [Solved] Menu Pause Script
-
@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.
- 14 replies
-
- menu pause
- menus stop
-
(and 1 more)
Tagged with:
-
@LarsJ I forgot to ask you how to catch signals from such as menu items.
- 14 replies
-
- menu pause
- menus stop
-
(and 1 more)
Tagged with:
-
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
- 14 replies
-
- menu pause
- menus stop
-
(and 1 more)
Tagged with:
-
[UDF] Gmail API - Emails automation with AutoIt!
Ascer replied to Ascer's topic in AutoIt Example Scripts
Hey mate, You need to use function: oAuth2RefreshAccessToken($sRefreshToken, $sClientId, $sClientSecret) This function is described in file oAuth.au3- 54 replies
-
- gmail
- send emails
-
(and 3 more)
Tagged with:
-
Velislav reacted to a post in a topic: google OCR with Autoit
-
Skitty reacted to a post in a topic: [UDF] Google oAuth 2.0 with AutoIt.
-
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.
- 5 replies
-
- c programming
- scite for c
-
(and 2 more)
Tagged with:
-
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
- 5 replies
-
- c programming
- scite for c
-
(and 2 more)
Tagged with:
-
If TimerDiff return value in ms then you use / 100 and value is for single insert instead of all 100 lines.
-
You right but this not solve problem the editbox can't be small it should be almost full screen mode
-
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
-
@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.
-
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
-
@jchd This method don't works. I just implemented Melba23 solution.