Naufuge Posted December 29, 2005 Share Posted December 29, 2005 does anyone know how to do screenhooks with C or C++, or do u have a link to a tutorial? Thank you. Naufuge Link to comment Share on other sites More sharing options...
nfwu Posted December 29, 2005 Share Posted December 29, 2005 Screenhooks? Or do you mean Screenshots? Or getting the Handle of a window? or controlling windows? TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Naufuge Posted December 29, 2005 Author Share Posted December 29, 2005 I mean like displaying a image, with txt over it, hooked to a certin point on a window. Like the version part of d2jsp. It displays a bmp, at the top of the screen, then displays the text of the version number on it. Link to comment Share on other sites More sharing options...
nfwu Posted December 29, 2005 Share Posted December 29, 2005 You mean something like autoit's SplahImageOn() ? TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Naufuge Posted December 29, 2005 Author Share Posted December 29, 2005 somewhat like that, except when the window is moved, so is the splash, and if the window is minimized, the splash is off. Link to comment Share on other sites More sharing options...
nfwu Posted December 30, 2005 Share Posted December 30, 2005 $WINDOW_NAME = "MyGUI" $SPLASH_TITLE = "Splash" $SPLASH_IMAGE = "image.bmp" $SPLASH_WIDTH = 100 $SPLASH_HEIGHT = 100 while 1 if not WinExists($WINDOW_NAME) Then SplashOff() else $loc = WinGetPos ( $WINDOW_NAME ) SplashImageOn ( $SPLASH_TITLE, $SPLASH_IMAGE , $SPLASH_width , $SPLASH_height ,($loc[2]-$SPLASH_WIDTH)/2+$loc[0], ($loc[3]-$SPLASH_HEIGHT)/2+$loc[1]) endif sleep (2000) wend AutoIt is simple, subtle, elegant. Then you create the GUI in C++, and enter the name into the $WINDOW_NAME variable. TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Naufuge Posted December 30, 2005 Author Share Posted December 30, 2005 (edited) That Works Great!!! only is there a way to cut down the flicker, and still have it work fast... as in Sleep(100), it flickers more, but reacts faster and Sleep(5000) it flickers less, but reacts slower. can this be fixed. like, $loc2 = WinGetPos($WINDOW_NAME) If $loc2[0] = $loc[0] Then ;;; Do Nothing Else SplashImageOn ( $SPLASH_TITLE, $SPLASH_IMAGE , $SPLASH_width , $SPLASH_height ,($loc[2]-$SPLASH_WIDTH)/2+$loc[0],$loc[1]+($SPLASH_HEIGHT*1.45),1) EndIf If $loc2[1] = $loc[1] Then ;Do Nothing Else SplashImageOn ( $SPLASH_TITLE, $SPLASH_IMAGE , $SPLASH_width , $SPLASH_height ,($loc[2]-$SPLASH_WIDTH)/2+$loc[0],$loc[1]+($SPLASH_HEIGHT*1.45),1) EndIf would this work? Yes it does, i just tryed it... Works Great. Thank you Edited December 30, 2005 by Naufuge Link to comment Share on other sites More sharing options...
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