Jump to content

Recommended Posts

Posted
1 minute ago, argumentum said:

True. Did the needless update and it solved it ( not so needless after all ! ) :) 

Oh sorry it's my fault, i thought every one had that. I'll update the requirements.

Posted

<rant>
I hate ( hate is a strong word, should not use that word ) that unless ... grrr !! :mad2:
...unless you install the latest the developer can not work and to support lesser/older versions becomes a problem :wacko2:

..then everyone needs a setup compatible with the developer's setup so stuff work. Is not the developer's fault but ... is like you'd have to code in Win95 to make sure that stuff is cross-MS-versions, but then again may not work in newer setups, .... so ... .
What I love, just love, about AutoIt is that I never have to worry about any of that.
</rant>

Can this be compiled with less requirements ? Like the lowest DirectX and WinXP ?
This you put together is beautiful. Plain beautiful. ❤️
But unless drop and run, is a possible problem for a "user level" environment, where to reach an admin to do anything is a problem.

Also, do add a Sleep(10) in your example's main loop and a #include-once in the UDF

And again, thanks for all this you put together :) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)
#include-once
; author:   thedemons

#include <WinAPI.au3>
#include <WinAPIDiag.au3>

Global $__imgui_created = False
Global $__imgui_dllpath = @ScriptDir & "\imgui.dll"
If @AutoItX64 Then $__imgui_dllpath = @ScriptDir & "\dll_64\imgui.dll"

#cs
If @AutoItX64 Then $__imgui_dllpath = "imgui_x64.dll" ; <--- this would be better
so that the DLL can be anywhere in a searchable path, say, @SystemDir or what not
#ce

If Not FileGetSize($__imgui_dllpath) Then
    MsgBox(16, "Error", "Cannot find imgui.dll" & @CRLF & "Please update to the latest version of DirectX")
    Exit
EndIf

Global $IMGUI_DLL = DllOpen($__imgui_dllpath)
If $IMGUI_DLL = -1 Then
    MsgBox(16, "Error", "Cannot load imgui.dll" & @CRLF & "Please update to the latest version of DirectX")
    Exit
EndIf

OnAutoItExitRegister(Shutdown_)
Func Shutdown_()
    If $__imgui_created Then _ImGui_ShutDown()
    DllClose($IMGUI_DLL)
;~  FileDelete($__imgui_dllpath)
EndFunc

..this too can make it easier on the user. ( just an idea )

Edit: add a FileVersion to the DLL

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • 1 year later...
Posted

The dxdiag 10.00.17763 version cannot be started. Can you match earlier versions of DLL files? Thank you very much, if you can, I'm sure there will be more devices available.

  • 4 weeks later...
Posted (edited)

I have no problems with the dlls and compiled exes in my computer. But when i compiled a source, the compiled exe doesn't work on other computers which is same as mine. Eventhough directx requirements you mentioned was installed. I checked imgui.ini and i don't see anything related to Viewports. But in my computer i see viewports id.

Edited by Wisok

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...