English
Forum

Cursor-position force

 
In my Faulenzer-Program commit I over the clipboard Texts on a File with Append #x - the functions too, only becomes then jedesmal the Cursor a couple Lines deeper staid. The next Text standing So one ganzes Piece moreover in the File. gives it a Message with the I the Cursor at Reading the File directly behind whom last entry force can ?
 
03/12/07  
 




Michael
Wodrich
the lying only on whom additional Zeilenschaltungen.
write You no into (or. filterst before the Blockende on Zeilenenden) then ought to everything in the Lot his.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
03/12/07  
 



@Hello Michael

The Text is with SLEEP 200 registered, there here WAITINPUT not goes. naturally writes the Prrogramm still Leerzeilen until next SLEEP - How but filtere I the Textende ? - KLeiner Denkanstoss would helpful - Daaanke

@iF

[offtopic] here in the input is the Cursor manchesmal not visible. alike whether I with the mouse on The position click or The Richtungstasten use. [/offtopic]
 
03/13/07  
 



[offtopic]i don't know Why Firefox the does. For this, too:  [...] 
 
03/13/07  
 




Michael
Wodrich
there should I already one Bischen code circa and the Append having circa there something genaueres To say to. can it Yes by PM send.
I werd then here a general Info above post and you The Special Änderung.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
03/15/07  
 



@Michael
thanks for your interest - have me a Code Andreas Hötker runtergeladen
CompileMarkSeparation
Def @GetCurrentThreadId(0) !KERNEL32,GetCurrentThreadId
DEF @GetDlgCtrlID(1) !USER32,GetDlgCtrlID
DEF @ButtonClicked(1) @GetDlgCtrlID(@&(1))=-%MENUITEM
Def @SetTimer(4) !USER32,SetTimer
Def @KillTimer(2) !USER32,KillTimer
Declare Timer_WIN&,Text$[3],Button&,Zähler%,TIMER_ID&,PRO_ID&,TH_ID&
Windowstyle 31+512
Windowtitle Selbständig laufende Programmschleife
Window 0,0-640,440
Usermessages $10
LET TIMER_WIN&=@Control(Static,TIMER_WIN,$8000000,0,0,0,0,%Desktop,9998,%HINSTANCE,$4)
Let Button&=@createbutton(%HWND,,20,100,300,30)
LET TEXT$[0]=Hier klicken...
LET TEXT$[1]=...für die...
LET TEXT$[2]=...Messagebox!
LET TIMER_ID&=@SetTimer(TIMER_WIN&,9999,1500,@ProcAddr(TimerProc,4))

While %UMESSAGE<>$10

    Waitinput
    Locate 0,0
    Print @GetCurrentThreadId(),TH_ID&

    IF @ButtonClicked(Button&)

        @messagebox(Der Text auf dem Button ändert sich weiterhin!,Ein Wunder...?,64)

    endif

wend

@KiLLTIMER(TIMER_WIN&,9999)
end

Proc TimerProc

    Parameters ahhwnd&,ahuMsg&,ahidEvent&,ahdwTime&
    Settext Button&,Text$[Zähler%]
    INC Zähler%
    Case Zähler%=4 : LET Zähler%=0
    LET TH_ID&=@GetCurrentThreadId()

Endproc


...and so works The thing
 
03/15/07  
 




...and so works The thing


Please insgesammt softly-softly his with such Callbacks. becomes of Profanprogramm one Window created during one Callback running, there with Profan one heilloses confusion - and the but (unfortunately) neither always...
 
03/15/07  
 



@Hello Andreas
thanks for warning, but your code functions fine. only one Weird behaviour Have I notice: Since I the Mainwindow with SHOWMIN into Statuszeile ban and then with Strg+C betonten Text to that Window mail, benimmt the thing so: Click I on whom programmierten Button to that minimize is everything OK - Click I on whom Unterstrich in the Systemmenu supra right, go already available Texts in of my File deleted ! there come I but too yet behind. in the momentum have I WindowsStyle 22 and there does it minimize over Systemmenu not.
 
03/15/07  
 



where You Procaddr too anwendest - it'll crashen if The aufrufende Api not as long as wait until The Proc behind Procaddr not any more needed.

I can accordingly only from the Settimer-Api with Procaddr-indicated dissuade To Roland the gefixt has.
 
03/15/07  
 




Michael
Wodrich
and what has with the Append To do?
 
Programmieren, das spannendste Detektivspiel der Welt.
03/16/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.147 Views

Untitledvor 0 min.
Sven Bader03/07/21
Peter Max Müller10/19/17
Ernst04/22/16
Hans Hermann03/22/11

Themeninformationen



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