Jump to content

AustrianOak

Active Members
  • Posts

    602
  • Joined

  • Last visited

Everything posted by AustrianOak

  1. $ahInput[$ahInput[0][0]][0] = GUICreate(" " & $ahInput[0][0], 40, 40, $aMainGUI_Pos[0] + $ipos[0] + 5, $aMainGUI_Pos[1] + $ipos[1] + 5, _ $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_LAYERED)) can i set a png to this using SetBitmap?
  2. I can't figure out how to get this to work in another gui...
  3. Figured it out, took out $GUI_EVENT_PRIMARYDOWN, $GUI_EVENT_PRIMARYUP on line 28. But I'm surprised on how little activity there's been. The forum seemed so much more lively last year.
  4. does anyone know why the program closes when I click the png?
  5. Yeah, programs run all the time when someone switchs users.
  6. DaRam, sorry I've been away so long. Concerning the script, strangely when I started it up today the script worked perfectly and the png appeared and stayed until I clicked on it. I hadn't even changed any lines yet but since you said the Return on line 35 wasn't necessary I commented it out and the script remained working. One question though, does the script close once you click on the png? If so what part of the script is responsible for this?
  7. Well in taskmanager it shows your script is running but again, no png can be seen.
  8. i figured out i shouldnt call the DismissSplash() but when i take that out in line 9 then the png doesnt appear?
  9. thanks. i think this might work. i've been trying to tweak it towards my needs and i cant figure out how to get the flash to appear and then just stay there.
  10. If it requires a higher version than 3.2.11.5 I cant use it. If it doesnt, where might I be able to find the include <A3LGDIPlus.au3>?
  11. I have a question with a problem I have with png files in my program. I need to get rid of the window border around my window and want everything except my image file (which is a fish) to be transparent. (you're going to have to get a subsitute image file that's 26 by 26) How do I do this? #include <GDIPlus.au3> #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <array.au3> #include <misc.au3> Global $GUI_OBJECT[1][5]; 0=hwnd, 1=width, 2=height, 3=graphics obj, 4 = img obj Opt("GUIOnEventMode",1) $hwnd=GUICreate("Parent",400,300) GUISetOnEvent($GUI_EVENT_CLOSE,"close") GUISetState() _GDIPlus_Startup() $GUI_OBJECT[0][0]=$hwnd $GUI_OBJECT[0][1]=26 $GUI_OBJECT[0][2]=26 $GUI_OBJECT[0][3]=_GDIPlus_GraphicsCreateFromHWND($hwnd) $GUI_OBJECT[0][4]=_GDIPlus_ImageLoadFromFile("background.png") _RePaint($GUI_OBJECT[0][0],0,0,0) GUIRegisterMsg($WM_PAINT,"_RePaint") Do Sleep(20) If _IsPressed("01") And WinActive($hwnd) Then _CreateChild($hwnd,Random(0,@DesktopWidth,1),Random(0,@DesktopHeight,1),26,26,"background.png") Do Sleep(10) Until Not _IsPressed("01") EndIf Until False Func _CreateChild($parent,$x,$y,$w,$h,$imagename) ReDim $GUI_OBJECT[Ubound($GUI_OBJECT)+1][5] $GUI_OBJECT[Ubound($GUI_OBJECT)-1][0]=GUICreate("Child number: "&Ubound($GUI_OBJECT),$w,$h,$x,$y) GUISetState(@SW_SHOW,$GUI_OBJECT[Ubound($GUI_OBJECT)-1][0]) $GUI_OBJECT[Ubound($GUI_OBJECT)-1][1]=$w $GUI_OBJECT[Ubound($GUI_OBJECT)-1][2]=$h $GUI_OBJECT[Ubound($GUI_OBJECT)-1][3]=_GDIPlus_GraphicsCreateFromHWND($GUI_OBJECT[Ubound($GUI_OBJECT)-1][0]) $GUI_OBJECT[Ubound($GUI_OBJECT)-1][4]=_GDIPlus_ImageLoadFromFile($imagename) GUISetOnEvent($GUI_EVENT_CLOSE,"close",$GUI_OBJECT[Ubound($GUI_OBJECT)-1][0]) _RePaint($GUI_OBJECT[Ubound($GUI_OBJECT)-1][0],0,0,0) EndFunc Func _RePaint($hwndparam,$msg,$wparam,$lparam) For $i=0 To UBound($GUI_OBJECT)-1 If $hwndparam=$GUI_OBJECT[$i][0] Then _GDIPlus_GraphicsDrawImageRect($GUI_OBJECT[$i][3],$GUI_OBJECT[$i][4],0,0,$GUI_OBJECT[$i][1],$GUI_OBJECT[$i][2]) ExitLoop EndIf Next Return $GUI_RUNDEFMSG EndFunc Func close() If @GUI_WinHandle<>$hwnd THen For $i=0 To UBound($GUI_OBJECT)-1 If @GUI_WinHandle=$GUI_OBJECT[$i][0] Then _GDIPlus_GraphicsDispose($GUI_OBJECT[$i][3]) _GDIPlus_ImageDispose($GUI_OBJECT[$i][4]) GUIDelete($GUI_OBJECT[$i][0]) _ArrayDelete($GUI_OBJECT,$i) Return EndIf Next EndIf For $i=0 To UBound($GUI_OBJECT)-1 _GDIPlus_GraphicsDispose($GUI_OBJECT[$i][3]) _GDIPlus_ImageDispose($GUI_OBJECT[$i][4]) Next _GDIPlus_Shutdown() Exit EndFunc
  12. this was a real old topic dude.
  13. bump. someone please help im nearly finished with my script this is the only thing in my way.
  14. a jpg isnt transparent though. come on ive already explained this.
  15. i just realized your method wont work becuz in my main code i need to see my main gui. itd be nice if someone could figure out why my child guis dissappear when i add those styles...
  16. ok, but did u even try my code to really know what im talking about? try it like it is in the link i gave you and try it by adding those styles and i think u'll see my problem. even if what u say works, how will i make it a toolwindow?
  17. I dont think this is what I was looking for. I need my window to be a toolwindow so it doesnt show up in taskmanager and needs to be a pop-up so it wont have a border and needs to be layered so the background of the gui will be transparent and only the picture can be seen. as in my code i posted above when i add the necessary styles to the gui creation part i think i mentioned that no little guis pop-up whatsoever. see this post: http://www.autoitscript.com/forum/index.ph...st&p=620087
×
×
  • Create New...