Jump to content

squadjot

Active Members
  • Posts

    39
  • Joined

  • Last visited

Recent Profile Visitors

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

squadjot's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Is there a way to define (shared) location of the EBWebView folder?
  2. Have anyone noticed that the autoit webview is kind of blurred, compared to the bing site running in edge?
  3. Just to clarify.. var fso =new ActiveXObject("Scripting.FileSystem"); The line above has nothing to do with ActiveX web page components, It's just name for a function used in JSCRIPT for WSH scripting. With that function you can get COM Objects ( javascript objects ) I tried making my own custom ActiveXObject method in Edge WebView2, hosted in a C# .NET app. I could retrieve the javascript COM object just fine, so it's definitely possible.. ( And no... not using any "legacy IE mode" or whatever ) I didn't complete that project because i didn't like the fact that it was dependent on .NET. But the point is.. the windows COM / JS interface works 100% in a modern Webview. I'm following this because my wish is to be able to replicate what mshta.exe does. mshta.exe renders html (commonly .hta) in a "window" that has access to the COM objects ( just like vb and jscript ) This alone is pretty powerful. The downsides are that mshta can , at best , use IE11 standard + it has old jscript engine. Being able to produce fully fledged and modern HTML applications in a AutoIT+WebView Host, would be pretty hot i think..
  4. Hi! I have a small app that moves and resizes a GUI in a AutoIt window to a desired coordinate and size. The problem is that it does not take windows desktop scale into consideration. So because i'm running with 125% scale on my desktop, the AutoIt windows is both placed incorrectly and the size is too big. What would be a good way to counter this so it works with whatever windows desktop scale is?
  5. Like this? https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/hostobject What i'm requesting is the ability to instantiate native ActiveXObjects in the WebView2 browser. So we, as an example, could write to a file directly from the WebView2 with javascript. This way you would be able to do the same stuff as you would in a HTA, just with a WebView2 instead of the legacy IEBrowser
  6. Hi, cool thing you guys got going here! And great work from larsJ! Just a crazy thought.. Would it be possible to somehow bridge a native ActiveXObject, or even the whole WSH interface ( jscript ) into the WebView2? So you straight from the Webview html/js file could do things like var fso = new ActiveXObject("WScript.shell") Not sure, but maybe this could be used: https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.addhostobjecttoscript?view=webview2-dotnet-1.0.1210.39
  7. Does this still work? When i try, it says i dont have VLC with active X installed. (which i have , VLC version 2.2.4)
  8. Hi everybody I need to read a multidimensional array, declared as a string, written in a ini file. Like this: //settings.ini [Main] areas=[[0,10,50,50],[500,560,50,50]]When i read the value with IniRead, it's a string. Is there an easy way to convert that to valid arrays? Thanks
  9. shazdeh did you make it work?
  10. Yeah i know it's not "runnable".. but it's more or less it.. The only change was that i was making the isMouseOver($dropZone1) call from inside WM_DROPFILES. I checked that the parameter $ctrlRef is the integer of the guictrl.. Anyways, i'll see if i can post a more complete example. thanks for your help so far!
  11. Ahh, @GUI_DropId was what i needed - thanks a bunch! Just a side question while trying to make a solution (trying to learn) Any reason why this would not work? (Abstract) (To clarify a bit, the problem is that $cPos = ControlGetPos , does not end up as an array) Global $dropZone1 = GUICtrlCreateLabel("", 0, 0, 150, 150) GUICtrlSetBkColor(-1, $COLOR_RED) GUICtrlSetResizing(-1, $GUI_DOCKALL) GUICtrlSetState(-1, $GUI_DROPACCEPTED) test() Func test() $wasOver = isMouseOver($dropZone1) EndFunc Func isMouseOver($ctrlRef) Local $mp = MouseGetPos() Local $cPos = ControlGetPos("","",$ctrlRef) Local $res = False if(IsArray($cPos)) Then if($mp[0] < $cPos[0]+$cPos[2] And $mp[1] < $cPos[2]+$cPos[3] And $mp[0] > $cPos[0] And $mp[1] > $cPos[1] ) Then $res = True Else EndIf Else ; not array EndIf return $res EndFunc
  12. Hi, i'd like to create a GUI with multiple "dropzones" (labels) , The basics are working fine, - but how do i find out which label the files was dropped on to? My script goes something like this Global $__DropFiles Global $hGUI = GUICreate('DragNDrop', 550, 550, -1, -1, -1, $WS_EX_ACCEPTFILES) Global $dropZone1 = GUICtrlCreateLabel("", 0, 0, 150, 150) GUICtrlSetBkColor(-1, $COLOR_RED) GUICtrlSetResizing(-1, $GUI_DOCKALL) GUICtrlSetState(-1, $GUI_DROPACCEPTED) Global $dropZone2 = GUICtrlCreateLabel("", 160, 0, 150, 150) GUICtrlSetBkColor(-1, $COLOR_BLUE) GUICtrlSetResizing(-1, $GUI_DOCKALL) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUIRegisterMsg($WM_DROPFILES, "WM_DROPFILES") GUISetState(@SW_SHOW, $hGUI) Func WM_DROPFILES($hWnd, $iMsg, $iwParam, $ilParam) #forceref $hWnd, $iMsg, $ilParam Local $aError[1] = [0], $aReturn Switch $iMsg Case $WM_DROPFILES $aReturn = _WinAPI_DragQueryFileEx($iwParam) If IsArray($aReturn) Then $__DropFiles = $aReturn Else $__DropFiles = $aError EndIf ; _WinAPI_DragFinish($iwParam) EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_DROPFILES   
  13. Above worked, and i can use that.. But, is there a way to directly call a AutoIT function from an embedded webpage? using Local $oIE = _IECreateEmbedded() Thanks
×
×
  • Create New...