
DutchCoder
-
Posts
13 -
Joined
-
Last visited
Reputation Activity
-
DutchCoder got a reaction from mLipok in what is a GUI you think of as "good"?
Wrote my own Interface UDF in plain AutoIt (without GDI+...)
Took some OCD to create all the Look-'n-Feelz, animations and shadows, but very rewarding.
Some simple examples...
-
DutchCoder got a reaction from argumentum in WinActiveBorder()
Windows 11 also has a similar feature built-in (Settings -> Personalization -> Colors -> Show accent color on title bars and windows borders)
-
DutchCoder got a reaction from Belini in Outline in letters using GDI
Func _CreateLabel($_text, $_x, $_y, $_w = Default, $_h = Default, $_style = Default, $_fgcol = Default, $_bkcol = 0) Local $_d[4][2] = [[0, -1], [0, 1], [-1, 0], [1, 0]] For $_z = 0 To 3 GUICtrlCreateLabel($_text, $_x + $_d[$_z][0], $_y + $_d[$_z][1], $_w, $_h, $_style) GUICtrlSetColor(-1, $_bkcol) GUICtrlSetBkColor(-1, -2) Next $_label = GUICtrlCreateLabel($_text, $_x, $_y, $_w, $_h, $_style) GUICtrlSetColor(-1, $_fgcol) GUICtrlSetBkColor(-1, -2) Return $_label EndFunc Func _SetLabelData($_handle, $_data) For $_z = 0 To 4 GUICtrlSetData($_handle - $_z, $_data) Next EndFunc Simple solution as replacement for your GUICtrlCreateLabel() and GUICtrlSetData()
-
DutchCoder got a reaction from Colduction in AutoIt Snippets
Wait for Mouse to move (two ways)
Normally when you have a GUI you can use this:
Func _MouseWaitMove() Do Sleep(100) Until GuiGetMsg() = -11 EndFunc But sometimes you don't have a GUI. This one always works:
Func _MouseWaitMove() $_old = MouseGetPos() Do Sleep(100) $_new = MouseGetPos() Until ($_new[0] - $_old[0]) Or ($_new[1] - $_old[1]) EndFunc
-
DutchCoder got a reaction from Inpho in AutoIt Snippets
Wait for Mouse to move (two ways)
Normally when you have a GUI you can use this:
Func _MouseWaitMove() Do Sleep(100) Until GuiGetMsg() = -11 EndFunc But sometimes you don't have a GUI. This one always works:
Func _MouseWaitMove() $_old = MouseGetPos() Do Sleep(100) $_new = MouseGetPos() Until ($_new[0] - $_old[0]) Or ($_new[1] - $_old[1]) EndFunc