Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/05/2022 in all areas

  1. Musashi

    Stop and Pause

    Maybe something like this : #include <MsgBoxConstants.au3> HotKeySet("{ESC}", "_Terminate") HotKeySet("{F8}", "_PauseScript") Global $bPaused = False ; Main Loop While 1 Sleep(100) WEnd Func _PauseScript() $bPaused = True ToolTip("Script is paused", 10, 10) If MsgBox(0, 'Pause', 'Script is paused') = $IDOK Then $bPaused = False ToolTip("") Return EndIf EndFunc ;==>_PauseScript Func _Terminate() Exit EndFunc
    2 points
  2. I've ported some of the JavaScript 140 Bytes demos from dwitter.net to FreeBasic. Download AiO with 1000 examples (7-Zip archive): The beauty - magic of math Vol. 1 - 23 build 2024-01-14.7z (5.09 mb with source code and Windows x64 compiled executables) or have a look to my 1drive folder: _dwitter.net Some screenshots: ... Autoit is too slow for almost all of these examples. Happy watching.
    1 point
  3. You are welcome. By a mistake Vol. 5 and Vol. 10 are the same. I updated the archive and added a few examples to Vol. 12 not to change the whole topic description...
    1 point
  4. @mLipok Can you try replacing your error MsgBox with this and show us the results?: #include <WinAPIError.au3> MsgBox(48, "Error " & _WinAPI_GetLastError(), _WinAPI_GetLastErrorMessage()) You can find the documentation for the WinHttpQueryDataAvailable function here: https://docs.microsoft.com/en-us/windows/win32/api/winhttp/nf-winhttp-winhttpquerydataavailable This is the function called by the _WinHttpQueryDataAvailable UDF.
    1 point
  5. Did you forget to escape the backslash in your RegEx? regex101 says it's an error Edit: And it's broken if selected comes before the value Edit2: Per the HTML Standard (?) a closing </option> tag isn't even required I'd disagree without defining best. Your solution is the fast and easy, while not relying on a profile is probably better practice
    1 point
  6. IanN1990, You should always use _GUICtrlListView_SetExtendedListViewStyle to set extended ListView styles. Why? Because some of the values are the same as for $WS_EX_* styles and if you add them in the creation command Windows always applies the $WS_EX styles rather than the $LVS_EX ones. M23
    1 point
×
×
  • Create New...