Jump to content

Glance - GUI library for AutoIt, based on Windows api.


 Share

Recommended Posts

@Andreik

This time TreeView click ? Double or single ?

 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

@Andreik,

Oh I see. That's interesting. Let me check. 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

Hi all,

I just pushed a bug fixed version of Glance gui lib. Please check. Changed some stack generated strings to heap strings. 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

@Andreik,

Thanks. Let me check what I can do with x86. I had very little priority when it came to the X86. 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

Hi all,

A script braking change !!!

I just improved the way of using property getter/setter and event.

New way.

; Set a property
Local $btn1 = glf_NewButton($frm, "Normal", 15)
glf_ControlSetProperty($btn2, $btn2.backColor, 0x90be6d)

; Get a property
Local $txt = glf_ControlGetProperty($tb, $tb.text)

; Set an event handler
glf_ControlAddHandler($btn1, $btn1.onClick, "onBtnClick")
glf_MainMenuAddHandler($frm, "Basic Job", $frm.onMenuClick, "menuClick")

Please download the updated files from git repo

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

Hi first of alle great looking GUI. 

I have problems Running your Demo APP i get this Error

image.png.425ddbde8435261fcdbc30a3759d281a.png

I use Visual Studio Code with the Autoit Plugin by Damian. 

But also when i compile into an Exe with the Aut2exe_x64.exe the error stays the same. Any Idea what am i doing wrong?

Link to comment
Share on other sites

Sorry for spamming but i could not Edit my Post maybee because I am new to the Forum. I activated the Consolewrite in the glance.au3 and i get "-1" Result from the DllOpen, also replaced the File Name with the Full File Path but still the same Result 

Link to comment
Share on other sites

@akanada,

I think that's because of not setting the working directory. You can check this with these steps.
1. Open your script folder and start cmd from there.

2. Copy & paste the run command from SciTE editor to cmd and run. (SciTE will show you the running command in output window.)

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

14 hours ago, akanada said:

I have problems Running your Demo

I added this:

#AutoIt3Wrapper_UseX64=y
If Not @AutoItX64 And Not @Compiled Then Exit ShellExecute(StringTrimRight(@AutoItExe, 4) & "_x64.exe", '"' & @ScriptFullPath & '"')
If AutoItIsTooOld() Then Exit MsgBox(0, @ScriptName, "Your version of AutoIt is too old." & @LF & "Update and try again.", 60)
Func AutoItIsTooOld($sMinVer = "3.3.15") ; also this. just in case map[] is not available
    If Version2Int($sMinVer) > Version2Int(@AutoItVersion) Then Return 1
EndFunc   ;==>AutoItIsTooOld
Func Version2Int($sVersion) ; works ok for upto 5 digit long
    Local $aArray = StringSplit(StringStripWS(StringReplace($sVersion & "....", ",", "."), 8), ".")
    Return Int(Int($aArray[1]) & StringRight('00000' & Int($aArray[2]), 5) & _
            StringRight('00000' & Int($aArray[3]), 5) & StringRight('00000' & Int($aArray[4]), 5))
EndFunc   ;==>Version2Int

to make sure I'm running x64, and the version support maps.

Edited by argumentum
better code

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

Link to comment
Share on other sites

Thanks for your Tips Guys, yes I am using the X64 Version. Working directory could be an issue because i have a mostly portable Version of Scite and Autoit. 

I will try on Monday, thank you and have a nice Weekend. 

Edited by akanada
Link to comment
Share on other sites

  • 3 weeks later...

Hi,

First, thanks @kcvinker for this great work!

I have a suggestion: can be add navigation through the controls using the keyboard? Something like what $ws_tapstop does. I ran the example code, but keyboard navigation (for example, using tab key) isn't possible. This can be useful to improve accessibility for blind people.

Link to comment
Share on other sites

@Mateocedillo,

Thanks for trying the library. Let me check the key navigation. 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

19 hours ago, kcvinu said:

@Mateocedillo,

Thanks for trying the library. Let me check the key navigation. 

Hi @kcvinu,

Thank you! I hope key accelerators or navigating  will be implemented, I read through the wrapper glance.au3 and only found possible things that can be done with EventHandler (key_handle and key_press) of which I doubt that key accelerators can be set for all GUI controls that possible to create, I think it is related to the library in Nym. Please let me know news about this, and if you need to do tests regarding this function (eg. With a screen reader), I will be happy to do it.

Link to comment
Share on other sites

@Mateocedillo

Hi, It can be implemented from the Nim side. But I was busy in these days. I will sure look into it.  

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...