Open Side Menu Go to the Top
Register
AHK: hide br in rematch windows for FTP AHK: hide br in rematch windows for FTP

12-07-2012 , 09:55 AM
Tried searching the forum on this with no luck......

Looking for a AHK script that hide your bankroll (underneath your avatar) in the rematch window after a HUSNG ends. Any suggestions would be appreciated!

Thanks
AHK: hide br in rematch windows for FTP Quote
12-07-2012 , 01:45 PM
Post a screenshot of said window (original size) and its full title + ahk_class plz.

You can make your name and BR unreadable, I just need the coords of areas to cover.
AHK: hide br in rematch windows for FTP Quote
12-07-2012 , 02:53 PM
Quote:
Originally Posted by Baobhan-Sith
Post a screenshot of said window (original size) and its full title + ahk_class plz.

You can make your name and BR unreadable, I just need the coords of areas to cover.
Thanks!

Attached a screenshot:
http://imgur.com/gA8QB

The blocked out red box under the ninja avatar are my sn and BR. An ahk script to hide the BR there would be nice Thanks!
AHK: hide br in rematch windows for FTP Quote
12-07-2012 , 04:06 PM
Try this:
Code:
#NoEnv
#Persistent
#SingleInstance, force
SetWinDelay, -1
CoordMode, Mouse, relative

Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Color, 000000
Gui, Hide

;_____________________________________________________

Title := "Heads-Up Sit & Go Rematch ahk_class QWidget"

GUIx = 62
GUIy = 221
GUIw = 78
GUIh = 17

;_____________________________________________________

Loop
{
IfWinActive, %Title%
	{
	id := WinExist("A")
	WinGetPos, x, y,,, ahk_id%id%
	x := x+GUIx
	y := y+GUIy
	Gui, Show, x%x% y%y% w%GUIw% h%GUIh%
	WinActivate, ahk_id%id%
	WinWaitClose, ahk_id%id%
	Gui, hide

	}
WinWaitActive, %Title%
}
return
;_____________________________________________________

^Q::ExitApp

Last edited by Baobhan-Sith; 12-07-2012 at 04:17 PM. Reason: typo in Title
AHK: hide br in rematch windows for FTP Quote
12-07-2012 , 07:07 PM
Thanks Bao. Just tried this and didn't seem to work. My BR was still on show. Any suggestions? Thanks
AHK: hide br in rematch windows for FTP Quote
12-07-2012 , 07:15 PM
Make sure windows title + class are correct (WindowSpy ftw), or try it without "ahk_class QWidget"

Fwiw you can delete the CoordMode command on top and replace it with SetTitleMatchMode (note its 3 different options and choose Title accordingly) (edit: eg. try SetTitleMatchMode, 2 and Title := "Rematch")

hth

Last edited by Baobhan-Sith; 12-07-2012 at 07:22 PM.
AHK: hide br in rematch windows for FTP Quote
12-08-2012 , 09:22 AM
Quote:
Originally Posted by Baobhan-Sith
Make sure windows title + class are correct (WindowSpy ftw), or try it without "ahk_class QWidget"

Fwiw you can delete the CoordMode command on top and replace it with SetTitleMatchMode (note its 3 different options and choose Title accordingly) (edit: eg. try SetTitleMatchMode, 2 and Title := "Rematch")

hth
I tried w/o ahk_class Qwideget but with no luck!

I'm not familiar with AHK scripts so not sure what you meant by your 2nd paragraph. Mind elaborating please? Thank you
AHK: hide br in rematch windows for FTP Quote
12-08-2012 , 09:51 AM
Code:
#NoEnv
#Persistent
#SingleInstance, force

;____________________________ CONFIG SECTION _______________________________________

SetWinDelay, 50			;delay in msec (1000 = 1sec)

SetTitleMatchMode, 2		;1=begin with 2=contain 3=exact match

Title = Rematch			;target windows title

GUIx = 62			;top left x coord of GUI rectangle (window relative)
GUIy = 221			;top left y coord of GUI rectangle (window relative)
GUIw = 78			;width of GUI rectangle
GUIh = 17			;height of GUI rectangle

Color = 000000			;GUI rectangle hex color

;___________________________________________________________________________________

Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Color, %Color%
Gui, Hide

Loop
{
IfWinActive, %Title%
	{
	id := WinExist("A")
	WinGetPos, x, y,,, ahk_id%id%
	x := x+GUIx
	y := y+GUIy
	Gui, Show, x%x% y%y% w%GUIw% h%GUIh%
	WinActivate, ahk_id%id%
	WinWaitNotActive, ahk_id%id%
	Gui, hide

	}
WinWaitActive, %Title%
}
return
;___________________________________________________________________________________

^Q::ExitApp			;CTRL+Q to close the script
This should definitely work
AHK: hide br in rematch windows for FTP Quote
12-08-2012 , 10:06 AM
Legend, thanks!
AHK: hide br in rematch windows for FTP Quote

      
m