PP AHK request
Hey guys,
It would be extremely useful to have an AHK script that prevents the party tables from resizing. I think we all sometimes accidently click the right border of a table, making it resize a little bit leading to even more party lag. Does anyone know of a script that can lock the tables making them non-resizable? Thanks |
Re: PP AHK request
<font class="small">Code:</font><hr /><pre> #NoEnv
#Persistent #SingleInstance force WinWait PartyPoker.com: WinGet, pid, pid SetTimer, timer, 1000 return timer: WinGet, list, list, Good Luck ahk_pid%pid% Loop % list { WinGet, style, style, % "ahk_id" list%a_index% if (Style & 0x40000) WinSet, Style, -0x40000, % "ahk_id" list%a_index% } return </pre><hr /> |
Re: PP AHK request
Thanks a lot, it doesn't seem to work though.
I have the latest AHK, what can be wrong? |
Re: PP AHK request
Are you running Party with Swedish language setting or something? It looks for the 'Good Luck' in the window title.
|
Re: PP AHK request
No, it's english and says Good Luck
|
Re: PP AHK request
Stick this in the loop:
msgbox % (Style & 0x40000) after the WinGet command. It should say either 1 or 0... |
Re: PP AHK request
so the complete code should be like this:
#NoEnv #Persistent #SingleInstance force WinWait PartyPoker.com: WinGet, pid, pid msgbox % (Style & 0x40000) SetTimer, timer, 1000 return timer: WinGet, list, list, Good Luck ahk_pid%pid% Loop % list { WinGet, style, style, % "ahk_id" list%a_index% if (Style & 0x40000) WinSet, Style, -0x40000, % "ahk_id" list%a_index% } return I tried this but it doesn't work [img]/images/graemlins/frown.gif[/img] |
Re: PP AHK request
No, after the, err, third WinGet command. Inside the loop.
|
Re: PP AHK request
Do i need Roland's functions for this to work btw?
|
Re: PP AHK request
No.
|
Re: PP AHK request
Sry for being a n00b, but i cant get it working
I've tried to put msgbox % (Style & 0x40000) inside the loop and the window is still resizable |
Re: PP AHK request
So no msgbox pops up when you run it?
|
Re: PP AHK request
A message box popped up, but it was empty (just had an OK button)
|
Re: PP AHK request
Try this, let me know what the msgboxes said.
#NoEnv #Persistent #SingleInstance force WinWait PartyPoker.com: WinGet, pid, pid msgbox Party found SetTimer, timer, 1000 return timer: WinGet, list, list, Good Luck ahk_pid%pid% ifEqual, list, 0, msgbox No tables detected! Loop % list { WinGet, style, style, % "ahk_id" list%a_index% msgbox % (Style & 0x40000) if (Style & 0x40000) WinSet, Style, -0x40000, % "ahk_id" list%a_index% } return |
Re: PP AHK request
It says No tables detected
|
Re: PP AHK request
I am sorry... my Party was set to German and I couldn't figure out how to change it, so I couldn't test... meh. Anyhow, this should work now:
#NoEnv #Persistent #SingleInstance force SetTitleMatchMode 2 WinWait PartyPoker.com: WinGet, pid, pid SetTimer, timer, 1000 return timer: WinGet, list, list, Good Luck ahk_pid%pid% Loop % list { WinGet, style, style, % "ahk_id" list%a_index% if (Style & 0x40000) WinSet, Style, -0x40000, % "ahk_id" list%a_index% } return |
Re: PP AHK request
omg it works, thank you so much this is awesome!
|
Re: PP AHK request
Excellent!
|
All times are GMT -4. The time now is 06:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.