Search found 201 matches

by kyuuuri
25 Jan 2019, 06:00
Forum: Ask For Help
Topic: Using image without writing it to a file? Topic is solved
Replies: 11
Views: 626

Re: Using image without writing it to a file? Topic is solved

yes: #Include <Gdip_All> ; https://github.com/mmikeww/AHKv2-Gdip/blob/master/Gdip_All.ahk Gdip_Startup() image := "iVBORw0KGgoAAAANSUhEUgAAAgUAAABOCAYAAACwnGWLAAAaa0lEQVR42uydwW4TVxSGvagQQipCFQuoSsO6m0plhVrJfYNuqCqhSryBi2DVTR6hj+BXgJYFChVKEaQBRDV2aAgRClZiEjs1xpgQ0rSLqX+LU7i+4xzfmbHHM/Mf6V+YjMdz/zHn...
by kyuuuri
25 Jan 2019, 03:36
Forum: Ask For Help
Topic: Using image without writing it to a file? Topic is solved
Replies: 11
Views: 626

Using image without writing it to a file? Topic is solved

Hello, is it possible to use an image without writing it to a file? What I need is something like what can be done in HTML where you can use the Base64 encode of an image instead of having the image in a file. To be more specific, it would be something like this: image = ;all the image goes here in ...
by kyuuuri
15 Jan 2019, 06:21
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

I feel stupid, but that was an small detail hahaha. Thank you!
by kyuuuri
15 Jan 2019, 05:33
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

show all scripts CritObj := CriticalObject({"answer": 0, "on": 1}) test = ( CritObj := CriticalObject(A_Args[1]) CritObj.answer = 1 CritObj.on = 1 msgbox `% CritObj.answer " and " CritObj.on ) return f1:: tooltip % CritObj.answer " and " CritObj.on asd := AhkThread(test, &CritObj) return There you ...
by kyuuuri
15 Jan 2019, 02:05
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

Hello, I'm trying to do the following: CritObj := CriticalObject({"answer": 0, "on": 1}) And when i do CritObj.on = 1 on a thread it shows an error: "CritObj.on Does not contaign a recognized action", but if I do CritObj.answer = 1 it works. To create the thread I'm doing the following: asd := AhkTh...
by kyuuuri
13 Jan 2019, 23:28
Forum: Ask For Help
Topic: Found a bug on ahk?
Replies: 1
Views: 161

Found a bug on ahk?

Hello, i have the following code: asd = ( ReadIni() { linearray := StrSplit(asd123, "`r`n") return } ) and it gives an error: "Missing close-quote" on linearray:= declaration line. If i do the following: asd = ( ReadIni() { ;linearray := StrSplit(asd123, "`r`n") return } ) it gives an error: "Line t...
by kyuuuri
13 Jan 2019, 21:25
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

https://www.autohotkey.com/docs/Scripts.htm#continuation https://i.imgur.com/KeTRBFM.png Thank you, 1 last question that I couldn't find on the docs: What's the correct way to translate a normal script to an script inside a continuation section, for example: test = ( process1 = asd msgbox Process %...
by kyuuuri
13 Jan 2019, 19:58
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

Nice, thank you. 1 last question in case you can answer (if not I will open another topic). When I declare my code as a variable like this: asdasd = ( ; 562 lines code here ) I get "variable name too long". Does this mean that the content (not the name) of the variable is too long? or is this a bug?...
by kyuuuri
13 Jan 2019, 19:33
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

Sorry for double post. Adapted it to AHK_H v1 CritObj := CriticalObject({"counter": 0}) Thread := AhkThread(" ( CritObj := CriticalObject(A_Args[1]) w:: ++CritObj.counter tooltip, % CritObj.counter return )", &CritObj "") q:: ++CritObj.counter tooltip, % CritObj.counter return I can't believe it was...
by kyuuuri
13 Jan 2019, 19:21
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

Re: How to share variables between threads? Topic is solved

since u didnt specify here it is for v2, q / w to increment from main and thread, respectively: CritObj := CriticalObject({"counter": 0}) SetTimer(() => ToolTip(CritObj.counter), 10) Thread := AhkThread(" ( CritObj := CriticalObject(A_Args[1]) w::++CritObj.counter )", &CritObj "") q::++CritObj.coun...
by kyuuuri
13 Jan 2019, 18:46
Forum: Ask For Help
Topic: How to share variables between threads? Topic is solved
Replies: 17
Views: 1291

How to share variables between threads? Topic is solved

Hello, I'm asking this because I couldn't make it by myself (already read the docs) and couldn't find any answer on the forum.
I'm trying to do this in Ahk_h v1*
by kyuuuri
12 Jan 2019, 17:50
Forum: Ask For Help
Topic: Decompiling
Replies: 111
Views: 37824

Re: Decompiling

Applies to both v1 and v2. In this line you should instead call the function that returns your password: https://github.com/HotKeyIt/ahkdll/blob/master/source/util.cpp#L3219 Whatever you do you can see in debugger what you function returns and use it as password. You might need to adapt some other ...
by kyuuuri
12 Jan 2019, 04:50
Forum: Ask For Help
Topic: Decompiling
Replies: 111
Views: 37824

Re: Decompiling

@HotKeyIt: everything you said about protecting source from debuggers applies to Ahk_h v1 as well? or only v2? Can you give me an example of everything I should do to make a dynamic password? (I don't mean "do it for me" I mean which steps should i follow to change the password declaration to someth...
by kyuuuri
12 Jan 2019, 01:21
Forum: Ask For Help
Topic: Using ahktextdll() and GlobalVarsScript() with dllcall
Replies: 0
Views: 207

Using ahktextdll() and GlobalVarsScript() with dllcall

Hello, I'm currently making a software I'm going to sell and I faced a problem: On my program users have to login and, because more than 1 user using the same username and password is not allowed, i made it write on DB with "TRUE" when logged in and "FALSE" when logged off. My problem is that I can ...
by kyuuuri
09 Jan 2019, 03:14
Forum: Ask For Help
Topic: Multiple scripts on same file
Replies: 0
Views: 177

Multiple scripts on same file

Hello, i read the entire section of "Create Thread" on http://hotkeyit.github.io/v2/docs/AutoHotkey.htm and still i don't get how to make the following: let's say i have: 1st Script (contains labels, functions, variables, etc) 2nd Script (contains labels, functions, variables, etc) 3rd Script (conta...
by kyuuuri
07 Jan 2019, 19:01
Forum: Ask For Help
Topic: .ani cursor is loaded as static image
Replies: 0
Views: 169

.ani cursor is loaded as static image

Hello, here is my code: Cursor = %A_ScriptDir%\wait.ani CursorHandle := DllCall( "LoadCursorFromFile", Str,Cursor ) Cursors = 32512,32513,32514,32515,32516,32640,32641,32642,32643,32644,32645,32646,32648,32649,32650,32651 Loop, Parse, Cursors, `, { DllCall( "SetSystemCursor", Uint,CursorHandle, Int,...
by kyuuuri
09 Dec 2018, 18:08
Forum: Ask For Help
Topic: Help with adding a month (related to time in general, not only the code)
Replies: 6
Views: 403

Re: Help with adding a month (related to time in general, not only the code)

I made a function that adds days until the next month is reached, then adds the rest of the days, this way i don't have invalid dates. The problem is, i think the correct way is: January 29 + 1 month = Mar 1 because this way i don't break the 365 days year. But that's what i think, what i wanted to ...
by kyuuuri
08 Dec 2018, 11:50
Forum: Ask For Help
Topic: Help with adding a month (related to time in general, not only the code)
Replies: 6
Views: 403

Re: Help with adding a month (related to time in general, not only the code)

To add even more:

If i do 28, 29, 30 or 31 of january + 1 month i get february 28 on all of those cases. So a month equals 31 in first case, 30 on second, 29 on third, and 28 on fourth.
by kyuuuri
08 Dec 2018, 11:18
Forum: Ask For Help
Topic: Help with adding a month (related to time in general, not only the code)
Replies: 6
Views: 403

Re: Help with adding a month (related to time in general, not only the code)

To add more to this: if i do 0+1 and then +10 it is = 11. It is the same as doing 0+11=11 or 0 + (1+10) = 11 This means that by adding the same i get the same result, so if i do 0+1+1= 0+2 So why if i add 1 month and then 1 month it is not equal to adding 2 months, being month a "variable" that cont...

Go to advanced search