Jump to content

FPLaunch MOD: Pause and Loading screens...


samwyze

Recommended Posts

Hi, when I start a table, I get the Visual Pinball window popping up.post-40280-142870576929_thumb.jpg

This happens on two different computers I have HyperPin installed on. Must be a setting?

Update: Went back to version 8, works fine, just when I try version 9 I get the VP window popping up. When I minimize it, it pops back up after 3 seconds.

Thanks

Edited by brightonrock
Link to comment
Share on other sites

ok, that's why I put Hyperpin/FPLaunch in my request, because I don't know what would need to be updated ;)

How can I raise my request then?

Thx

to change hyperpin behavior you will have to change hyperpin application or write a new hyperpin from scratch

Link to comment
Share on other sites

I have the same TTdax problem but i don't know how write the line. Is it like this?:

COM_Init()COM_CoInitialize()

{

Return DllCall("ole32\OleInitialize", "Uint", 0)

}

All my try doesn't work.

Thanks ;)

nope, more like this:

COM_Init()

COM_CoInitialize()

COM_AtlAxWinInit()

toLog("COM Standard Library Initialised")

Link to comment
Share on other sites

My problem with the rules:

[ATTACH=CONFIG]17227[/ATTACH]

Someone to help me please?

Thanks

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

Link to comment
Share on other sites

Hi, when I start a table, I get the Visual Pinball window popping up.[ATTACH=CONFIG]17340[/ATTACH]

This happens on two different computers I have HyperPin installed on. Must be a setting?

Update: Went back to version 8, works fine, just when I try version 9 I get the VP window popping up. When I minimize it, it pops back up after 3 seconds.

Thanks

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.

Link to comment
Share on other sites

How do you get B2S tables to exit right, when i added B2S to the end i got this error in Hyperpin:

[ATTACH=CONFIG]17604[/ATTACH]

What do I do???? :banghead:

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.

Link to comment
Share on other sites

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.

Thanks for the reply. Just another note, I have to go back to wip 6 for everything to work correctly. I have Win7 x64.

Here is the log.txt

05:27:46 PM | Ini files parsed p m f i

05:27:47 PM | Flyer Pages Parsed p0 m0 f0 i0

05:27:47 PM | Instruction Pages Parsed p0 m0 f0 i0

05:27:48 PM | LoadScreen Called p0 m0 f0 i0

05:27:48 PM | Loading Loop 1 p0 m0 f0 i0

05:28:00 PM | Loading Loop 2 p0 m0 f0 i0

05:28:04 PM | Loading Loop 3 p0 m0 f0 i0

05:28:11 PM | ExitScreen called p0 m0 f0 i0

05:28:11 PM | ExitScreen called p0 m0 f0 i0

05:28:13 PM | CloseGame Called p0 m0 f0 i0

05:28:15 PM | exitScript Called p0 m0 f0 i0

05:28:15 PM | GDI+ Unloaded p0 m0 f0 i0

05:28:15 PM | COM Unloaded p0 m0 f0 i0

05:28:16 PM | Exit p0 m0 f0 i0

Here is my settings.ini

.

[Main]

Version = 0.5.0.0

Starting_Genre = All Games

[Video]

Playfield_Monitor = Primary

Playfield_Rotation = 270

Backglass_Monitor = Secondary

Quality = BEST

Table_Video_Enabled = true

Table_Video_Offset = 50

Use_Backglass = true

Backglass_Image_x = 0

Backglass_Image_y = 0

Backglass_Image_w = 1300

Backglass_Image_h = 900

Backglass_Image_r = 0

Backglass_Delay = .1

[Future Pinball]

Show_Games =false

Exe = Future Pinball.exe

Path = i:\Future Pinball\

Table_Path = i:\Future Pinball\Tables\

Table_Video_Path = C:\HyperPin\Media\Future Pinball\Table Videos\

Table_Image_Path = C:\HyperPin\Media\Future Pinball\Table Images\

Backglass_Image_Path= C:\HyperPin\Media\Future Pinball\Backglass Images\

[Visual Pinball]

Show_Games =true

Path = i:\Visual Pinball\

Table_Path = I:\Visual Pinball\Tables\

Table_Video_Path = C:\HyperPin\Media\Visual Pinball\Table Videos\

Table_Image_Path = C:\HyperPin\Media\Visual Pinball\Table Images\

Backglass_Image_Path= C:\HyperPin\Media\Visual Pinball\Backglass Images\

Exe = VPinball.exe

[Wheel]

Speed = high

Text_Font = Style2

Text_Stroke_Size = 8

Text_Stroke_Color = 0x000000

Text_Color1 = 0xe10008

Text_Color2 = 0xFFFFFF

Text_Color3 = 0xe10008

Color_Ratio = 100

Shadow_Distance = 0

Shadow_Angle = 45

Shadow_Color = 0x000000

Shadow_Alpha = 1

Shadow_Blur = 0

[intro Video]

Use_Intro = false

Skip_On_Keypress = false

[sound]

Master_Volume = 100

Video_Volume = 100

Sound_FX_Volume = 50

Wheel_Sound_Volume = 50

[AttractMode]

Active = true

Time = 60

MaxSpinTime = 10

[Press Start Text]

Enabled = true

Text1 = Free Play

Text2 = Press Start

Color = 0xe10008

[Keyboard]

Key_Delay = false

Start = 13

Exit = 69

Up = 150

Down = 149

SkipUp = 191

SkipDown = 90

Flyer = 70

Instruction = 73

Genre = 71

Service = 9

[Pinball Wizard]

Joy = 0

Start = 9

Exit = 8

Up = 2

Down = 10

SkipUp = 3

SkipDown = 11

Flyer = 4

Insruction = 5

Genre = 7

Service = 15

[Flyer]

BottomX = 300

CenterY = 360

[instruction]

Width = 600

BottomX = 250

CenterY = 360

[Exit]

Enable_Exit_Screen = true

Exit_HyperPin = true

Shutdown = true

Enable_Shortcut = true

Shortcut_Action = exit

Shortcut_Time = 3

[startup Program]

Executable =

Parameters =

Working_Directory =

WinState = HIDDEN

[Exit Program]

Executable =

Parameters =

Working_Directory =

WinState = NORMAL

[LastLoad]

system=Visual Pinball

table=BTTF_FS_B2S

[FPLaunch]

exitScriptKey=q & s

exitEmulatorKey=e

hideCursor=true

hideDesktop=true

hideTaskbar=true

toggleCursorKey=t

useExitScreen=true

usePauseKey=true

useLoadScreen=true

pauseKey=p

fadespeed=25

useExitAsPause=true

exitEmulatorKey2=1

exitEmulatorKey3=Enter

pauseFPKey=RButton

saveFPTables=true

editTableKey=!F4

printScreenKey=o

pfScreenNum=1

bgScreenNum=2

useExitMenu=true

upKey=LShift

downKey=RShift

instructionsKey=i

flyerKey=f

hyperScale=0.75

debugMode=true

ledwiz=false

hyperpinexe=hyperpin.exe

printBGKey=u

Link to comment
Share on other sites

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.

Edited by blur
Link to comment
Share on other sites

I tried another install on a XP system and it works fine. Must be something with my Win 7 x64. I have tried three system of mine that have Win 7 x64 and they all have the same problem. Can you step me through your procedure? I'm new to scripts. To put it in Debug Mode, do I just change the line in settings.ini

deBugmode=True?

Is ahk basic the original file from the Hyperpin install?

Last, what command do I type to start the fplauch ahk directly.

Link to comment
Share on other sites

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.

Edited by blur
Link to comment
Share on other sites

Here you go. This is the dump from one of my three computers that has the problem. I can do another one tonight if you want.

12:07:11 PM | Ini files parsed p m f i

12:07:41 PM | Flyer Pages Parsed p0 m0 f0 i0

12:07:41 PM | Instruction Pages Parsed p0 m0 f0 i0

12:07:57 PM | LoadScreen Called p0 m0 f0 i0

12:07:58 PM | Loading Loop 1 p0 m0 f0 i0

12:08:45 PM | Loading Loop 2 p0 m0 f0 i0

12:08:47 PM | Loading Loop 3 p0 m0 f0 i0

12:10:41 PM | exitScript Called p0 m0 f0 i0

12:10:41 PM | GDI+ Unloaded p0 m0 f0 i0

12:10:41 PM | COM Unloaded p0 m0 f0 i0

12:10:41 PM | Exit p0 m0 f0 i0

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.

958: 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

959: Gdip_DisposeImage(pBitmap)

1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap)

960: Gdip_ResetWorldTransform(G)

2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics)

961: dif := (rLHeight-sLHeight)/2

962: dif := -dif

963: movedyLoadProgress := Round(yLoadProgress+dif)

964: movedxLoadProgress := Round(xLoadProgress+dif)

965: 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

966: 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)

967: Gdip_DeleteGraphics(G)

1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics)

968: pinrot := pinrot + dir*5

969: 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))

2193: if ((Bound > 90) && (Bound <= 180))

2195: if ((Bound > 180) && (Bound <= 270))

2197: if ((Bound > 270) && (Bound <= 360))

2198: xTranslation := 0, yTranslation := -Width*Sin(TAngle)

2199: }

970: 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: }

971: 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

972: 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

973: hdc := CreateCompatibleDC()

483: Return,DllCall("CreateCompatibleDC", "uint", hdc)

974: obm := SelectObject(hdc, hbm)

511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj)

975: G := Gdip_GraphicsFromHDC(hdc)

1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics)

1196: Return,pGraphics

976: Gdip_SetInterpolationMode(G, 7)

2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode)

979: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop

980: Gui,2: Show,NA,Loading

981: Return (0.03)

953: yLoadProgress := (yLoadProgress - dir)

954: if (yLoadProgress > pinend) || (yLoadProgress < pinstart)

956: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation)

2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder)

957: Gdip_RotateWorldTransform(G, pinrot)

2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder)

958: 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

959: Gdip_DisposeImage(pBitmap)

1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap)

960: Gdip_ResetWorldTransform(G)

2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics)

961: dif := (rLHeight-sLHeight)/2

962: dif := -dif

963: movedyLoadProgress := Round(yLoadProgress+dif)

964: movedxLoadProgress := Round(xLoadProgress+dif)

965: 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

966: 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)

967: Gdip_DeleteGraphics(G)

1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics)

968: pinrot := pinrot + dir*5

969: 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))

2193: if ((Bound > 90) && (Bound <= 180))

2195: if ((Bound > 180) && (Bound <= 270))

2197: if ((Bound > 270) && (Bound <= 360))

2198: xTranslation := 0, yTranslation := -Width*Sin(TAngle)

2199: }

970: 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: }

971: 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

972: 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

973: hdc := CreateCompatibleDC()

483: Return,DllCall("CreateCompatibleDC", "uint", hdc)

974: obm := SelectObject(hdc, hbm)

511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj)

975: G := Gdip_GraphicsFromHDC(hdc)

1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics)

1196: Return,pGraphics

976: Gdip_SetInterpolationMode(G, 7)

2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode)

979: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop

980: Gui,2: Show,NA,Loading

981: Return (0.03)

953: yLoadProgress := (yLoadProgress - dir)

954: if (yLoadProgress > pinend) || (yLoadProgress < pinstart)

956: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation)

2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder)

957: Gdip_RotateWorldTransform(G, pinrot)

2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder)

958: 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

959: Gdip_DisposeImage(pBitmap)

1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap)

960: Gdip_ResetWorldTransform(G)

2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics)

961: dif := (rLHeight-sLHeight)/2

962: dif := -dif

963: movedyLoadProgress := Round(yLoadProgress+dif)

964: movedxLoadProgress := Round(xLoadProgress+dif)

965: 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

966: 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)

967: Gdip_DeleteGraphics(G)

1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics)

968: pinrot := pinrot + dir*5

969: 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))

2193: if ((Bound > 90) && (Bound <= 180))

2195: if ((Bound > 180) && (Bound <= 270))

2197: if ((Bound > 270) && (Bound <= 360))

2198: xTranslation := 0, yTranslation := -Width*Sin(TAngle)

2199: }

970: 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: }

971: 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

972: 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

973: hdc := CreateCompatibleDC()

483: Return,DllCall("CreateCompatibleDC", "uint", hdc)

974: obm := SelectObject(hdc, hbm)

511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj)

975: G := Gdip_GraphicsFromHDC(hdc)

1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics)

1196: Return,pGraphics

976: Gdip_SetInterpolationMode(G, 7)

2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode)

979: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop

980: Gui,2: Show,NA,Loading

981: Return (0.03)

953: yLoadProgress := (yLoadProgress - dir)

954: if (yLoadProgress > pinend) || (yLoadProgress < pinstart)

956: Gdip_TranslateWorldTransform(G, xTranslation, yTranslation)

2178: Return,DllCall("gdiplus\GdipTranslateWorldTransform", "uint", pGraphics, "float", x, "float", y, "int", MatrixOrder)

957: Gdip_RotateWorldTransform(G, pinrot)

2168: Return,DllCall("gdiplus\GdipRotateWorldTransform", "uint", pGraphics, "float", Angle, "int", MatrixOrder)

958: 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

959: Gdip_DisposeImage(pBitmap)

1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap)

960: Gdip_ResetWorldTransform(G)

2183: Return,DllCall("gdiplus\GdipResetWorldTransform", "uint", pGraphics)

961: dif := (rLHeight-sLHeight)/2

962: dif := -dif

963: movedyLoadProgress := Round(yLoadProgress+dif)

964: movedxLoadProgress := Round(xLoadProgress+dif)

965: 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

966: 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)

967: Gdip_DeleteGraphics(G)

1835: Return,DllCall("gdiplus\GdipDeleteGraphics", "uint", pGraphics)

968: pinrot := pinrot + dir*5

969: 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))

2193: if ((Bound > 90) && (Bound <= 180))

2195: if ((Bound > 180) && (Bound <= 270))

2197: if ((Bound > 270) && (Bound <= 360))

2198: xTranslation := 0, yTranslation := -Width*Sin(TAngle)

2199: }

970: 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: }

971: 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

972: 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

973: hdc := CreateCompatibleDC()

483: Return,DllCall("CreateCompatibleDC", "uint", hdc)

974: obm := SelectObject(hdc, hbm)

511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj)

975: G := Gdip_GraphicsFromHDC(hdc)

1195: DllCall("gdiplus\GdipCreateFromHDC", "uint", hdc, "uint*", pGraphics)

1196: Return,pGraphics

976: Gdip_SetInterpolationMode(G, 7)

2123: Return,DllCall("gdiplus\GdipSetInterpolationMode", "uint", pGraphics, "int", InterpolationMode)

979: Gui,2: -Caption +E0x80000 +LastFound +OwnDialogs +Owner +AlwaysOnTop

980: Gui,2: Show,NA,Loading

981: Return

777: toLog("Loading Loop "A_Index)

2248: if (debugMode = "true" || debugmode = "file")

2249: FormatTime,timenow,,hh:mm:ss tt |

2250: FileAppend,%timenow% %data% p%paused% m%menuon% f%flyeron% i%instructionson%

,%filename%

2251: }

2252: if (debugMode = "true" || debugmode = "screen")

2256: }

778: IfWinExist,Please

787: IfWinExist,Game Info

795: IfWinExist,Notice

803: IfWinExist,VBScript

810: IfWinExist,Error

814: Gosub,CloseProgress

944: SetTimer,MoveProgress,Off

945: SelectObject(hdc, obm)

511: Return,DllCall("SelectObject", "uint", hdc, "uint", hgdiobj)

946: 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)

947: Gdip_DisposeImage(pBitmap)

1828: Return,DllCall("gdiplus\GdipDisposeImage", "uint", pBitmap)

948: Gui,2:Destroy

949: Gui,1:Destroy

950: Return

815: if (systemName = "Visual Pinball")

816: WinRestore,ahk_class VPinball (0.11)

817: WinActivate,ahk_class VPinball (0.11)

818: WinWaitActive,ahk_class VPinball (9.02)

819: }

824: SystemCursor("On")

2084: if (OnOff = "Init" || OnOff = "I" || $ = "")

2100: if (OnOff = 0 || OnOff = "Off" || $ = "h" && (OnOff < 0 || OnOff = "Toggle" || OnOff = "T"))

2103: $ = h

2105: Loop,%c0%

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2107: h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )

2108: DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )

2109: }

2110: }

825: WinShow,ahk_class Shell_TrayWnd (0.13)

826: WinShow,Start ahk_class Button (0.11)

827: taskbar = 1

828: Suspend,On

829: WinActivate,Error (0.13)

830: WinWaitActive,Error (0.11)

831: Gosub,WaitPlayer

900: if (systemName = "Visual Pinball")

901: Gosub,WaitVP

911: MouseMove,88,130 (0.13)

912: WinWaitActive,ahk_class VPPlayer,,,DMD (15.02)

Press [F5] to refresh.

Edited by brightonrock
Link to comment
Share on other sites

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

Edited by blur
Link to comment
Share on other sites

Is there an easy to to detect which window caused the error? I just removed those error checking lines and it works. I guess it skips over the problem and continues now. I will try and close different windows to see if I can figure out which one was causing the problem.

BR

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...