Jump to content

argumentum

MVPs
  • Posts

    5,438
  • Joined

  • Last visited

  • Days Won

    181

argumentum last won the day on December 18

argumentum had the most liked content!

About argumentum

Profile Information

  • Member Title
    ✨Universalist ✨
  • Location
    I'm in your browser now =)
  • WWW
    https://www.youtube.com/watch?v=SjwX-zMRxO0&t=5s
  • Interests
    Relax

Recent Profile Visitors

14,026 profile views

argumentum's Achievements

  1. If you press F1 while the cursor is at a word, the help file will give you a description of it. I will step out of your postings until you show better proficiency.
  2. #include <Array.au3> _ArrayDisplay(GetMeTheTextAsArray("Texas")) Func GetMeTheTextAsArray($sTitle) Return StringSplit(WinGetText($sTitle), @CRLF, 0) EndFunc
  3. Why not just WinGetText() and StringSplit() it ?, it'd be simpler that way. If a MouseMove() is needed to update the data, then that is on the ones who coded the SmartRF being lazy.
  4. ..hard to paste the snapshot into my editor It looks good. If you still have a problem, explain it and I'll try to help Edit: oh, I see. do encapsulation, like '"my program'" with a ' and a " .... " ' 🤔
  5. If MsgBox(36, "Confirm", "Exit Application?", 0, $hGUI) = 6 Then Exit is better because it will disable the GUI while MsgBox() is active. Is there a way to do all these without registering a DLL ? - I hope someone with more knowledge can shed some light on the thread. Ok, but, it would be nicer, even if not better than this way. Thanks for the code
  6. @argumentum, please run WebView2AutoIt_v0.1\NetWebView2Lib\WebView2AutoIt\register_web2.au3 and it should work after that. Do place the project in a local drive
  7. --------------------------- Error --------------------------- Could not create WebView2 Manager. Please register the DLL. --------------------------- OK --------------------------- 😭
  8. so, the command would be Run() If you shared your code so far and what you are after, then we can help better.
  9. @jpm sent the fix to Jon. I guess we'll see the fix in the next release
  10. ; right click on gui to bring up context Menu. DONE ; right click on the "ok" button to bring up a controll specific context menu. YOUR TURN TO CODE IT #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Global $idMni_About ;~ HotKeySet("{Esc}", "_disable") Example() Func Example() Local $hGui = GUICreate("My GUI Context Menu", 300, 200) Local $idContextmenu = GUICtrlCreateContextMenu(GUICtrlCreateDummy()) Local $idMnu_Newsub = GUICtrlCreateMenu("new", $idContextmenu) Local $idMni_NewsubmenuText = GUICtrlCreateMenuItem("text", $idMnu_Newsub) Local $idButton = GUICtrlCreateButton("on", 100, 100, 70, 20) Local $idMni_AboutCM = GUICtrlCreateContextMenu(GUICtrlCreateDummy()) Local $idMni_About = GUICtrlCreateMenuItem("About button", $idMni_AboutCM) Local $idMni_Open = GUICtrlCreateMenuItem("Open", $idContextmenu) Local $idMni_Save = GUICtrlCreateMenuItem("Save", $idContextmenu) GUICtrlCreateMenuItem("", $idContextmenu) ; separator Local $idMni_Info = GUICtrlCreateMenuItem("Info", $idContextmenu) GUISetState(@SW_SHOW) While 1 ; Loop until the user exits. Switch GUIGetMsg() Case $GUI_EVENT_SECONDARYUP $aCursorInfo = GUIGetCursorInfo($hGui) If @error Then ContinueLoop ConsoleWrite('- $GUI_EVENT_SECONDARYUP - ' & $aCursorInfo[4] & @CRLF) If UBound($aCursorInfo) = 5 And GUICtrlRead($idButton) = 'on' Then Switch $aCursorInfo[4] Case 0 TrackPopupMenu($hGui, GUICtrlGetHandle($idContextmenu), MouseGetPos(0), MouseGetPos(1)) Case Else ; ..you do your part too =P TrackPopupMenu($hGui, GUICtrlGetHandle($idMni_AboutCM), MouseGetPos(0), MouseGetPos(1)) EndSwitch EndIf Case $idButton If GUICtrlRead($idButton) = 'on' Then GUICtrlSetData($idButton, 'off') Else GUICtrlSetData($idButton, 'on') EndIf Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() EndFunc ;==>Example ;~ Func _disable() ;~ GUICtrlSetState($idMni_About, $GUI_DISABLE) ;~ ConsoleWrite("Disable context menu item, please." & @CRLF) ;~ EndFunc ; Show at the given coordinates (x, y) the popup menu (hMenu) which belongs to a given GUI window (hWnd) Func TrackPopupMenu($hWnd, $hMenu, $x, $y) DllCall("user32.dll", "int", "TrackPopupMenuEx", "hwnd", $hMenu, "int", 0, "int", $x, "int", $y, "hwnd", $hWnd, "ptr", 0) EndFunc ;==>TrackPopupMenu
  11. ... Func _WinRT_Startup() If Not @AutoItX64 Then Return SetError(1, 0, 1) ... Func _WinUI3_Startup($iMajorVers = Default, $iMinorVers = Default, $sVersionTag = Default, $iMinVers = Default, $iOptions = Default) If Not @AutoItX64 Then Return SetError(1, 0, False) ... #include "WinUIBase.au3" If Not @AutoItX64 Then Exit ConsoleWrite(@CRLF & '@@(' & @ScriptLineNumber & ') : Needs to run x64.' & @CRLF) _WinRT_Startup() If @error Then Exit ConsoleWrite(@CRLF & '@@(' & @ScriptLineNumber & ') : Error=' & @error & @CRLF) _WinUI3_Startup() If @error Then Exit ConsoleWrite(@CRLF & '@@(' & @ScriptLineNumber & ') : Error=' & @error & @CRLF) ... ..something to let the user know that is not running x64. And since the default install runs x86 for compatibility, when click-click from Explorer, the "#AutoIt3Wrapper_UseX64=y" is not going to do it's thing.
  12. (10,0) [0x00000000] The operation completed successfully. > +>09:57:56 AutoIt3 ended. rc:0 That did it. Thanks
  13. (9,0) [0x00000000] The operation completed successfully. > !>23:39:47 AutoIt3 ended. rc:-1073741819 🤷‍♂️ On 23H2, #AutoIt3Wrapper_UseX64=y
  14. Goodness @MoriceGrene ! ..but I figure you'd need it and did it anyway. It couldn't be any louder I claim to be the "king of copy and paste", but it does takes some reading. @argumentum slaps @MoriceGrene around a bit with a large trout
×
×
  • Create New...