B4X FEED Communicating with Windows System

  • نویسنده موضوع نویسنده موضوع PracticalBot
  • تاریخ شروع تاریخ شروع

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Communicating with Windows System است. این موضوع تا کنون 18 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Communicating with Windows System
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
18
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
I have a program that I wrote some time ago in Delphi that I am translating into B4J. It is a small utility that modifies filenames. It is easy enough to convert the code except for the following line :
B4X:

SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0)

I know nothing about Windows System programming - I simply copied this line from the internet without understanding how it works. The code causes any open File Explorer window to be updated, so showing any filename changes.

How can I replicate this action using B4J? I assume that there is no direct equivalent in Java. Would it be possible to invoke a batch file to achieve the same end, in which case how would I run the batch file and what would it contain?

My tentative backup plan is to write a "one-line" Delphi program and try to run that from B4J, although I am not sure how to handle repeat invocations.

Thanks for any advice.

 

عقب
بالا