Search found 444 matches

by newbieforever
30 Mar 2020, 05:27
Forum: Ask For Help
Topic: How to embed Notepad in a GUI?
Replies: 25
Views: 1001

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: 1001

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: 1001

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: 1001

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: 247

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: 247

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: 388

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: 531

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: 531

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: 409

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: 409

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: 409

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: 1193

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...
by newbieforever
04 May 2019, 15:30
Forum: Ask For Help
Topic: OnExit and shutdown
Replies: 8
Views: 1193

Re: OnExit and shutdown

It seems that no new program at all can be started from the exit function (neither a CMD nor a bat nor a VBS script nor an AHK script nor an exe). So the deletion of the interpreter at shutdown should be impossible...

Or does anyone here have a brilliant idea?
by newbieforever
04 May 2019, 05:46
Forum: Ask For Help
Topic: OnExit and shutdown
Replies: 8
Views: 1193

Re: OnExit and shutdown

Thank you, swagfag! I am now able to answer my own question: - Yes, the OnExit demo script works for all exit reasons. - It works for shutdown too. - Failing in my case is due to the peculiarities of "some actions". The following new demo script illustrates this: #Persistent Global ExitTxt := A_Scri...
by newbieforever
03 May 2019, 11:48
Forum: Ask For Help
Topic: OnExit and shutdown
Replies: 8
Views: 1193

Re: OnExit and shutdown

Thank you, SirSocks & wagfag! SirSocks: ... As exit reason, however, the documentation also lists shutdown... (!?) swagfag: I know that this topic is dealt with in the documentation, but for shutdown unfortunately too little explicit for me ... hence my question here. Does the exit function have to ...
by newbieforever
03 May 2019, 09:52
Forum: Ask For Help
Topic: OnExit and shutdown
Replies: 8
Views: 1193

OnExit and shutdown

Hi! In my script "some actions" are executed correctly on ExitApp (hotkey F9). I suppose this should work for every other exit reason too, shouldn't it? In my case (where "some actions" are quite complex) this fails on shutdown (or if the script is terminated from TaskManager). Am I correct when I a...
by newbieforever
02 May 2019, 04:11
Forum: Ask For Help
Topic: Controls with shortcut keys
Replies: 7
Views: 899

Re: Controls with shortcut keys

WalkerOfTheDay: Yes, not a perfect workaround, but it works...
by newbieforever
02 May 2019, 01:46
Forum: Ask For Help
Topic: Controls with shortcut keys
Replies: 7
Views: 899

Re: Controls with shortcut keys

Thank you, gregster. In the meantime I believe that there is no way (no trick). But there are workarounds, yes.
by newbieforever
01 May 2019, 06:07
Forum: Ask For Help
Topic: Controls with shortcut keys
Replies: 7
Views: 899

Re: Controls with shortcut keys

WalkerOfTheDay, I edited my demo script to illustrate the problem better. The shortcut letter doesn't work if the MsgBox is displayed.

Go to advanced search