gui how to output text or label?

Ask gaming related questions
ravena1
Posts: 14
Joined: 06 Sep 2017, 15:13

gui how to output text or label?

06 Sep 2017, 18:29

hi i made pixelsearch bot, but i want output/print the real-time actions on gui text
any idea how to achieve something like this?

Image

Code: Select all


#SingleInstance, force

GuiWidth  = 400
GuiHeight = 350
GuiTitle  = my bot


;------------------this scrolling gui seems appear nicely, but i dont know how to print this real-time-----------------------
Gui, Add, Edit, x50 y90 w300 h90 vVar readonly,
;------------------------



Gui, Add, Button, w80 h20 x70 y270, Start
Gui, Add, Button, w80 h20 x230 y270, Pause
Gui, Add, Button, w25 h25 x360 y22, X
gui, Color, 282f4c
Gui, -Caption +Border
Gui, Font, s10, Verdana
Gui, Margin, 0, 0
Gui, Add, Text,  x0 y0 w%GuiWidth% h20 +0x4,
Gui, Add, Text,  x0 y0 w%GuiWidth% h20 cFFFFFF Backgroundtrans +0x200 gGuiMove
              ,  % " " GuiTitle
Gui, Show, w%GuiWidth% h%GuiHeight%
Return

GuiMove: 
PostMessage, 0xA1, 2,,, A 
Return 

GuiEscape:
 ExitApp
Return

End::ExitApp



ButtonStart:
Loop {
		PixelSearch, X, Y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 0x00FF00, 0, fast
		if(ErrorLevel=0) {
				        
		; ----print you are now attacking the monster, but i dont know why it messed up
			GuiControl,,Var,Monster Found! You are now attacking`nMonster Found! You are now attacking `nMonster Found! You are now attacking`nMonster Found! You are now attacking      
		       MouseClick, left, %X%, %Y%
			sleep, 300
	
		
                 	

		}
		else {
		        ;------------ print no monster found
                        GuiControl,,Var,No Monster Found Teleporting`nNo Monster Found Teleporting`nNo Monster Found Teleporting`nNo Monster Found Teleporting
			Send {f9}
			sleep, 2000

			
                        
                       
                       

         
		}
	}
return








ButtonX:
ExitApp


ButtonPause:
Pause

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 5 guests