Jump to content

blur

Platinum Member
  • Posts

    553
  • Joined

  • Last visited

Everything posted by blur

  1. yup, autosave of image positioning, and ability to set window position inside fp is great, it was one of the first things i did with this script and first time i started messing with fplaunch
  2. just some info for those comp savy enough to compile ahk script, i tried removing all winactivates (except first one) so this is what i used: Process, Exist, %hyperpinexe% PID := errorLevel if (PID) { [b] WinActivate, ahk_pid %PID%[/b] [b] ExitApp[/b] /* ; hglass activation doesn't work Process, Exist, HGlass1.exe PID1 := errorLevel ... next commands are not so important since exit is executed first - so this is the code that will try just one activate and then exit, it would work for people that say that previous versions never freeze for them. However when i try this fix - i never get freeze but sometimes i don't get focus then there is this light version with less activates and less clicking that will never freeze for me but also doesn't get focus always - it can do one two three activates and then exit and lose focus: Process, Exist, %hyperpinexe% PID := errorLevel if (PID) { ; activate hyperpin ;WinActivate, ahk_pid %PID% ;ExitApp loading = 1 waithp: toLog("waithp 1") if (loading = 0) break Sleep 400 WinActivate, ahk_pid %PID% ;MouseMove %A_ScreenWidth%/2, %A_ScreenHeight%/2 ;ControlClick,, ahk_pid %PID% Sleep 400 IfWinNotActive, ahk_pid %PID% Goto waithp toLog("waithp 2") Sleep 400 IfWinNotActive, ahk_pid %PID% Goto waithp toLog("waithp 3") Sleep 400 IfWinNotActive, ahk_pid %PID% Goto waithp } else if (hideTaskbar = "true") { ; show taskbar if there is no hyperpin WinShow ahk_class Shell_TrayWnd WinShow Start ahk_class Button taskbar = 1 } Still searching for some method that will never freeze and never lose focus.
  3. yea, yea - this focus problem is optional - just like black screen - somebody has it, somebody have milisecond time when they exit the game usually if you have long black screen chances are it will mess up focus but this tray icons - they are not from winactivates - it is just one icon for every game you started, they are deleted only when you bring mouse over them, that's how ahk works - it creates tray icon but doesn't delete it
  4. hp being slow can't be because of fplaunch - cause fplaunch like any other program releases all memory when it exits debugmode = file in settings.ini will give you debug log in log.txt those freezes are result of this part of the script, obviuosly too many winactivates, and windows and hyperpin can't handle that so they just freeze. if there would be no winactivates or just one probably there would be no freeze and all would work great on xp but on win7 hp would sometimes stay out of focus so you would have to click with mouse, or do alt-tab which is problem on a cab so in short winactivates are made to solve win7 stupidity, but win7 stupidity is endless anybody is free to experiment with these commands Process, Exist, %hyperpinexe% PID := errorLevel if (PID) { ; activate hyperpin Sleep 200 loading = 1 waithp: toLog("waithp 1") if (loading = 0) break WinActivate, ahk_pid %PID% MouseMove %A_ScreenWidth%/2, %A_ScreenHeight%/2 ;ControlClick,, ahk_class ThunderRT6FormDC ControlClick,, ahk_pid %PID% ;WinWaitActive, ahk_pid %PID% Sleep 200 IfWinNotActive, ahk_pid %PID% Goto waithp toLog("waithp 2") WinActivate, ahk_pid %PID% ControlClick,, ahk_pid %PID% ;WinWaitActive, ahk_pid %PID% Sleep 200 IfWinNotActive, ahk_pid %PID% Goto waithp toLog("waithp 3") WinActivate, ahk_pid %PID% ControlClick,, ahk_pid %PID% ;WinWaitActive, ahk_pid %PID% Sleep 200 IfWinNotActive, ahk_pid %PID% Goto waithp
  5. yup tested again with aero mode on and all exe's without any compatibility mode - much more blinking
  6. Hm, i reduced blinking by disabling aero and going to compatibiliy mode. before that i had white and black screens, now only black, maybe i'll try again feel free to test all options and report which one works best - also on win7 run as admin has to be set for some programs (don't remember which ones exactly) - or maybe it is not important if you disable uac altogether?
  7. that's normal i have black screen on sandy bridge laptop also (intel GPU integrated inside CPU) but only if i have two screens and they last for cca 10-15 seconds
  8. one more - hglass.exe is also in xp sp3 comp mode at my comp, so you can try that also
  9. i have it only on hyperpin.exe now i use to have it on all three, but vpinball.exe doesn't need it any more (focus is solved from fplaunch script) and fplaunch has some problems if you put it to xp sp3 mode. but you can test all combinations and see which one works best on your rig i also disabled aero completely on my laptop, and i'm using windows 7 basic theme
  10. little bit of blinking, white screens and black screens is normal set debug mode to "file" and you will see in log what is going on, probably fplaunch script tries to activate hyperpin freeze can also happen sometimes it helps if you set all programs to run in xp sp 3 compatibility mode
  11. You are not reading fplaunch manual - that's what you are doing wrong. Esc key is impossible to fix - you have to use some other key.
  12. tnx, i will put detect hidden windows off during loading slider for next release that would probably solve it
  13. alt-tab through all windows should get you to the one with Error in the title - title is shown while you go through alt-tab however it could be that error window is hidden and i get it because i had detect hidden windows on, but you will not see it with alt-tab, then i will have to put detect hidden windows off somewhere before that check
  14. tnx rocky brighton can you check what window do you have with error i it's title so that i can change the code for next release?
  15. tnx loafer, i appreciate it brightonrock i must say you are the first one to really send me command log from application - though from first version every time i had a problem with some user i asked for it but never got it, you are my man !!! so from your log all is clear - fpalunch exits to vp editor because it finds some window with error in the title: look at: 810: IfWinExist,Error 814: Gosub,CloseProgress and check the code arround line 810 error handling is a new thing and you can comment that part in the script and recompile or you can find what window you have with error in title and close it
  16. debugmode=file sends all debug messages to log.txt ahk basic is autohotkey software - http://www.autohotkey.com/download/ you have to download version 1.0.48.05 (basic version means not autohotkey_L) and install it on your pc you can run fplaunch.ahk just by double clicking on it in windows explorer - no need to go to command line Does any body use win7 64 with success with fplaunch??? I know that win7 32 is shitty for Hyperpin, xp is much better, but looks like win7 64 is even worse.
  17. This all looks ok, though i never tried fplaunch on 64bit win7, only on 32 bit. Put debug mode to file, debug mode true creates tooltips on screen which can change behavior of the script. Then install ahk basic version (if you don't have it already) and then run fplaunch.ahk directly (not .exe but .ahk), without hyperpin - you will get launcher window to select table, then after the game launches when you get vp editor window on screen click on playfield and when you get vp editor again - go to taskbar (press t to show taskbar and cursor), find ahk icon in tray, double click on it and send me command log, something like this: Script lines most recently executed (oldest first). Press [F5] to refresh. The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0). The bottommost line's elapsed time is the number of seconds since it executed. 417: hbm := DllCall("CreateDIBSection", "uint" , hdc2, "uint" , &bi, "uint" , 0, "uint*", ppvBits, "uint" , 0, "uint" , 0) 419: if !hdc 420: ReleaseDC(hdc2) 581: Return,DllCall("ReleaseDC", "uint", hwnd, "uint", hdc) 421: Return,hbm 980: hdc := CreateCompatibleDC() 483: Return,DllCall("CreateCompatibleDC", "uint", hdc) 981: obm := SelectObject(hdc, hbm) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 982: G := Gdip_GraphicsFromHDC(hdc) 1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics) 1196: Return,pGraphics 983: Gdip_SetInterpolationMode(G, 7) 2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode) 986: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop 987: Gui,2: Show,NA,Loading 988: Return 884: IfWinActive,Visual Pinball Player,,DMD 885: loading = 0 886: } 887: } 888: Return 873: Return 847: if (Mod(A_Index, 20) = 0) 848: WinActivate,ahk_class VPPlayer,,DMD (0.03) 960: yLoadProgress := (yLoadProgress - dir) 961: if (yLoadProgress > pinend) || (yLoadProgress < pinstart) 963: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation) 2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder) 964: Gdip_RotateWorldTransform(G, pinrot) 2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder) 965: Gdip_DrawImage(G, pBitmap, 0, 0, sLWidth, sLHeight, 0, 0, pLWidth, pLHeight) 1106: if (Matrix&1 = "") 1108: if (Matrix != 1) 1111: if (sx = "" && sy = "" && sw = "" && sh = "") 1127: E := DllCall("gdiplus\GdipDrawImageRectRect", "uint", pGraphics, "uint", pBitmap, "float", dx, "float", dy, "float", dw, "float", dh, "float", sx, "float", sy, "float", sw, "float", sh, "int" 1131: if ImageAttr 1133: Return,E 966: Gdip_DisposeImage(pBitmap) 1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap) 967: Gdip_ResetWorldTransform(G) 2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics) 968: dif := (rLHeight-sLHeight)/2 969: dif := -dif 970: movedyLoadProgress := Round(yLoadProgress+dif) 971: movedxLoadProgress := Round(xLoadProgress+dif) 972: UpdateLayeredWindow(hwLoadProg, hdc, movedxLoadProgress+1, movedyLoadProgress, rLWidth, rLHeight) 066: if ((x != "") && (y != "")) 067: VarSetCapacity(pt, 8), NumPut(x, pt, 0), NumPut(y, pt, 4) 069: if (w = "") ||(h = "") 072: Return,DllCall("UpdateLayeredWindow", "uint", hwnd, "uint", 0, "uint", ((x = "") && (y = "")) ? 0 : &pt, "int64*", w|h<<32, "uint", hdc, "int64*", 0, "uint", 0, "uint*", Alpha<<16|1<<24, "uint 973: SelectObject(hdc, obm), DeleteObject(hbm), DeleteDC(hdc) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 526: Return,DllCall("DeleteObject", "uint", hObject) 597: Return,DllCall("DeleteDC", "uint", hdc) 974: Gdip_DeleteGraphics(G) 1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics) 975: pinrot := pinrot + dir*5 976: Gdip_GetRotatedTranslation(sLWidth, sLHeight, pinrot, xTranslation, yTranslation) 2188: pi := 3.14159, TAngle := Angle*(pi/180) 2190: Bound := (Angle >= 0) ? Mod(Angle, 360) : 360-Mod(-Angle, -360) 2191: if ((Bound >= 0) && (Bound <= 90)) 2192: xTranslation := Height*Sin(TAngle), yTranslation := 0 2199: } 977: Gdip_GetRotatedDimensions(sLWidth, sLHeight, pinrot, rLWidth, rLHeight) 2203: pi := 3.14159, TAngle := Angle*(pi/180) 2204: if !(Width && Height) 2206: RWidth := Ceil(Abs(Width*Cos(TAngle))+Abs(Height*Sin(TAngle))) 2207: RHeight := Ceil(Abs(Width*Sin(TAngle))+Abs(Height*Cos(Tangle))) 2208: } 978: pBitmap := Gdip_CreateBitmapFromFile(progPic) 1526: SplitPath,sFile,,,ext 1527: if ext in exe,dll 1577: if !A_IsUnicode 1579: VarSetCapacity(wFile, 1023) 1580: DllCall("kernel32\MultiByteToWideChar", "uint", 0, "uint", 0, "uint", &sFile, "int", -1, "uint", &wFile, "int", 512) 1581: DllCall("gdiplus\GdipCreateBitmapFromFile", "uint", &wFile, "uint*", pBitmap) 1582: } 1585: } 1586: Return,pBitmap 979: hbm := CreateDIBSection(rLWidth, rLHeight) 414: hdc2 := hdc ? hdc : GetDC() 541: Return,DllCall("GetDC", "uint", hwnd) 415: VarSetCapacity(bi, 40, 0) 416: NumPut(w, bi, 4), NumPut(h, bi, 8), NumPut(40, bi, 0), NumPut(1, bi, 12, "ushort"), NumPut(0, bi, 16), NumPut(bpp, bi, 14, "ushort") 417: hbm := DllCall("CreateDIBSection", "uint" , hdc2, "uint" , &bi, "uint" , 0, "uint*", ppvBits, "uint" , 0, "uint" , 0) 419: if !hdc 420: ReleaseDC(hdc2) 581: Return,DllCall("ReleaseDC", "uint", hwnd, "uint", hdc) 421: Return,hbm 980: hdc := CreateCompatibleDC() 483: Return,DllCall("CreateCompatibleDC", "uint", hdc) 981: obm := SelectObject(hdc, hbm) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 982: G := Gdip_GraphicsFromHDC(hdc) 1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics) 1196: Return,pGraphics 983: Gdip_SetInterpolationMode(G, 7) 2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode) 986: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop 987: Gui,2: Show,NA,Loading 988: Return (0.03) 960: yLoadProgress := (yLoadProgress - dir) 961: if (yLoadProgress > pinend) || (yLoadProgress < pinstart) 963: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation) 2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder) 964: Gdip_RotateWorldTransform(G, pinrot) 2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder) 965: Gdip_DrawImage(G, pBitmap, 0, 0, sLWidth, sLHeight, 0, 0, pLWidth, pLHeight) 1106: if (Matrix&1 = "") 1108: if (Matrix != 1) 1111: if (sx = "" && sy = "" && sw = "" && sh = "") 1127: E := DllCall("gdiplus\GdipDrawImageRectRect", "uint", pGraphics, "uint", pBitmap, "float", dx, "float", dy, "float", dw, "float", dh, "float", sx, "float", sy, "float", sw, "float", sh, "int" 1131: if ImageAttr 1133: Return,E 966: Gdip_DisposeImage(pBitmap) 1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap) 967: Gdip_ResetWorldTransform(G) 2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics) 968: dif := (rLHeight-sLHeight)/2 969: dif := -dif 970: movedyLoadProgress := Round(yLoadProgress+dif) 971: movedxLoadProgress := Round(xLoadProgress+dif) 972: UpdateLayeredWindow(hwLoadProg, hdc, movedxLoadProgress+1, movedyLoadProgress, rLWidth, rLHeight) 066: if ((x != "") && (y != "")) 067: VarSetCapacity(pt, 8), NumPut(x, pt, 0), NumPut(y, pt, 4) 069: if (w = "") ||(h = "") 072: Return,DllCall("UpdateLayeredWindow", "uint", hwnd, "uint", 0, "uint", ((x = "") && (y = "")) ? 0 : &pt, "int64*", w|h<<32, "uint", hdc, "int64*", 0, "uint", 0, "uint*", Alpha<<16|1<<24, "uint 973: SelectObject(hdc, obm), DeleteObject(hbm), DeleteDC(hdc) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 526: Return,DllCall("DeleteObject", "uint", hObject) 597: Return,DllCall("DeleteDC", "uint", hdc) 974: Gdip_DeleteGraphics(G) 1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics) 975: pinrot := pinrot + dir*5 976: Gdip_GetRotatedTranslation(sLWidth, sLHeight, pinrot, xTranslation, yTranslation) 2188: pi := 3.14159, TAngle := Angle*(pi/180) 2190: Bound := (Angle >= 0) ? Mod(Angle, 360) : 360-Mod(-Angle, -360) 2191: if ((Bound >= 0) && (Bound <= 90)) 2192: xTranslation := Height*Sin(TAngle), yTranslation := 0 2199: } 977: Gdip_GetRotatedDimensions(sLWidth, sLHeight, pinrot, rLWidth, rLHeight) 2203: pi := 3.14159, TAngle := Angle*(pi/180) 2204: if !(Width && Height) 2206: RWidth := Ceil(Abs(Width*Cos(TAngle))+Abs(Height*Sin(TAngle))) 2207: RHeight := Ceil(Abs(Width*Sin(TAngle))+Abs(Height*Cos(Tangle))) 2208: } 978: pBitmap := Gdip_CreateBitmapFromFile(progPic) 1526: SplitPath,sFile,,,ext 1527: if ext in exe,dll 1577: if !A_IsUnicode 1579: VarSetCapacity(wFile, 1023) 1580: DllCall("kernel32\MultiByteToWideChar", "uint", 0, "uint", 0, "uint", &sFile, "int", -1, "uint", &wFile, "int", 512) 1581: DllCall("gdiplus\GdipCreateBitmapFromFile", "uint", &wFile, "uint*", pBitmap) 1582: } 1585: } 1586: Return,pBitmap 979: hbm := CreateDIBSection(rLWidth, rLHeight) 414: hdc2 := hdc ? hdc : GetDC() 541: Return,DllCall("GetDC", "uint", hwnd) 415: VarSetCapacity(bi, 40, 0) 416: NumPut(w, bi, 4), NumPut(h, bi, 8), NumPut(40, bi, 0), NumPut(1, bi, 12, "ushort"), NumPut(0, bi, 16), NumPut(bpp, bi, 14, "ushort") 417: hbm := DllCall("CreateDIBSection", "uint" , hdc2, "uint" , &bi, "uint" , 0, "uint*", ppvBits, "uint" , 0, "uint" , 0) 419: if !hdc 420: ReleaseDC(hdc2) 581: Return,DllCall("ReleaseDC", "uint", hwnd, "uint", hdc) 421: Return,hbm 980: hdc := CreateCompatibleDC() 483: Return,DllCall("CreateCompatibleDC", "uint", hdc) 981: obm := SelectObject(hdc, hbm) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 982: G := Gdip_GraphicsFromHDC(hdc) 1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics) 1196: Return,pGraphics 983: Gdip_SetInterpolationMode(G, 7) 2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode) 986: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop 987: Gui,2: Show,NA,Loading 988: Return (0.03) 960: yLoadProgress := (yLoadProgress - dir) 961: if (yLoadProgress > pinend) || (yLoadProgress < pinstart) 963: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation) 2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder) 964: Gdip_RotateWorldTransform(G, pinrot) 2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder) 965: Gdip_DrawImage(G, pBitmap, 0, 0, sLWidth, sLHeight, 0, 0, pLWidth, pLHeight) 1106: if (Matrix&1 = "") 1108: if (Matrix != 1) 1111: if (sx = "" && sy = "" && sw = "" && sh = "") 1127: E := DllCall("gdiplus\GdipDrawImageRectRect", "uint", pGraphics, "uint", pBitmap, "float", dx, "float", dy, "float", dw, "float", dh, "float", sx, "float", sy, "float", sw, "float", sh, "int" 1131: if ImageAttr 1133: Return,E 966: Gdip_DisposeImage(pBitmap) 1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap) 967: Gdip_ResetWorldTransform(G) 2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics) 968: dif := (rLHeight-sLHeight)/2 969: dif := -dif 970: movedyLoadProgress := Round(yLoadProgress+dif) 971: movedxLoadProgress := Round(xLoadProgress+dif) 972: UpdateLayeredWindow(hwLoadProg, hdc, movedxLoadProgress+1, movedyLoadProgress, rLWidth, rLHeight) 066: if ((x != "") && (y != "")) 067: VarSetCapacity(pt, 8), NumPut(x, pt, 0), NumPut(y, pt, 4) 069: if (w = "") ||(h = "") 072: Return,DllCall("UpdateLayeredWindow", "uint", hwnd, "uint", 0, "uint", ((x = "") && (y = "")) ? 0 : &pt, "int64*", w|h<<32, "uint", hdc, "int64*", 0, "uint", 0, "uint*", Alpha<<16|1<<24, "uint 973: SelectObject(hdc, obm), DeleteObject(hbm), DeleteDC(hdc) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 526: Return,DllCall("DeleteObject", "uint", hObject) 597: Return,DllCall("DeleteDC", "uint", hdc) 974: Gdip_DeleteGraphics(G) 1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics) 975: pinrot := pinrot + dir*5 976: Gdip_GetRotatedTranslation(sLWidth, sLHeight, pinrot, xTranslation, yTranslation) 2188: pi := 3.14159, TAngle := Angle*(pi/180) 2190: Bound := (Angle >= 0) ? Mod(Angle, 360) : 360-Mod(-Angle, -360) 2191: if ((Bound >= 0) && (Bound <= 90)) 2192: xTranslation := Height*Sin(TAngle), yTranslation := 0 2199: } 977: Gdip_GetRotatedDimensions(sLWidth, sLHeight, pinrot, rLWidth, rLHeight) 2203: pi := 3.14159, TAngle := Angle*(pi/180) 2204: if !(Width && Height) 2206: RWidth := Ceil(Abs(Width*Cos(TAngle))+Abs(Height*Sin(TAngle))) 2207: RHeight := Ceil(Abs(Width*Sin(TAngle))+Abs(Height*Cos(Tangle))) 2208: } 978: pBitmap := Gdip_CreateBitmapFromFile(progPic) 1526: SplitPath,sFile,,,ext 1527: if ext in exe,dll 1577: if !A_IsUnicode 1579: VarSetCapacity(wFile, 1023) 1580: DllCall("kernel32\MultiByteToWideChar", "uint", 0, "uint", 0, "uint", &sFile, "int", -1, "uint", &wFile, "int", 512) 1581: DllCall("gdiplus\GdipCreateBitmapFromFile", "uint", &wFile, "uint*", pBitmap) 1582: } 1585: } 1586: Return,pBitmap 979: hbm := CreateDIBSection(rLWidth, rLHeight) 414: hdc2 := hdc ? hdc : GetDC() 541: Return,DllCall("GetDC", "uint", hwnd) 415: VarSetCapacity(bi, 40, 0) 416: NumPut(w, bi, 4), NumPut(h, bi, 8), NumPut(40, bi, 0), NumPut(1, bi, 12, "ushort"), NumPut(0, bi, 16), NumPut(bpp, bi, 14, "ushort") 417: hbm := DllCall("CreateDIBSection", "uint" , hdc2, "uint" , &bi, "uint" , 0, "uint*", ppvBits, "uint" , 0, "uint" , 0) 419: if !hdc 420: ReleaseDC(hdc2) 581: Return,DllCall("ReleaseDC", "uint", hwnd, "uint", hdc) 421: Return,hbm 980: hdc := CreateCompatibleDC() 483: Return,DllCall("CreateCompatibleDC", "uint", hdc) 981: obm := SelectObject(hdc, hbm) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 982: G := Gdip_GraphicsFromHDC(hdc) 1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics) 1196: Return,pGraphics 983: Gdip_SetInterpolationMode(G, 7) 2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode) 986: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop 987: Gui,2: Show,NA,Loading 988: Return (0.02) 849: WinActivate,ahk_class FuturePinballOpenGL 850: } 852: if (Mod(A_Index, 100) = 0) 855: if (loading = 0) 856: Break 865: Gosub,CloseProgress 951: SetTimer,MoveProgress,Off 952: SelectObject(hdc, obm) 511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj) 953: DeleteObject(hbm), DeleteDC(hdc), Gdip_DeleteGraphics(G) 526: Return,DllCall("DeleteObject", "uint", hObject) 597: Return,DllCall("DeleteDC", "uint", hdc) 1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics) 954: Gdip_DisposeImage(pBitmap) 1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap) 955: Gui,2:Destroy 956: Gui,1:Destroy 957: Return 866: Return 567: loading = 1 568: Loop 569: WinActivate,ahk_class VPPlayer,,DMD (0.11) 570: Sleep,100 (0.11) 571: Gosub,CheckVP 878: IfWinActive,Visual Pinball Player,,DMD 880: Sleep,100 (0.11) 881: IfWinActive,Visual Pinball Player,,DMD 883: Sleep,100 (0.11) 884: IfWinActive,Visual Pinball Player,,DMD 885: loading = 0 886: } 887: } 888: Return 572: if (loading = 0) 573: Break 575: Gosub,WaitVP 916: IfWinNotExist,ahk_class VPinball 918: MouseMove,88,130 (0.12) 919: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 920: Sleep,100 (0.11) 921: IfWinNotActive,ahk_class VPPlayer,,DMD 923: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 924: Sleep,100 (0.11) 925: IfWinNotActive,ahk_class VPPlayer,,DMD 927: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 928: Sleep,100 (0.11) 929: IfWinNotActive,ahk_class VPPlayer,,DMD 931: Return 577: DllCall("SetCursorPos", int, A_ScreenWidth//2, int, A_ScreenHeight//2) 580: DetectHiddenWindows,off 581: WinActivate,ahk_class MAME 582: WinWaitActive,ahk_class MAME,,0 (0.50) 583: Sleep,100 (0.11) 585: SetControlDelay,-1 586: ControlClick,,ahk_class MAME 587: WinWaitActive,ahk_class MAME,,0 (0.50) 588: Sleep,100 (0.11) 589: DetectHiddenWindows,on 591: loading = 1 592: Loop 593: WinActivate,ahk_class VPPlayer,,DMD (0.11) 594: Sleep,100 (0.11) 595: Gosub,CheckVP 878: IfWinActive,Visual Pinball Player,,DMD 880: Sleep,100 (0.11) 881: IfWinActive,Visual Pinball Player,,DMD 883: Sleep,100 (0.11) 884: IfWinActive,Visual Pinball Player,,DMD 885: loading = 0 886: } 887: } 888: Return 596: if (loading = 0) 597: Break 599: Gosub,WaitVP 916: IfWinNotExist,ahk_class VPinball 918: MouseMove,88,130 (0.13) 919: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 920: Sleep,100 (0.11) 921: IfWinNotActive,ahk_class VPPlayer,,DMD 923: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 924: Sleep,100 (0.11) 925: IfWinNotActive,ahk_class VPPlayer,,DMD 927: WinWaitActive,ahk_class VPPlayer,,1,DMD (0.11) 928: Sleep,100 (0.11) 929: IfWinNotActive,ahk_class VPPlayer,,DMD 931: Return 600: Gui,destroy 602: Process,WaitClose,%executable% (27.25) 2123: SystemCursor("Toggle") 2095: if (OnOff = "Init" || OnOff = "I" || $ = "") 2111: if (OnOff = 0 || OnOff = "Off" || $ = "h" && (OnOff < 0 || OnOff = "Toggle" || OnOff = "T")) 2114: $ = h 2116: Loop,%c0% 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2118: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 ) 2119: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% ) 2120: } 2121: } 2124: Gosub,ToggleTaskbar 2128: if (hideTaskbar = "true") 2129: if (taskbar) 2134: WinShow,ahk_class Shell_TrayWnd (0.13) 2135: WinShow,Start ahk_class Button (0.11) 2136: taskbar = 1 2137: } 2138: } 2139: Return 2125: Return (10.92) Press [F5] to refresh.
  18. As you already know from FPLaunch manual: Warning: To use B2S tables with FPLaunch you have to let FPLaunch start and close the backglass. To do this change table name so that it ends with B2S and rename B2S exe to the same name. Also edit every B2S table and change launch backglass to false in table script. And from the message I would say that you don't have that exe file, fplaunch is trying to launch.
  19. Never happened to me. It looks like fplaunch is constantly activating "Visual Pinball" instead of "Visual Pinball Player". Did you changed something in the script maybe? Maybe you should do fresh install of fplaunch wip 9 and maybe set debug mode to "file" and send me log file with your settings.ini options.
  20. This looks same as ttdax problem - you can't initialize com objects, maybe some windows problems - you should try to write ahk that just opens com object and test it
  21. nope, more like this: COM_Init() COM_CoInitialize() COM_AtlAxWinInit() toLog("COM Standard Library Initialised")
  22. to change hyperpin behavior you will have to change hyperpin application or write a new hyperpin from scratch
  23. not possible - fplaunch is not executed on start of hyperpin
  24. debugmode is option in settings.ini - it is all explained in FPlaunch manual on first page!
×
×
  • Create New...