AutoHotkey Community

It is currently May 25th, 2012, 12:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Help with ingame pic
PostPosted: July 24th, 2007, 6:22 pm 
Offline

Joined: July 24th, 2007, 6:20 pm
Posts: 7
I am a newb here, and i need help with getting a pic ingame.
I have this:
Code:
~Insert::
KeyWait, Insert
GetKeyState, InsertState, Insert, T
If InsertState = D
{
    gActivateScript = 1
Gui Show, X0 Y0 W%A_ScreenWidth% H%A_ScreenHeight% ; Create a semi-transparent cover window
    Gui, +AlwaysOnTop +Owner -Border
    Gui, Add, Picture, C:\Documents and Settings\s\Bureaublad\naamloos.bmp
    Gui, Show, NoActivate
   
}
else
{
    gActivateScript = 0
    SoundBeep, 500, 200
    Gui, Hide
}
return

but i only get a little white square


Last edited by themagnetronfahrer on July 25th, 2007, 3:29 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 24th, 2007, 6:27 pm 
Nö.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 2:58 pm 
Offline

Joined: July 24th, 2007, 6:20 pm
Posts: 7
NO?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 3:13 pm 
@jeroen
Instead of using your fixed local path:
C:\Documents and Settings\jeroen.onis
you could use the EnvVar %USERPROFILE%
so your scripts become more flexible. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 3:29 pm 
Offline

Joined: July 24th, 2007, 6:20 pm
Posts: 7
How do you think of it now :P
Code:
~Insert::
KeyWait, Insert
GetKeyState, InsertState, Insert, T
If InsertState = D
{
    gActivateScript = 1
    Gui, +AlwaysOnTop +Owner -Border
    Gui, Add, Picture, C:/Program Files/Newscript/naamloos.bmp
    Gui, Show, NoActivate
   
}
else
{
    gActivateScript = 0
    SoundBeep, 500, 200
    Gui, Hide
}
return

but that was not the problem,


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 3:40 pm 
Quote:
How do you think of it now
Useless? Once you've started to read the AHK help file you'll end up with: A_ProgramFiles or ProgramFiles. :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 3:43 pm 
Offline

Joined: July 24th, 2007, 6:20 pm
Posts: 7
I had read a bunch of things in the help file, but its so bigg :oops:
And its still not the problem.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 4:29 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
what game? what is your final goal?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2007, 5:10 pm 
Offline

Joined: July 24th, 2007, 6:20 pm
Posts: 7
I solved the problem, but ingame (bf2) the pic just flash once.
My goal is to get pics ingame so I can make tactics for my clan, so they can watch them, the pic will be on a webserver, so i can chance it every time.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: cmikaiti, Google Feedfetcher, Pulover and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group