Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance,force
- SetBatchLines,-1
- #Include,<hellbents_gdip>
- popUp:=Layered_Window_SetUp(4,550,50,450,650,1,"+alwaysontop")
- Fill_Boxx(pGraphics,colour,x,y,w,h)
- fill_boxX(popUp.g,"000000",0,0,popUp.w,popUp.h)
- border:=new Outline
- border.set(10,410,10,600,15,25,45,65,"f00000","a00000")
- border.draw(popUp)
- jumpOnMe:=[]
- onWhatTojump :=new Bars
- ;~ onWhatTojump.add(jumpOnMe,100,250,450,75,25,10,"000000")
- onWhatTojump.draw(popUp,jumpOnMe)
- onWhatTojump.random:=0
- UpdateLayeredWindow(popUp.hwnd, popUp.hdc, popUp.x, popUp.y, popUp.w, popUp.h)
- loop {
- Sleep 15
- ;~ randomx(Me,Outline,w1,w2,h,v,colour){
- if(onWhatTojump.random < 0){
- onWhatTojump.randomx(jumpOnMe,border,100,200,15,2,colourGenerator())
- }
- border.draw(popUp)
- onWhatTojump.move(jumpOnMe)
- onWhatTojump.draw(popUp,jumpOnMe)
- UpdateLayeredWindow(popUp.hwnd, popUp.hdc)
- }
- class Outline{
- set(x1,x2,y1,y2,wx1,wx2,wy1,wy2,colourBack,colourLine){
- This.x1:=x1
- This.x2:=x2
- This.y1:=y1
- This.y2:=y2
- This.wx1:= wx1+x1
- This.wx2:= -wx2+x2
- This.wy1:= wy1+y1
- This.wy2:= -wy2+y2
- this.colourBack:=colourBack
- this.colourLine:=colourLine
- }
- draw(popUp){
- fill_boxX(popUp.g,this.colourLine,this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)
- fill_boxX(popUp.g,this.colourBack,this.wx1,this.wy1,this.wx2-this.wx1,this.wy2-this.wy1)
- }
- }
- Class Bar{
- set(x1,x2,y1,ymin,h,v,colour){
- This.x1:=x1
- This.x2:=x2
- This.y1:=y1
- This.ymin:=ymin
- This.h:=h
- This.v:=v
- This.colour:=colour
- this.deleteme:=0
- }
- draw(popUp){
- fill_boxX(popUp.g,this.colour,this.x1,this.y1,this.x2 - this.x1,this.h)
- ;~ fill_boxX(popUp.g,"ffffff",0,0,250,250)
- }
- move(){
- This.y1-=THIS.V
- this.delete()
- }
- delete(){
- if(this.y1 < this.ymin )
- this.deleteme:=1
- }
- }
- class Bars {
- draw(popUp,Me){
- for i,value in me {
- value.draw(popUp)
- }
- }
- delete(Me){
- t:=0
- while(me.length() > t ){
- t++
- if(me[t].deleteme = 1)
- me.Remove(t)
- }
- }
- add(Me,x1,x2,y1,ymin,h,v,colour){
- random,ran,5,10
- this.random:= ran*h // v
- that:= new Bar
- that.set(x1,x2,y1,ymin,h,v,colour)
- me.insert(that)
- }
- move(me){
- this.random--
- for i,value in me
- value.move()
- this.delete(Me)
- }
- randomx(Me,Outline,w1,w2,h,v,colour){
- random,ran,w1,w2
- x1:=Outline.wx1
- x2:=Outline.wx2
- random,x1,x1,x2 - ran
- y1:=Outline.wy2
- ymin:=Outline.wy1
- this.add(Me,x1,x1+ran,y1-h,ymin,h,v,colour)
- }
- }
- colourGenerator(){
- a:=[]
- a:=["1","2","3","4","5","6","7","8","9","a","b","c","d","f"]
- colour=00
- loop 4 {
- Random,ran,1,15
- new:=a[ran]
- colour=%colour%%new%
- }
- return colour
- }
- a::
- gui,1:show
- return
- b::
- gui,1:hide
- return
- x::
- Layered_Window_ShutDown(popUp)
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement