Been working on this for a few hours now so.. TA DA... my magic little GUI for repositioning the little window! You can reposition and resize it now and I've also added a refresh button to refresh the window manually. Decided not to increase refresh rate to greater than 4 times a minute (15 second gap) as unless you use a script to constantly update your PSM, you won't need it (and even then, your PSM is still updating and working fine, it just takes you longer to preview it). Position and size is saved in the registry using DWORDs...
I want you to know that I was pulling my hair out with a couple of lines of code... Just to demonstrate:
code:
if(ControlId=="arrow_left2"){
nudge=10; //just so you know the value
current = ConfigWnd.GetControlText("txt_width")
ConfigWnd.SetControlText("txt_width",current+nudge);
OnConfigEvent_CtrlClicked("", "btn_apply");
}
If current was 100 for example, it should now say 90... Instead, it said 10010. It was appending it as a string as it was using the + sign. I know in VB that the & sign was more commonly used for that purpose and + was for mathematical equasions. Just pointing this pain in the ass out though. Got it to work by doing this:
code:
if(ControlId=="arrow_left2"){
nudge=10; //just so you know the value
current = ConfigWnd.GetControlText("txt_width")
ConfigWnd.SetControlText("txt_width",current-(-nudge));
OnConfigEvent_CtrlClicked("", "btn_apply");
}
Took me about 15 minutes to figure it out
Attachment Removed - Click to download newest version