layer Posted December 28, 2004 Posted December 28, 2004 (edited) hey guys... im using FileInstall with macros.. here hava a look at this...:#include <GUIConstants.au3> $Msg_Gui = GUICreate("Xhair1", 11, 11, -1, -1, $WS_POPUP, $WS_EX_TOPMOST) FileInstall (@DesktopDir & "\xhair1.bmp", @TempDir & "\xhair1.bmp") $pic= GUICtrlCreatePic (@DesktopDir & "\xhair1.bmp", 1, 0, 10, 10) GuiSetState () while 1 sleep (10) Wendthis is based off Nova's "Enemy" gui... it runs fine, works great, OK. but then when i try to compile it, i get the following error...Aut2Exe Error Invalid FileInstall() function: FileInstall (@DesktopDir & "\xhair1.bmp", @TempDir & "\xhair1.bmp")that's the whole error... could someone point out the problem EDIT: if anyone plays any mods for Half-Life... does anyone know why in game when using the script above ^^ if i turn, my mouse appears in the screen? it get's really annoying... ive tried window mode, fullscreen... etc... is it the resolution or do you know of any solutions!?! please help Edited December 28, 2004 by layer FootbaG
SlimShady Posted December 28, 2004 Posted December 28, 2004 Suggestion: Put/Copy the file you want to "FileInstall" in the same directory as the script. And use this: FileInstall ("xhair1.bmp", @TempDir & "\xhair1.bmp")
layer Posted December 28, 2004 Author Posted December 28, 2004 thanks slim! and for the counter-strike question ill ask that in chat! geez, thats like the 10th problem youve solved for me in a matter of 2 days thanks a million! FootbaG
MHz Posted December 28, 2004 Posted December 28, 2004 Aut2Exe Error Invalid FileInstall() function: FileInstall (@DesktopDir & "\xhair1.bmp", @TempDir & "\xhair1.bmp")that's the whole error... could someone point out the problem Problem is that you cannot have a variable or macro in the first parameter of FileInstall.
SlimShady Posted December 28, 2004 Posted December 28, 2004 I assume you forgot to change the 4th line. I fixed it. #include <GUIConstants.au3> $Msg_Gui = GUICreate("Xhair1", 11, 11, -1, -1, $WS_POPUP, $WS_EX_TOPMOST) FileInstall ("xhair1.bmp", @TempDir & "\xhair1.bmp") $pic= GUICtrlCreatePic (@TempDir & "\xhair1.bmp", 1, 0, 10, 10) GuiSetState () while 1 sleep (10) Wend
MHz Posted December 28, 2004 Posted December 28, 2004 I just quoted the problem and informed of the cause. As was asked of. Then layer knows what to avoid next time. I know you posted the fix, SlimShady.
layer Posted December 28, 2004 Author Posted December 28, 2004 sorry i should of updated the code on the website but thanks guys FootbaG
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now