AutoHotkey Community

It is currently May 27th, 2012, 1:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Questions
PostPosted: February 8th, 2011, 12:53 am 
Hi MasterFocus,
thx u for the great work.

The showpicture function works perfect, but is there a solution to show 2 pics in the same time?

And when i using the showtext function, it caused lags in game. My framerate go down from 30 to 19fps?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2011, 1:58 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Postman wrote:
Hi MasterFocus,
thx u for the great work.

:)
Postman wrote:
The showpicture function works perfect, but is there a solution to show 2 pics in the same time?

If you need multiple images and they can have a fixed position relative to each other, use an image software to merge both and apply transparence. I have already tried using a PNG with transparency and it worked. Also, be aware of the remark I documented.
Postman wrote:
And when i using the showtext function, it caused lags in game. My framerate go down from 30 to 19fps?

I've never experienced any lag at all when testing it. Can't help you out there. :(

Additionally, which game are you playing?
It'd be great to know it's working on a game I haven't heard before.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2011, 4:36 pm 
Offline

Joined: October 5th, 2007, 10:41 pm
Posts: 11
Hi it´s me again ;)

Does this library work with AutoHotkey_L?
I just cant get it to work (version 1.0.95.00).

In this simple example I always receicve ErrorLevel -4 when using " GPF_SetSingleLine()" and "GPF_ShowSingleLine()":

Code:
#Include GPF_v1.1c.ahk

return

F12::
GPF_Main( )
GPF_SetSingleLine(0,100,100,"Test",0xFF000000,0,20,0,0)
GPF_ShowSingleLine(0,1)
Return


I also tested your example 1 with the same result: EL "-4" (The specified function could not be found inside the DLL.)


EDIT:
Ok, I got it. Seems that you have to change the argument type from "Str" to "AStr" in some DLL Calls.
E.g. for multi line:

Code:
 GPF_SetMultiLine(ObjNum,PosX,PosY,Text,ARGB,UseBlackBG,FontSize,UseBold,SizeX,SizeY,FontFamily)
{
  static proc_GPML_SetTextMultilineData
    If ( proc_GPML_SetTextMultilineData = "" )
  proc_GPML_SetTextMultilineData := DllCall("GetProcAddress", uint, DllCall("GetModuleHandle", str, "gpcomms"), Astr, "GPML_SetTextMultilineData")
  DllCall(proc_GPML_SetTextMultilineData, UChar, ObjNum, "UShort", PosX, "UShort", PosY, "Astr", GPF_AuxGetFilledStr(Text,True), "UInt", ARGB, "Int", UseBlackBG, "UChar", FontSize, "Int", UseBold, "UChar", SizeX, "UChar", SizeY, "UChar", FontFamily)
  return ErrorLevel
}

GPF_ShowMultiLine(ObjNum,ShowText)
{
  static proc_GPML_ShowText
  If ( proc_GPML_ShowText = "" )
    proc_GPML_ShowText := DllCall("GetProcAddress", uint, DllCall("GetModuleHandle", str, "gpcomms"), Astr, "GPML_ShowText")
  DllCall(proc_GPML_ShowText, UChar, ObjNum, "Int", ShowText)
  return ErrorLevel
}


That works for me!


Last edited by andz on March 14th, 2011, 7:03 pm, edited 5 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2011, 6:43 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Thanks you andz for reporting.
I'm currently updating my website (slowly), adding a "compatibility column" and reviewing all code.
I'll try to make the necessary changes soon.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2011, 2:24 am 
Offline

Joined: June 1st, 2011, 1:26 am
Posts: 2
Is it possible to add it to games that use directx10?

EDIT:

for me it shows the splash when I start the game, but then I don't see anything in-game.

Do I have to press anything?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 8th, 2011, 11:47 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
sirxazor wrote:
Is it possible to add it to games that use directx10?

I can't tell, as I never tried. The original DLL documentation doesn't say anything about DX10.

sirxazor wrote:
Do I have to press anything?

I don't know your code. Depends on what you're trying.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2011, 8:38 pm 
jojonetwork wrote:
Thanks man you saved my life :D
Put file in same game directory and script too and .dll's, i ran script opened game ,pressed F11, F10, F12 , Still nothing appeared..Also i Tried in another game using Directx9 too..

How i can be wrong?


i test your code and i have the same... nothing xD, i cannot see the image, where is the problem?


Report this post
Top
  
Reply with quote  
 Post subject: DONT SHOW ANYTHING
PostPosted: August 30th, 2011, 8:57 pm 
Offline

Joined: August 30th, 2011, 8:52 pm
Posts: 1
i want to show a picture for five seconds when i press f12 button, but don`t work

the image path is ok, no warning from ahk

Code:
#Include GPF_v1.1c.ahk


GPF_Main()

GPF_SetPicture("C:\dreadsfrontend\aviso.jpg")

F12::
GPF_ShowPicture(1,500,200)


sleep, 5000


the game is Bomberman64, using the Project64 1.7 emulator with jacob direct3d 8 plugin... when the game is loaded, says "EXCEPTION:: CHANGEWINDOW" what i can do?

update:
i change the plugin and works , thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2011, 9:41 pm 
Anonymous wrote:
jojonetwork wrote:
Thanks man you saved my life :D
Put file in same game directory and script too and .dll's, i ran script opened game ,pressed F11, F10, F12 , Still nothing appeared..Also i Tried in another game using Directx9 too..

How i can be wrong?


i test your code and i have the same... nothing xD, i cannot see the image, where is the problem?

I've got the same problem

I tried example 1 from here: http://www.autohotkey.net/~MasterFocus/ ... Doc/#notes
But it shows nothing ingame...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 6:14 pm 
Can anyone help me?

http://de.autohotkey.com/forum/viewtopi ... 4854#74854


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 6:25 pm 
Hello,

When i start my game then this little screen start 2x an ingame are no showing


Report this post
Top
  
Reply with quote  
 Post subject: FPS
PostPosted: February 15th, 2012, 2:05 pm 
Hi MasterFocus, great work :D

Is it possible to save the fps output into a var ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2012, 7:41 pm 
Offline

Joined: March 13th, 2012, 8:31 pm
Posts: 5
Location: Santa Cruz, CA
Curious: Why is it that Mumble (mumble.sourceforge.net) can add an overlay to Steam games such as Team Fortress 2 or Left 4 Dead 2 without risk of being banned, but we can't? Is there any learning we could do from Mumble's method?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 21st, 2012, 12:27 am 
Nice work! Trying to use this with Tribes:Ascend to create custom reticles, but no luck. Game crashes on startup with this error:

"The procedure entry point D3DPERF_EndEvent could not be located in the dynamic link library d3d9.dll"


Report this post
Top
  
Reply with quote  
PostPosted: May 3rd, 2012, 6:00 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Hi all. It's been a long time.
Sorry for the delay. Let's answer a few things...

@SkepticTA and others:
Unfortunately, there is not really much I can do about very specific DirectX-related errors.
Despite being a common problem, "nothing happens" could be caused by many things, so it's hard to diagnose. :(

@malathion: I did not know about Mumble. Won't have time to check it, but I see it's an open source software. :)
So, maybe someone is interested in taking a look at the source code to see if it can be used with AHK. I'd be willing to help with that (although I never have much time for AHK nowadays).

@newbie1981: I suppose you'd have to do something like reading the memory for that... (maybe specifying the script EXE instead of the game EXE, I dunno)

I'd like to remember that the guy who created those provided DLLs has already released the source code.
If you're having DirectX specific problems (like SkepticTA), you'd probably have better luck checking his website and/or maybe contacting him.
Link: [ Proxy-DLL Section - Introduction ]

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 21 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