Search found 4305 matches

by jeeswg
Yesterday, 23:49
Forum: Ask For Help
Topic: chm file: get internal file contents (navigate to js file, don't download it)
Replies: 0
Views: 24

chm file: get internal file contents (navigate to js file, don't download it)

- I've been looking for ways to get the contents of files inside a chm file, without decompiling the chm file. - I was able to use an Internet Explorer object to navigate to certain internal files (e.g. an hhk file), but not an internal js file. If I try to navigate to an internal js file, it tries ...
by jeeswg
Yesterday, 23:12
Forum: AutoHotkey v2 Development
Topic: if var in/contains comma-separated list/array
Replies: 19
Views: 957

Re: if var in/contains comma-separated list/array

- I had thought that a CSL function could have dual functionality: array to comma-separated list (string) and vice versa. ["a", "b", "c"] <-> "a,b,c" - The same would apply to PSL. q:: ;testing ArrCSL / CSL functions oArray := ["a", "b", &q...
by jeeswg
Yesterday, 22:57
Forum: AutoHotkey v2 Development
Topic: slightly-improved dialogs
Replies: 4
Views: 344

Re: slightly-improved dialogs

- What would be better re. recreating SplashImage: using a Static control (closer to what a user would do) or drawing the image each time the window is activated (closer to the AHK v1 source code)? - There are examples of both here: no-frills SplashImage - AutoHotkey Community https://autohotkey.com...
by jeeswg
Yesterday, 18:07
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- GREAT. I used the -O2 flag instead of the -O3 flag, and my function worked. - I mentioned in the OP if anyone could suggest any good links for the TDM-GCC command-line parameters. - So changing the command-line flag (TDM-GCC), and the fact that AStr modifies the string (AutoHotkey) have been the t...
by jeeswg
Yesterday, 16:56
Forum: Other Programming Languages
Topic: ASM: ASM (assembly language) to machine code via FASM (flat assembler)
Replies: 1
Views: 38

ASM: ASM (assembly language) to machine code via FASM (flat assembler)

tl;dr 1 when the ASM is converted to an exe, how do I tell where the relevant machine code starts and ends tl;dr 2 how to convert the example ASM below from x32 to x64 tl;dr 3 people are welcome to comment generally about AutoHotkey, machine code, and FASM - I have seen one example on the forums so ...
by jeeswg
Yesterday, 11:50
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

nnnik wrote:Well I guess I never mentioned that you need to use VarSetCapacity to initialize data in them then.
Did you fix this yet? Can you explain what you meant. Thanks.
by jeeswg
Yesterday, 11:16
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- Add VarSetCapacity to the script? Add a VarSetCapacity C++ equivalent to the C++ code? - Any ideas re. what's causing the access violation? It seems that a lot of users have had that error when using machine code, but never got a response on the forum. Thanks. - Or what, is 'char *str', a pointer,...
by jeeswg
Yesterday, 07:35
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

Factorial - Wikipedia https://en.wikipedia.org/wiki/Factorial Fakultät (Mathematik) – Wikipedia https://de.wikipedia.org/wiki/Fakult%C3%A4t_(Mathematik) Thanks, Google Translate didn't suggest it. And searches for mathematics and Fakultät just gave me faculties (institutions).
by jeeswg
Yesterday, 07:29
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- @nnnik: Yes. Where did you come across this function: MyFunction(a-1,b*a), you call it the 'faculty' function, do you have a reference for it in German/English? Thanks. - [EDIT:] Looking at it again the function pointer stuff looks like it could be relevant, but from reading the tutorial I'm not c...
by jeeswg
Yesterday, 07:20
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- If 15 works but 16 doesn't, that suggests that *something* can only handle a nibble (4 bits of information). Although some of my other functions suggested that there is no limit of 16.
- I looked through a tonne of links: AutoHotkey mcode "access violation", I didn't find any solution.
by jeeswg
Yesterday, 06:50
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

Helgef wrote:It works as I expect, it returns 20 and initialises the char array as: 0, 1 ... 19
So it worked for you didn't it?

The error 0xc0000005 is access violation, suggesting a problem reading/writing data, however, the 1st of 4 stringedit examples successfully wrote to the first 20 bytes.
by jeeswg
Yesterday, 04:59
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

YES. OK Helgef, here we are. As you imply, if I comment out the AStr line, I get the 52 for the other lines that I was expecting. AStr is *modifying* the string. Hmm, it's a surprise that AStr is modifying the string, however! I had thought that AHK would create a temporary variable based on vText, ...
by jeeswg
25 May 2018, 21:35
Forum: Ask For Help
Topic: Loop through all instances of a class Topic is solved
Replies: 8
Views: 120

Re: Loop through all instances of a class Topic is solved

- Just thought I'd mention that some of this information is visible when you do ListVars. - So for a quick-and-dirty script you could grab the ListVars text and parse it, and put each pointer into the Object function, to then operate on the instance. - To grab that information without displaying the...
by jeeswg
25 May 2018, 19:46
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- There are some basic examples here, but the 4th one isn't working. - All 4 compile, but the last one doesn't seem to have an effect, or return a value. C++ int stringedit(char *str) { int i=0; for (; i<20; i++) str[i]=3; return i; } int stringedit(char *str) { int i=0; for (; i<20; i++) str[0]=i; ...
by jeeswg
25 May 2018, 17:41
Forum: Bug Reports
Topic: 1.1.29.00 Display Issue
Replies: 7
Views: 128

Re: 1.1.29.00 Display Issue

- Here's the issue, you can put a space between the object name and the first square bracket. - If you use a literal string for the object name, it refers to the base object for strings. q:: ;get value from object/string "".base.__get := "f" Arr := {"A": {"B":...
by jeeswg
25 May 2018, 09:04
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- Thanks, I've fixed it. My repnulls function is now working. - [I hadn't double-checked that function yet because the stringlen function still wasn't(/isn't) working.] - However, I still haven't got the stringlen function working. - I've looked through what you've said carefully, multiple times. Ap...
by jeeswg
25 May 2018, 08:55
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- @Helgef: Thanks. Sorry but I'm still unclear. - Ignoring AStr/WStr for the moment. My thoughts are these: if I use Ptr and &var, the function should receive a pointer to the start of the string, and loop through each byte. If it's a 26-char Unicode string with no null bytes inside of it, that'...
by jeeswg
25 May 2018, 08:32
Forum: Ask For Help
Topic: Simple File Explorer Fix
Replies: 8
Views: 196

Re: Simple File Explorer Fix

- This slightly altered script should be easier to understand: #Persistent ;EVENT_SYSTEM_FOREGROUND := 0x3 DllCall("user32\SetWinEventHook", UInt,0x3, UInt,0x3, Ptr,0, Ptr,RegisterCallback("OnExplorerActive"), UInt,0, UInt,0, UInt,0, Ptr) ;plays a sound every time an Explorer win...
by jeeswg
24 May 2018, 23:53
Forum: Ask For Help
Topic: Copy file name from inactive window title Topic is solved
Replies: 4
Views: 63

Re: Copy file name from inactive window title Topic is solved

One way:

Code: [Select all]GeSHi © Codebox Plus

q:: ;get active window title (a path is expected), split path to get name/name no ext
WinGetTitle, vWinTitle, A
SplitPath, vWinTitle, vName, vDir, vExt, vNameNoExt, vDrive
MsgBox, % vName
MsgBox, % vNameNoExt
return
by jeeswg
24 May 2018, 22:28
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 26
Views: 375

Re: C++: C++ to machine code via TDM-GCC

- A further point: - Why do WStr and Ptr not work here as expected? ;stringlen := MCode("2,x86:i0wkBDPAOAF0B0CAPAgAdfnD,x64:M8A4AXQKSP/B/8CAOQB19vPD") ;equivalent to line below stringlen := MCode("2,x86:i1QkBDHAgDoAdBCQjXQmAIPAAYA8AgB19/PD88M=,x64:gDkAdBpIg8EBMcAPH0QAAEiDwQGDwAGAef8Ad...

Go to advanced search