Jump to content

FileInstall Probelm...


Recommended Posts

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
Link to post
Share on other sites

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.
Link to post
Share on other sites

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...