pjzeashklbvdrguppr Posted September 15, 2021 Posted September 15, 2021 How to move this cross a little lower? #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Constants.au3> #include <WinAPI.au3> Local $iSize = 5 #region GUI $hGUIMain = GUICreate("") $hGUIChild = GUICreate("", $iSize, $iSize, -1, -1, $WS_POPUP, BitOR($WS_EX_TOPMOST, $WS_EX_LAYERED, $WS_EX_TRANSPARENT), $hGUIMain) GUISetBkColor($COLOR_BLACK) GUICtrlCreateLabel("", 0, Int($iSize / 2), $iSize, 1) GUICtrlSetBkColor(-1, $COLOR_BLUE) GUICtrlCreateLabel("", Int($iSize / 2), 0, 1, $iSize) GUICtrlSetBkColor(-1, $COLOR_BLUE) _WinAPI_SetLayeredWindowAttributes($hGUIChild, $COLOR_BLACK) GUISetState(@SW_SHOWNOACTIVATE, $hGUIChild) #endregion While 1 Sleep(10) _WinAPI_SetWindowPos($hGUIChild, $HWND_TOPMOST, 0, 0, 0, 0, BitOR($SWP_NOACTIVATE, $SWP_NOMOVE, $SWP_NOSIZE, $SWP_NOSENDCHANGING)) WEnd
Developers Jos Posted September 15, 2021 Developers Posted September 15, 2021 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Dan_555 Posted September 15, 2021 Posted September 15, 2021 Like this: $hGUIChild = GUICreate("", $iSize, $iSize, -1, (@DeskTopHeight/2)+50, $WS_POPUP, BitOR($WS_EX_TOPMOST, $WS_EX_LAYERED, $WS_EX_TRANSPARENT), $hGUIMain) Some of my script sourcecode
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now