Search found 31 matches

by Archandrion
10 Jul 2018, 08:16
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Re: Looping Through A list and verifying GUI Input Topic is solved

; you need this function, which is derived from the documentation example: runThread(threadCode) { shell := ComObjCreate("WScript.Shell") exec := shell.Exec("AutoHotkey.exe /ErrorStdOut *") exec.StdIn.Write(threadCode) exec.StdIn.Close() } [/code] It worked although I had to change exec := shell.Ex...
by Archandrion
09 Jul 2018, 22:17
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Re: Looping Through A list and verifying GUI Input Topic is solved

Alternatively you can split your program into 2 parallel running scripts and have "pseudo" threads. If you are interested in this, let me know, i can assist. So a pseudo-thread would mean calling another script from the commandline? eg: SayThis(SomeString:="No text", Voice:="SAPI.SpVoice"){ SayThis...
by Archandrion
09 Jul 2018, 19:07
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Re: Looping Through A list and verifying GUI Input Topic is solved

Hello GEV, i think the approach with the overlay GUI and timed routine is a bit confusing..? You can just change the content of existing text labels. @Archandrion, i would recommend the use of Arrays, they make life much easier, e.g. by using the MaxIndex() method, you never have to worry about the...
by Archandrion
09 Jul 2018, 16:03
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Re: Looping Through A list and verifying GUI Input Topic is solved

Maybe something like this Wordlist = ( Abacus Abandon Abidance ) Loop, parse, WordList, `n MaxIndex := A_Index Gui, Add, Button, x172 y119 w100 h30 Default gConfirmBtn, OK Gui, Add, Edit, x32 y49 w360 h20 vUserInput, Gui, Show, x448 y309 h209 w442, New GUI Window GuiControl, Focus, Edit1 SetTimer, ...
by Archandrion
09 Jul 2018, 13:19
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Re: Looping Through A list and verifying GUI Input Topic is solved

StringCaseSense, On Wordlist = ( Abacus Abandon Abidance ) Gui, Add, Button, x172 y119 w100 h30 Default gConfirmBtn, OK Gui, Add, Edit, x32 y49 w360 h20 vUserInput, Gui, Show, x448 y309 h209 w442, New GUI Window GuiControl, Focus, Edit1 Return GuiClose: ExitApp ConfirmBtn: Correct_Input := false Gu...
by Archandrion
09 Jul 2018, 05:26
Forum: Ask For Help
Topic: Looping Through A list and verifying GUI Input Topic is solved
Replies: 13
Views: 1057

Looping Through A list and verifying GUI Input Topic is solved

The code below is supposed to loop through a list of words and verify that each was typed correctly by the user? However it does not break and move on to the next word. It worked with InputBox but I would prefer to have it work with the GUI. Wordlist = ( Abacus Abandon Abidance ) Gui, Add, Button, x...
by Archandrion
25 Jun 2018, 12:45
Forum: Ask For Help
Topic: MCode from 32bit to 64bit Topic is solved
Replies: 13
Views: 933

Re: MCode from 32bit to 64bit Topic is solved

pToken := Gdip_Startup() pBitmap := Gdip_CreateBitmapFromFile(InputFile) Gdip_FilterColor(pBitmap, 0xFFC0C0C0, 0xFFFFFFFF, 100) Gdip_SaveBitmapToFile(pBitmap, OutputFile) Gdip_DisposeImage(pBitmap) Gdip_Shutdown(pToken) return Gdip_FilterColor(ByRef pBitmap, Color, ReplaceColor, Variation:=0) { sta...
by Archandrion
24 Jun 2018, 15:40
Forum: Ask For Help
Topic: MCode from 32bit to 64bit Topic is solved
Replies: 13
Views: 933

Re: MCode from 32bit to 64bit Topic is solved

You dont need to use E := DllCall(&_FilterColor, "uint", Scan01, "int", w, "int", h, "int", Stride1, "uint", Color, "uint", ReplaceColor, "int", Variation) anymore You can now just use E := DllCall(_FilterColor, "uint", Scan01, "int", w, "int", h, "int", Stride1, "uint", Color, "uint", ReplaceColor...
by Archandrion
24 Jun 2018, 14:44
Forum: Ask For Help
Topic: MCode from 32bit to 64bit Topic is solved
Replies: 13
Views: 933

Re: MCode from 32bit to 64bit Topic is solved

Simply pass the entire string to the MCode function. I tried to pass the entire string to to the MCode function but it does not seem to work. This is the code I now have: #include %A_ScriptDir% #Include Gdip_All.ahk InputFile := "ColorReplaced.png" OutputFile := "ColorReplaced2.png" pToken := Gdip_...
by Archandrion
24 Jun 2018, 13:48
Forum: Ask For Help
Topic: MCode from 32bit to 64bit Topic is solved
Replies: 13
Views: 933

Re: MCode from 32bit to 64bit Topic is solved

Read the readme on joedf's github, you need to use the mcode function and make sure you use a 64 bit compiler, eg TDM-GCC. That's precisely what I did or at least I think I did. I put the path to the g++.exe from tdm64-gcc-5.1.0-2 in the GCC compiler field in MCode4GCC. I set the Optimizations opti...
by Archandrion
24 Jun 2018, 13:05
Forum: Ask For Help
Topic: MCode from 32bit to 64bit Topic is solved
Replies: 13
Views: 933

MCode from 32bit to 64bit Topic is solved

I have found out that Mcode in the Gdip_FilterColor() function below appears to have been compiled for the 32bit version of Autohotkey. Could anyone assist me in converting it to run on the 64bit version. The source code can be found at https://pastebin.com/vFgELSEi but I was unsuccessful in using t...
by Archandrion
24 Jun 2018, 12:10
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

https://autohotkey.com/boards/viewtopic.php?t=32 You can ask on the forum there are some members who can do it if you provide the source code.( i am not familiar with it :) ) I guess the source code is here: https://pastebin.com/vFgELSEi Tic has a gdip "forum" you can also put your request there: h...
by Archandrion
24 Jun 2018, 11:52
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

Gdip_FilterColor: the MC code in the function is only compiled for 32bit............ I am unfamiliar with machine code. Could you point me to some reading material or program that might help me to convert it to 64bit. Tried doing a google search but did not find much about using mc code in Autohotk...
by Archandrion
24 Jun 2018, 11:36
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

trust_me wrote:I updated to 1.1.29.01 and it works in replacing the color.But i am using 32bit version of ahk maybe there is a problem if you have 64bit ahk version?
Thanks, yes that was the problem. For some reason Gdip_FilterColor() is not working with the AutohotkeyU64 which is the main version I use.
by Archandrion
24 Jun 2018, 11:10
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

trust_me wrote:It does....

Strange I tried it with both AutoHotkey_1.1.29.00 and v2 but the output file did not have the color change. What AutoHotkey.exe version are you using?
by Archandrion
24 Jun 2018, 08:10
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

Works fine for me ,maybe you could delete the "ColorReplaced2.png" file before running the code again.( in case it cannot overwrite it for some reason ) It outputs a file but that file does not have all the light gray silver replaced with white. Using Gdip_FilterColor() https://ibb.co/hwpb4o Using ...
by Archandrion
24 Jun 2018, 07:12
Forum: Ask For Help
Topic: Gdip within a function Topic is solved
Replies: 2
Views: 285

Re: GDI within a function Topic is solved

you "helper" lib appears to be dumping its contents into the global scope. you can either: make you custom function assume-global declare the global variables that u wish to use inside the function pass them as arguments see https://autohotkey.com/docs/Functions.htm#Global Thanks, assume-global see...
by Archandrion
24 Jun 2018, 06:18
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

Below is an example of the code that I have gotten working so far for inversion and cropping to match the ImageMagick command convert.exe Input.png -crop 1900x77+7+694 -negate InvertedOutput.png and convert.exe InvertedOutput.png -alpha off -fuzz 30% -fill white -opaque "#C0C0C0" ColorReplaced.png b...
by Archandrion
24 Jun 2018, 05:51
Forum: Ask For Help
Topic: Gdip within a function Topic is solved
Replies: 2
Views: 285

Gdip within a function Topic is solved

How can I get TestGdipToScreen() to work. The code only works when it is not inside the function as shown below where I commented out the function's beginning and ending. Also without the GDIpHelper what would be the proper code to include in the function as I tried pToken := Gdip_Startup() at the b...
by Archandrion
24 Jun 2018, 02:35
Forum: Ask For Help
Topic: Replacing Color Gdip Topic is solved
Replies: 14
Views: 1033

Re: Replacing Color Gdip Topic is solved

Change: Gdip_SaveBitmapToFile(E, "output.png") To: Gdip_SaveBitmapToFile(pBitmap, "output.png") HTH Even when I change E to pBitmap the output.png does not seem to have any noticeable changes. You can view the images at the links below: input.png https://ibb.co/jV5yZo output.png https://ibb.co/hwpb4o

Go to advanced search