Search found 411 matches

by newbieforever
Today, 12:56
Forum: Ask For Help
Topic: Encoding in an Edit control Topic is solved
Replies: 4
Views: 119

Re: Encoding in an Edit control Topic is solved

Sorry ... very stupid ... My problem was caused by using the font Courier for the Edit control ... :mrgreen:
by newbieforever
Today, 09:10
Forum: Ask For Help
Topic: Encoding in an Edit control Topic is solved
Replies: 4
Views: 119

Re: Encoding in an Edit control Topic is solved

boiler wrote:
Today, 09:02
Are you using the Unicode version of AHK?
Yes, U32.
by newbieforever
Today, 07:18
Forum: Ask For Help
Topic: Encoding in an Edit control Topic is solved
Replies: 4
Views: 119

Encoding in an Edit control Topic is solved

How to set the encoding of a text in an Edit control of a Gui? If a text is read from a file encoded e.g. in CP65001 and inserted in an Edit control via GuiControl, some characters are not displayed correctly
by newbieforever
Yesterday, 02:39
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

WB.document.Location.reload(true) Thank you very much, teadrinker. The above is working, but the page is reloaded and redisplayed from the top. When F5 is used in IE (or other browsers) to refresh the page, the browser redisplays the currently displayed section of the page. But I see now that WB.re...
by newbieforever
30 Mar 2020, 14:50
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

@teadrinker: ... The page showed in the IE window should be reloaded ...
by newbieforever
30 Mar 2020, 11:53
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

teadrinker wrote:
30 Mar 2020, 11:49
newbieforever wrote: a simple command to refresh the embedded IE
... perhaps wb.refresh().
Yes, but I don't know how to use wb.refresh() in this setting of an embedded IE window ...
by newbieforever
30 Mar 2020, 11:16
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

teadrinker wrote:
30 Mar 2020, 07:57
What functionality are you missing?
... The whole standard functionality of Notepad ... searching/replacing, simple encoding management when saving ... ...

Another (off topic) question: Is there a simple command to refresh the embedded IE?
by newbieforever
30 Mar 2020, 05:27
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

Thanks to ahk7, teadrinker, garry. In the meantime I experimented with the "workaround" Edit, but the functionality limitations compared to Notepad are too big for my purpose. So may I put my original question once again into the foreground: Of course I see and know that there are workaround solutio...
by newbieforever
28 Mar 2020, 07:03
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

There seems to be a data limit for Edit, e.g. a 300 kB file can not be displayed and edited in Edit. Interesting: This doesn't work with larger files (f1): FileRead, Code, % f1 ;;; Gui Add, Edit, w1080 h200 vvEdit, %Code% ;;; Error: Can't create control. But this does: FileRead, Code, % f1 ;;; Gui ...
by newbieforever
28 Mar 2020, 05:13
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

Re: How to embed Notepad in a GUI?

Thank you, ahk7!

Edit, of course, this was my first attempt, but: There seems to be a data limit for Edit, e.g. a 300 kB file can not be displayed and edited in Edit.
by newbieforever
28 Mar 2020, 03:59
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 585

How to embed Notepad in a GUI?

How to embed Notepad in a GUI?

Is there a simple method like this one to embed IE, https://www.autohotkey.com/boards/viewtopic.php?t=46702#p210448?

EDITED: I would like to embed in a GUI both of them, IE and Notepad.
by newbieforever
10 Jul 2019, 08:11
Forum: Ask For Help
Topic: Enter hotkey not working
Replies: 1
Views: 216

Re: Enter hotkey not working

Crazy!
The SC of the normal (!) Enter key on this computer's keyboard is the SC of NumpadEnter! (I discovered this using the key history.)

So this works:

Code: Select all

~SC11C::
~Enter::
  MsgBox %A_ThisHotkey% pressed
  Return 
by newbieforever
10 Jul 2019, 07:22
Forum: Ask For Help
Topic: Enter hotkey not working
Replies: 1
Views: 216

Enter hotkey not working

Hi! The Enter hotkey I use in my scripts works perfectly on all my computers, but it fails to work on my new one. (The new computer is a convertible notebook with a normal keyboard; and there is no problem on an older model of the same manufacturer. And the Enter key itself is working perfectly.) So...
by newbieforever
14 May 2019, 09:09
Forum: Ask For Help
Topic: How to force Explorer to refresh?
Replies: 0
Views: 347

How to force Explorer to refresh?

Hi! In some situations (e.g. a timestamp of a file is changed by an AHK script...) Windows Explorer does not show accurate timestamps or icons of files. Even applaying F5 for refresh does not help in such situations. I am not sure but maybe this updates the file icons: DllCall("Shell32\SHChangeNotif...
by newbieforever
14 May 2019, 08:48
Forum: Ask For Help
Topic: How to use RawRead (a newbie question) Topic is solved
Replies: 2
Views: 473

Re: How to use RawRead (a newbie question) Topic is solved

Thank you, Osprey! Of course, yes... In my real script the Size was defined, but was not a global variable...
by newbieforever
13 May 2019, 04:43
Forum: Ask For Help
Topic: How to use RawRead (a newbie question) Topic is solved
Replies: 2
Views: 473

How to use RawRead (a newbie question) Topic is solved

Hi! I just can't figure out why this isn't working. The file which should be read is present, not open in another program or running, but the RawRead fails: MsgBox II shows the correct length. In the case of an exe (Lux.exe) MsgBox III shows 0; in the case of a txt (Text.txt) MsgBox III is not shown...
by newbieforever
06 May 2019, 12:30
Forum: Ask For Help
Topic: WinClose fails in OnMessage/ShellMessage
Replies: 2
Views: 361

Re: WinClose fails in OnMessage/ShellMessage

Please forgive me for this bunch of newbie misunderstandings!

The error window was not detected because the OnMessage line was inserted too far down in the script...

Sorry...
by newbieforever
06 May 2019, 11:46
Forum: Ask For Help
Topic: WinClose fails in OnMessage/ShellMessage
Replies: 2
Views: 361

Re: WinClose fails in OnMessage/ShellMessage

I know now that I completely misinterpreted my problem.

In my script the syntax-error window is not detected by OnMessage/ShellMessage! What could be the reason?
by newbieforever
06 May 2019, 09:03
Forum: Ask For Help
Topic: WinClose fails in OnMessage/ShellMessage
Replies: 2
Views: 361

WinClose fails in OnMessage/ShellMessage

Hi! EDITED: Sorry...it's not worth reading. A bunch of misunderstandings! I hope that this question is understandable enough. I am using OnMessage(MsgNum, "ShellMessage") to detect the syntax-error window on start of another script and to close it immediately. In the following demo script this works...
by newbieforever
05 May 2019, 04:19
Forum: Ask For Help
Topic: OnExit and shutdown
Replies: 8
Views: 1014

Re: OnExit and shutdown

abort the shutdown... I am working on this method, yes, thank you very much, swagfag. But already a reliable aborting of shutdown (which works on all Windows versions) seems to be difficult to implement... Two more questions: - In Windows there are probably no temp folders, which are emptied automa...

Go to advanced search