English
Forum

Timer-trouble

 
- Page 1 -



E.T.
there Yes here:  [...]  no reaction To verzeichnen was, would like I the Topic again aufgreifen. I Have there under "Mit Settimer funktionierts..."  posted, the it with "Settimer" functions.

unfortunately scheind the still not so To his !!!

Have me today time hingesetzt, and my own Prog time again tested: and see there, sometime (so ex 250 Durchläufen) becomes too The Loop ("Mit Settimer funktionierts..." ) always faster (and faster, and faster...).

or ought to there one bow in the XProfan his ??

Werd's jetz time with a "Killtimer"  in the Loop try...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/09/10  
 



 
- Page 2 -


« this Posting watts as Solution marked. »

- Page 1 -



RGH
Hi,
I have your Programmausschnitt time the Notwendige minimizes and to that complete Program extended:
CLS
ShowCursor 2
declare end%, LfdBild%
assign #1,$PROGDIR + "Timer.txt"
rewrite #1
@Set("Decimals",4)
declare S&, E&
SetTimer 2000

WhileNot end%

    Inc LfdBild%

    If (%Key = 27)

        end% = 1

    Else

        Print ".";
        S& =  &GetTickCount
        waitinput
        E& = &GetTickCount

    EndIf

    print #1,"Durchlauf : " + @st$(LfdBild%) + " = " + @Str $((E& - S&) / 1000) + "Sekunden"'***

EndWhile

KillTimer
close #1
ShowCursor 1
END

The Timer versieht unbeirrt its service. too to over 400 Durchläufen remaining it with its 2 sec! The problem must well into others Programmteilen from you lying, The I Yes not exist and therefore its appeal removes have.

Also reicht it in this example, whom Timer once outside the Loop to settle and subsequently again To Remove (see Listing). The Timer runs such a long time, To it by a renewed SetTimer-commands supplant becomes or with KillTimer deleted becomes. (One SetTimer-commands contains too always a KillTimer-commands.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
11/23/10  
 




E.T.
Hm, Gibts because 'ne Possibility to get, where the wm_command herkommt ? in the Prog self Have I weder Window- yet System Menu, Screen saver is definitiv from (this created too others Messages as 273). my Prog is Yes in the waitinput , there ought to it self too no Messages on itself self produce....

[OFFTOPIC]
iF (24.11.10)
Tz! Konstantinopel:  [...] 


clear Have I the Konstantin Opel . having indeed written, that I strain nothing to hand Have (other system).
[/OFFTOPIC]
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/25/10  
 



"Sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when on accelerator keystroke is translated. "
 
11/25/10  
 



@E.T.: with wParam 61808 is the HiWord 0 and hiernach  [...]  would it imho a Menu-Message.

The problem is hierbei sooner the You always of it go out must of irgendwem irgendeine Message To get and the can discretionary his and must not "stimmen" or in a offensichtlichen "Zusammenhang" stand. ^^

Letztendlich should You hold ("nur") on The Messages react The You too expect and even so program the others Messages alike his can because even always something come can...
 
11/25/10  
 



"und must not "stimmen""

Message having always a Bewandnis, only are you not coercive for User interestingly, separate sooner for the Window.

WM_COMMAND is a old Notify-method, for later WM_NOTIFY introduced watts. The compatibility because of watts it to maintain, therefore come above still diverse Notify-Messages.
 
11/25/10  
 




E.T.
"Mein god, now has er's !!!" or "Der devil's stick in the detail..."  , so, or similar would I the now name.
Getestet on 2 system, on 2 Systemen the same "Fehler" (which really none is ).
On both Systemen i was me sure, whom Screen saver and the Monitor-turn off off to have. and wills the devil's, by me on the computer runs one Tool, which ex and on guckt, whether the "Monitor-Abschalten" yet active is, and unless, this again anschaltet (because I hold so vergesslich be...). and now ratet time (or rather not), who on the others (office-) system whom computer arranged has and thereby so far virtual has, the still over ands over again the Monitor one nice "eingebranntes" Image shows, only because the Dingens simply in the morning angemacht watts, none what on the computer To do having and to 2 weeks "gejammert" watts, Why because any Desktop-Bildchen always and forever To see are ??

cool made, Mario !! On your own Tool reingefallen !! After 10 mins. was means The Energiespar-function again on, even if one these to that testing by Systemkonfiguration shorted has.

UND GENAU THESE ENERGIESPAR-FUNKTION HAT MESSAGE "273" AUSGELÖST !!!
I Have of course in of my SlideShow reinprogrammiert, the Screen saver or. "Monitor-Abschalten" deaktiviert go:

the The Power-thing ex Vista More funz was me Yes clear, but there are Yes both XP-systems. the turn off one Screen saver functions too wonderful, only the "Monitor-AUS" scheind with XP-SP3 not To grab. there becomes still well not of/ one with MS The ex Vista geänderte API already into SP3-Update gewürfelt having ?? . Have on the WE time a computer with XP-SP2 into Finger'n, werd I still same test times...

so far, sogut: "Fehler" found !! remaining only The question, How everything umproggen:
simply time with the mouse "wackeln" bypassing this trouble indeed, or it "sauber" umprogrammieren via GUID_VIDEO_POWERDOWN_TIMEOUT power setting ...

would be then only well to know, when MS again a or others API changes...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/26/10  
 



^^
 
11/26/10  
 




E.T.
The "unschöne" Solution: with all "falschen" Messages simply time with the mouse wag...
...
overlay(@Rnd(5))
Text
SetTimer ShowTime%
waitinput'ShowTime%

Ifnot %Message = 275

    If @IsKey(19)

        interval

    ElseIf @IsKey(107)

        ShowTime% = ShowTime% + 500

    ElseIf @IsKey(109)

        Case ShowTime% > 500 : ShowTime% = ShowTime% - 500

    Else

        mouse_event(MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_MOVE, mX&, mY&, 0, 0)

    EndIF

EndIF

KillTimer
Invisible(@Rnd(5))
...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/27/10  
 



understand I do not so right what You so mean. ^^

If unexpected Messages come wackelst with the mouse so the Screen saver disappears? ^^
 
11/27/10  
 




E.T.
well, there the deaktivieren the Monitor-Power-Save by SystemParametersInfo  XP SP3 not To grab scheind (Schoner becomes Yes shorted), simply time these (unschöne) method: If the ominöse Message 273 (s.o., of Power-Save) comes, simply time with the mouse wag...
unschön dehalb, weils indeed with all others Messages, which not processing go, clutching...

only time so on The speedy, To I with the GUID_VIDEO_POWERDOWN_TIMEOUT power setting  keep busy can.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/27/10  
 



and and so beschränkst not on The Message?

i'd The mouse too there+back moving so one nothing of it observes. ^^
 
11/27/10  
 




E.T.
iF (27.11.10)
and and so beschränkst not on The Message?


so is too same first everything else "gekillt", what my Prog not interested.

iF (27.11.10)
i'd The mouse too there+back moving so one nothing of it observes. ^^


unnecessary, there the Cursor ausgeblendet is and none interested.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/27/10  
 



neither to leave the Schoners? oO
 
11/27/10  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

18.815 Views

Untitledvor 0 min.
Erfurt02/27/22
RudiB.12/28/21
E.T.11/06/14
Klaus Ernst09/22/14
More...

Themeninformationen

this Topic has 4 subscriber:

E.T. (9x)
iF (9x)
RGH (4x)
unbekannt (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie