Jump to content
Sign in to follow this  
layer

FileInstall Probelm...

Recommended Posts

layer

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)
Wend

this is based off Nova's "Enemy" gui... :lol: 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 :D

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 ;):idiot:

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites
SlimShady

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")

Share this post


Link to post
Share on other sites
layer

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 :idiot: thanks a million!


FootbaG

Share this post


Link to post
Share on other sites
MHz

Aut2Exe Error

Invalid FileInstall() function:

FileInstall (@DesktopDir & "\xhair1.bmp", @TempDir & "\xhair1.bmp")

that's the whole error... could someone point out the problem :idiot:

Problem is that you cannot have a variable or macro in the first parameter of FileInstall.

Share this post


Link to post
Share on other sites
SlimShady

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

Share this post


Link to post
Share on other sites
MHz

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. :idiot:

Share this post


Link to post
Share on other sites
layer

sorry i should of updated the code on the website :D but thanks guys :idiot:


FootbaG

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.