Search found 2688 matches

by wolf_II
23 Jun 2019, 07:53
Forum: Ask For Help
Topic: Translate PowerShell to AHK - possible?
Replies: 36
Views: 4093

Re: Translate PowerShell to AHK - possible?

0,001; 0,002; 0,003
0,004; 0,005; 0,006
0,007; 0,008; 0,009
How do you decide? comma or semicolon? How do you decide automatically, when there is 3 sets of data one way, and 4 sets the other way?
There is no automatic fool-proof way, as just me pointed out.
by wolf_II
23 Jun 2019, 07:06
Forum: Ask For Help
Topic: Translate PowerShell to AHK - possible?
Replies: 36
Views: 4093

Re: Translate PowerShell to AHK - possible?

Which separator will your 'automatic analyzer' choose?
Touchée. I would have to make up more rules for this idea to work. :(
@Albireo: please ignore my previous post. There is more "manual" examination of data required.
by wolf_II
23 Jun 2019, 06:28
Forum: Ask For Help
Topic: Translate PowerShell to AHK - possible?
Replies: 36
Views: 4093

Re: Translate PowerShell to AHK - possible?

You could, if you wanted, introduce a "base-line" requirement: E.g. All my data respects some simple but strict rules: 1) every table is saved in Albireo 's approved format: 2) every row in the table is contained in its own line of text, Rows are delimited by `n or `r`n . 3) every field in the row i...
by wolf_II
23 Jun 2019, 04:32
Forum: Ask For Help
Topic: Translate PowerShell to AHK - possible?
Replies: 36
Views: 4093

Re: Translate PowerShell to AHK - possible?

I think it's easy and possible to translate the PowerShell script to AHK. But, I don't think it will save you from "manual" reviewing the results. With every iteration of you moving the goal-posts, you need to reinvest brain-cycles. If I understand correctly, the script just spits out a table, where...
by wolf_II
23 Jun 2019, 02:36
Forum: Ask For Help
Topic: Error messages always on top
Replies: 9
Views: 1436

Re: Error messages always on top

I have not been able to find a valid solution.
Also, you have not been able to provide feedback with what problems you ran into.
by wolf_II
21 Jun 2019, 02:06
Forum: Ask For Help
Topic: Error messages always on top
Replies: 9
Views: 1436

Re: Error messages always on top

Try this script, it is meant to run as a stand alone. It aims at making all message-boxes AlwaysOnTop. included are all message-boxes. from AHK, from Notepad, from Excel ... ;------------------------------------------------------------------------------- WatchBox(wParam, lParam := "") { ; make messa...
by wolf_II
20 Jun 2019, 15:27
Forum: Ask For Help
Topic: append one array to another
Replies: 2
Views: 750

Re: append one array to another

Try this to see a working case of Push():

Code: Select all

array1 := ["red", "blue"]
array2 := ["yellow", "green"]

array1.push(array2*)
I hope that helps.

Push() will not work as intended for associative arrays.
by wolf_II
20 Jun 2019, 14:31
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 2116

Re: how to measure time between button down and button up?

/* the actual fight and moving stuff*/
this is not correct syntax, the remainder of the script is ignored!
use */ on a line of its own, same as first time where you used it.
by wolf_II
20 Jun 2019, 13:48
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 2116

Re: how to measure time between button down and button up?

original quest wrote:msgboxing me the counted time.
this is how you can change to tooltipping:

Code: Select all

Up:: StartTime := A_TickCount
Up up:: ToolTip, % A_TickCount - StartTime " millis"
by wolf_II
20 Jun 2019, 12:49
Forum: Ask For Help
Topic: how to measure time between button down and button up?
Replies: 17
Views: 2116

Re: how to measure time between button down and button up?

Try this to measure how long the Up arrow button was held down:

Code: Select all

Up:: StartTime := A_TickCount
Up up:: MsgBox, % A_TickCount - StartTime " millis"
I hope that helps.
by wolf_II
20 Jun 2019, 09:30
Forum: Ask For Help
Topic: if winexist after send text can't work please help
Replies: 1
Views: 281

Re: if winexist after send text can't work please help

to use several commands after if, you have to use Blocks.
curly Brackets {} make lovely Blocks!

example: see edited version of your OP
by wolf_II
20 Jun 2019, 03:30
Forum: Ask For Help
Topic: Is it possible to open a GUI window via a link control? Topic is solved
Replies: 6
Views: 958

Re: Is it possible to open a GUI window via a link control? Topic is solved

use Gui, Add, Link

Code: Select all

Gui, -MinimizeBox
Gui, Margin, 50, 30
Gui, Add, Link, gMySubroutine, <a>Options</a>
Gui, Show
return

MySubroutine:
    MsgBox do whatever
    Gui, New,, Gui #2
    Gui, Show, w300 h200
return
by wolf_II
19 Jun 2019, 11:39
Forum: Ich brauche Hilfe
Topic: Geldbeträge abrunden inkl 2 Kommastellen
Replies: 6
Views: 1066

Re: Geldbeträge abrunden inkl 2 Kommastellen

Ersteinmal danke für deine Antwort. Hier besteht jedoch das gleiche Problem, dass das Round ab X,X5 aufrundet. 2,85 wird zu 2,90 2,84 wird zu 2,80 Beide fällte sollten jedoch 2,80 ergeben. noch ne Idee? :wave: Klar: Um dem Runden beizukommen, einfach vor'm Runden 0.05 abziehen. (diese Versuche sehe...
by wolf_II
19 Jun 2019, 07:21
Forum: Ich brauche Hilfe
Topic: Geldbeträge abrunden inkl 2 Kommastellen
Replies: 6
Views: 1066

Re: Geldbeträge abrunden inkl 2 Kommastellen

Versuch mal:

Code: Select all

Random, Betrag, 100, 999
Betrag /= 100.0

MsgBox, % "Betrag = " . Betrag . "`n" . Format("{:0.2f}", Round(Betrag, 1))
Ich hoffe das hilft.
by wolf_II
19 Jun 2019, 04:47
Forum: Ask For Help
Topic: Name Permutation.
Replies: 23
Views: 3151

Re: Name Permutation.

@ Nickyeo : This was tested !!! the trick is to use global Names0 inside the function. (see Help) ; tested with AHK-Basic v1.0.48.05 ^2:: NamePermutation() Return ;Assume there is other functions ^3:: Send, FaceRecognition Return ;Name permutation NamePermutation() { global Names0 FullName := "John ...
by wolf_II
19 Jun 2019, 04:29
Forum: Ask For Help
Topic: How to Remove Error pop-up’s?
Replies: 4
Views: 1070

Re: How to Remove Error pop-up’s?

Also: prepend line 12 with try
by wolf_II
19 Jun 2019, 03:12
Forum: Ask For Help
Topic: Name Permutation.
Replies: 23
Views: 3151

Re: Name Permutation.

I can't test your script, but I would try to add Names := "" as the first line of the script.
UNTESTED UNTESTED UNTESTED
by wolf_II
19 Jun 2019, 01:28
Forum: Ask For Help
Topic: Name Permutation.
Replies: 23
Views: 3151

Re: Name Permutation.

My attempt (using modular arithmetic) written and tested with AHK-Basic v1.0.48.05 : ; tested with AHK-Basic v1.0.48.05 FullName := "John Smith David James" StringSplit, Names, FullName, %A_Space%, . ; omit periods Loop, % Names0 MsgBox, % RoundRobin(A_Index) exitApp ;-------------------------------...
by wolf_II
18 Jun 2019, 11:56
Forum: Ask For Help
Topic: Gui - Error Message (ErrorStdOut)
Replies: 2
Views: 528

Re: Gui - Error Message (ErrorStdOut)

Try this:

Code: Select all

#ErrorStdOut
varSearch = BMW
width = 100
gui, add, edit, % "x7 y+10 w" (Width-14) "r1 +0x4000 vvarSearch", %varSearch%
try gui, add, text, gGoogle,search Google
catch Error
    MsgBox, % Error.Line
gui, show, autosize
Return
I hope that helps.
by wolf_II
18 Jun 2019, 11:06
Forum: Ask For Help
Topic: Name Permutation.
Replies: 23
Views: 3151

Re: Name Permutation.

Here it is again, with helpful (?) comments: FullName := "John Smith David James" Names := StrSplit(FullName, A_Space, ".") Loop, % Names.Count() MsgBox, % RoundRobin(Names, A_Index) ;------------------------------------------------------------------------------- RoundRobin(ByRef Array, Start) { ; c...

Go to advanced search