English
Forum

Notepad Starting and Text reinschreiben not working correct.

 

funkheld
Hello, this Source-code here from the Forum runs not at me correct with Win7. it'll dauernd Text into editor written.

Why the Error?

Thank you.

greeting
'Source watts on the 15.07.2007 from the MMJ-Quellcodesammlung (Dietmar horn) into Babyklappe on XProfan.com stored:
'Program fernsteuern (example: Notepad)
'The angegebene way to that Save is ggf. anzupassen
Declare Notepad&, NotepadWin&
' Notepad started
Let Notepad& = WinExec("NOTEPAD.EXE",1)' Notepad started
Let NotepadWin& = GetActiveWindow()' lever the Notepad-Mainwindow
' Text Send
SendString(0,"Hallo world!\n")
SendString(0,"Dieser Text comes of PROFAN-Program!{ENTER}")
SendString(0,"{- 20}{ENTER}")
SendString(0,"+(ready)!")
' Menübefele Send
SendKey(NotepadWin&,18)' old
SendKey(NotepadWin&,68)' D (File)
SendKey(NotepadWin&,85)' u (Save under)
' Save-dialog fill out
SendString(0,"D:\\TEST.TXT")
SendString(0,"{ENTER}")'... and OK
SendKey(NotepadWin&,18)' old
SendKey(NotepadWin&,68)' D (File)
SendKey(NotepadWin&,66)' B (terminate)
End
 
04/16/12  
 




E.T.
Hm, even durchgecheckt: Meinst You with


it'll dauernd Text into editor written.


the Text becomes into Profan-editor written ???
Habs even time played out, The spending becomes really into Profan-editor (in my case is the PrFellow) written.

time accurate look at, something runs there with the Window-lever schief, because in that Notepad-Window (which Yes there's) becomes nothing written.

Error exit but already XP on
 
XProfan X2
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...
04/17/12  
 




RGH
as the Beispielcode to over 10 years written watts, were The computer yet slower!
it must ensured his, that the Notepad too launched and the active Window is, before The row with GetActiveWindow() carryed out becomes. too SendString with 0 as lever uses the straight active Window.
Gleiches counts below, if the new Dateibname into Dateidialog written becomes.

straight with such middle-aged Examples is it helpful, To understand, what there happens, circa tappt im dunkeln on actually gegebenheiten adjust to.

Greeting
Roland
 
XProfan X2
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
04/17/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.993 Views

Untitledvor 0 min.
Uwe Lang01/02/18
Rainer Hoefs05/31/16
Muemmelmann02/14/14
Heiko Dix11/24/13
More...

Themeninformationen

this Topic has 3 subscriber:

RGH (1x)
E.T. (1x)
funkheld (1x)


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