Sardith Posted July 26, 2006 Posted July 26, 2006 (edited) The top GUI was coded in C++, im still trying to learn the finer points on Autoit's GUI system. I wanted to know if someone could tell me if it's possible to create a GUI like the one Coded in C++, with-out a Title-Bar if thats what you even call it. So that the Exit and Minimize button's are within the GUI... Sorry, for the lack of proper terminology. C++ and my autoit GUI id, like to mimic the top one(C++) $WS_EX_DLGMODALFRAME ?? Edited July 26, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
GaryFrost Posted July 26, 2006 Posted July 26, 2006 #include <GuiConstants.au3> $GUI = GUICreate("My message box", 400, 78, -1, -1, BitOR($WS_POPUPWINDOW, $WS_BORDER)) $Button_Exit = GUICtrlCreateButton("X", 380, 0, 20, 20) GUICtrlSetFont($Button_Exit, Default, 600) $Button_Min = GUICtrlCreateButton("_", 360,0,20,20) $Label = GUICtrlCreateLabel("", 0, 0, 370, 30) GUICtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT) $Label2 = GUICtrlCreateLabel("This is a test, this is only a test", 0, 30, 400, 48) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $Button_Exit Exit Case $msg = $Label Or $msg = $Label2 _Drag($GUI) Case $msg = $Button_Min GUISetState(@SW_MINIMIZE) EndSelect WEnd Func _Drag($h_gui) DllCall("user32.dll", "int", "ReleaseCapture") DllCall("user32.dll", "int", "SendMessage", "hWnd", $h_gui, "int", 0xA1, "int", 2, "int", 0) EndFunc ;==>_Drag SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Sardith Posted July 26, 2006 Author Posted July 26, 2006 Thanks alot, gafrost. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
GaryFrost Posted July 26, 2006 Posted July 26, 2006 Thanks alot, gafrost. NP, you'll have to play around with it to get it the way you want exactly #include <GuiConstants.au3> $GUI = GUICreate("My message box", 400, 78, -1, -1, BitOR($WS_POPUPWINDOW, $WS_BORDER)) GUISetBkColor(0x000000) $Button_Exit = GUICtrlCreateLabel("X", 380, 0, 20, 20, $SS_CENTER, $WS_EX_STATICEDGE ) GUICtrlSetFont($Button_Exit, Default, 600) GUICtrlSetColor($Button_Exit, 0xFFFFFF) $Button_Min = GUICtrlCreateLabel("_", 360,0,20,20, $SS_CENTER, $WS_EX_STATICEDGE ) GUICtrlSetColor($Button_Min, 0xFFFFFF) GUICtrlSetFont($Button_Exit, Default, 600) $Label = GUICtrlCreateLabel("", 0, 0, 370, 30) GUICtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT) $Label2 = GUICtrlCreateLabel("This is a test, this is only a test", 0, 30, 400, 48) GUICtrlSetColor($Label2, 0xFFFFFF) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $Button_Exit Exit Case $msg = $Label Or $msg = $Label2 _Drag($GUI) Case $msg = $Button_Min GUISetState(@SW_MINIMIZE) EndSelect WEnd Func _Drag($h_gui) DllCall("user32.dll", "int", "ReleaseCapture") DllCall("user32.dll", "int", "SendMessage", "hWnd", $h_gui, "int", 0xA1, "int", 2, "int", 0) EndFunc ;==>_Drag SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Sardith Posted July 26, 2006 Author Posted July 26, 2006 (edited) Is it possible to make the background a picture? When I try, well lets just say every goes away. IE. Buttons, etc. ;Picture/Logo GUICtrlCreatePic(@SystemDir & "\Hook.bmp", -1, -1, 200, 75) $GUI = GUICreate("test", 199, 74, -1, -1, BitOR($WS_POPUPWINDOW, $WS_BORDER)) ;GUISetBkColor(0x000000) GUICtrlCreatePic(@SystemDir & "\Hook.bmp", -1, -1, 200, 75) $Button_Exit = GUICtrlCreateLabel("X", 184, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE) GUICtrlSetFont($Button_Exit, Default, 600) GUICtrlSetColor($Button_Exit, 0xFFFFFF) $Button_Min = GUICtrlCreateLabel("_", 166, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE ) GUICtrlSetColor($Button_Min, 0xFFFFFF) GUICtrlSetFont($Button_Exit, Default, 600) ;$Label = GUICtrlCreateLabel("", 0, 0, 370, 30) ;GUICtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT) ;$Label2 = GUICtrlCreateLabel("This is a test, this is only a test", 0, 30, 400, 48) ;GUICtrlSetColor($Label2, 0xFFFFFF) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $Button_Exit Exit ;Case $msg = $Label ;_Drag($GUI) Case $msg = $Button_Min GUISetState(@SW_MINIMIZE) EndSelect WEnd Drag isn't working or the buttons. Not sure why the buttons arn't work, drag isn't working because of the label. But you can't have the label and the background, because the label cuts off the background. Any help or ideas for the drag would be great. Doesn't work with buttons. Edited July 26, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
GaryFrost Posted July 26, 2006 Posted July 26, 2006 just need to disable the pic(s) i.e. #include <GuiConstants.au3> $GUI = GUICreate("test", 199, 74, -1, -1, BitOR($WS_POPUPWINDOW, $WS_BORDER)) $pic1 = GUICtrlCreatePic(@SystemDir & "\oobe\images\wpakey.jpg", -1, -1, 200, 75) GUICtrlSetState($pic1, $GUI_DISABLE) $Button_Exit = GUICtrlCreateLabel("X", 184, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE) GUICtrlSetFont($Button_Exit, Default, 600) GUICtrlSetColor($Button_Exit, 0xFFFFFF) $Button_Min = GUICtrlCreateLabel("_", 166, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE) GUICtrlSetColor($Button_Min, 0xFFFFFF) GUICtrlSetFont($Button_Exit, Default, 600) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $Button_Exit Exit Case $msg = $Button_Min GUISetState(@SW_MINIMIZE) EndSelect WEnd SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Sardith Posted July 26, 2006 Author Posted July 26, 2006 (edited) Thanks alot. Still need the ability to drag some how though.. Edited July 26, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
GaryFrost Posted July 26, 2006 Posted July 26, 2006 #include <GuiConstants.au3> $GUI = GUICreate("test", 199, 74, -1, -1, BitOR($WS_POPUPWINDOW, $WS_BORDER)) $pic1 = GUICtrlCreatePic(@SystemDir & "\oobe\images\wpakey.jpg", -1, -1, 200, 75) GUICtrlSetState($pic1, $GUI_DISABLE) $Button_Exit = GUICtrlCreateLabel("X", 184, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE) GUICtrlSetFont($Button_Exit, Default, 600) GUICtrlSetColor($Button_Exit, 0xFFFFFF) $Button_Min = GUICtrlCreateLabel("_", 166, 0, 16, 17, $SS_CENTER, $WS_EX_STATICEDGE) $Label = GUICtrlCreateLabel("", 0, 0, 166, 17) GUICtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT) $Label2 = GUICtrlCreateLabel("", 0, 17, 199, 57) GUICtrlSetBkColor($Label2, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor($Button_Min, 0xFFFFFF) GUICtrlSetFont($Button_Exit, Default, 600) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $Button_Exit Exit Case $msg = $Button_Min GUISetState(@SW_MINIMIZE) Case $msg = $Label Or $msg = $Label2 _Drag($GUI) EndSelect WEnd Func _Drag($h_gui) DllCall("user32.dll", "int", "ReleaseCapture") DllCall("user32.dll", "int", "SendMessage", "hWnd", $h_gui, "int", 0xA1, "int", 2, "int", 0) EndFunc ;==>_Drag SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Sardith Posted July 26, 2006 Author Posted July 26, 2006 Thanks alot gafrost, for all your help/code. Got it working now =) [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
rambo3889 Posted July 26, 2006 Posted July 26, 2006 (edited) [Offtopic] Arh someone is using cheat to hl2 ?? [/offtopic] [Edit] In your picture under the hl2 cheater/trainer nvm there is a autoit app gui with the title "system" which looks cool could you post the source here? If it isnt your script then just link me if you have the link Edited July 26, 2006 by rambo3889 My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight!
Sardith Posted July 26, 2006 Author Posted July 26, 2006 (edited) It's my source for a injector. Which im not ready to release, but i'll soon.. be releasing it. What i'll say about my injector is that it has some differen't run arounds/hooking methods then the current HLH2 injector does and the old Game-Deception injectors that have been floating around/re-skin and passed off as not bannable. It is for Counter-Strike Source... HLH2 is a injector thats out there. I also have some awp scripts etc, that are nice. I also have my proof of concept Pixel aimbot, but it needs color models. I'll have my injector released in a few weeks, but remember you still need a hacks .dll file. My Injector will be Vac2 proof for a long time to come, but .dll or the hack it's injecting you'll need to working about. Vac2 just detects the way the hack hooks the game funcations. Edited July 26, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
rambo3889 Posted July 26, 2006 Posted July 26, 2006 Okay i thought it was something there have been posted on the forums but i thought wrong.. Nvm im looking forward to the release of the script al though i dont have Hl 2 only css My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight!
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