Search found 2590 matches

by wolf_II
Today, 11:56
Forum: Ask For Help
Topic: Gui - Error Message (ErrorStdOut)
Replies: 2
Views: 61

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
Today, 11:06
Forum: Ask For Help
Topic: Name Permutation.
Replies: 8
Views: 142

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...
by wolf_II
Today, 09:36
Forum: Ask For Help
Topic: Name Permutation.
Replies: 8
Views: 142

Re: Name Permutation.

Try this: FullName := "John Smith David James" Names := StrSplit(FullName, A_Space, ".") Loop, % Names.Count() MsgBox, % RoundRobin(Names, A_Index) ;------------------------------------------------------------------------------- RoundRobin(ByRef Array, Start) { ; custom permutation ;----------------...
by wolf_II
Yesterday, 23:53
Forum: Ask For Help
Topic: Is it possible to send a variable?
Replies: 3
Views: 85

Re: Is it possible to send a variable?

Not a good solution, but adding this hotkey to the end of the script might help:

Code: Select all

Esc:: exitApp
by wolf_II
Yesterday, 09:59
Forum: Ask For Help
Topic: Is it possible to send a variable?
Replies: 3
Views: 85

Re: Is it possible to send a variable?

Try this: #SingleInstance, Force #NoEnv #MaxThreadsPerHotkey 2 SendMode Input SetWorkingDir %A_ScriptDir% ^l:: Loop, 10000 { send % Format("{:04}", A_Index-1) Send {Enter Down} sleep 5 Send {Enter Up} sleep 100 Send {Enter Down} sleep 5 Send {Enter Up} } return I hope that helps.
by wolf_II
14 Jun 2019, 21:27
Forum: Ask For Help
Topic: Turn off monitor combo Topic is solved
Replies: 3
Views: 97

Re: Turn off monitor combo Topic is solved

Try this:

Code: Select all

Appskey & left up::
   	SendMessage 0x112, 0xF170, 2, , Program Manager
Return
I hope that helps.
by wolf_II
13 Jun 2019, 22:53
Forum: Ask For Help
Topic: [Math] How to make a table of arithmetic exercises ? Topic is solved
Replies: 6
Views: 223

Re: [Math] How to make a table of arithmetic exercises ? Topic is solved

Maybe this: subtraction still has a flaw: First entry can get out of bounds. ;============================================ settings =============================================== nlines:=4 ; number of lines you want nlenght:=15 ; lenght of a line (amount of numbers per line) note the last entry (ma...
by wolf_II
13 Jun 2019, 21:46
Forum: Ask For Help
Topic: Can you move the mouse in a random curved path?
Replies: 17
Views: 401

Re: Can you move the mouse in a random curved path?

Wolf2, the only problem I see is that it moves all at the same speed. :( Concerning my code: The speed of mouse movement is maximum. It is set in the MouseMove command via the Speed option (parameter). This parameter can be regarded as a delay, such that Speed = 0 give you the shortest delay possib...
by wolf_II
12 Jun 2019, 23:52
Forum: Ask For Help
Topic: [Math] How to make a table of arithmetic exercises ? Topic is solved
Replies: 6
Views: 223

Re: [Math] How to make a table of arithmetic exercises ? Topic is solved

I took your code as is, and introduced TestSum . If mixed, the new algorithm tries to subtract if possible. ;============================================ settings =============================================== nlines:=4 ; number of lines you want nlenght:=8 ; lenght of a line (amount of numbers per...
by wolf_II
12 Jun 2019, 21:12
Forum: Ask For Help
Topic: Can you move the mouse in a random curved path?
Replies: 17
Views: 401

Re: Can you move the mouse in a random curved path?

I had not noticed that Start menu thing at the top of the small screen. Sorry. no problem. "Math for fun"? So, YOU Are Sheldon Cooper, eh? 8-) I'm not sure on that. I was a bit closer when I was younger, before the strokes. Glad that I could present a sufficiently challenging project for you. Pleas...
by wolf_II
12 Jun 2019, 19:02
Forum: Ask For Help
Topic: Can you move the mouse in a random curved path?
Replies: 17
Views: 401

Re: Can you move the mouse in a random curved path?

A very clean, smooth half-circle. Nice. But I couldn't get your 2nd version to work. I could move the blue dots to make a different half-circle, but that's about it. Clicked and double-clicked the blue dots. . . mouse wouldn't move. A My second example has a Menu, use that to start moving the mouse...
by wolf_II
12 Jun 2019, 04:19
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 653

Re: array descriptions - what's differ

But if I have a more complicated string, like this one .: aCol = ( LTrim Comments "NameA" | "Value1" ; Key and value1 "NameC" | "Value2" ; Key and value2 "NameB" | "Value3" ; Key and value3 ) And want to convert to an object, like this one bCol := {"NameA" : "Value1" ; Key and value1 ,"NameC" : "Va...
by wolf_II
12 Jun 2019, 02:25
Forum: Ask For Help
Topic: Matching stuff in .Ini Topic is solved
Replies: 24
Views: 489

Re: Matching stuff in .Ini Topic is solved

here is another attempt: (I know it's already solved) #NoEnv #SingleInstance Force Members := Keys_from_INI(A_ScriptFullPath, "Team_Emails", Emails := []) Gui, New, -MinimizeBox, Team eMails Gui, Add, DropDownList, w150 gShow_Email, %Members% Gui, Add, Edit, wp vEmail Gui, Show return ; end of auto-...
by wolf_II
11 Jun 2019, 06:07
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 653

Re: array descriptions - what's differ

Yes, it is easy, but also not needed most of the times. Try this: aTestet = ["A", "B", "C"] ; string bTestet := convert(aTestet) MsgBox, % bTestet.1 MsgBox, % bTestet.2 MsgBox, % bTestet.3 ;------------------------------------------------------------------------------- convert(s) { ; take a string c...
by wolf_II
11 Jun 2019, 05:02
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 653

Re: array descriptions - what's differ

You define aTestet as a string. therefore, the aTest is also a string.
bTest is an array, and therefore works.
by wolf_II
11 Jun 2019, 02:27
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 34
Views: 761

Re: Solved:Need simple example,real time calculating and output the result

Thanks, YoucefHam for the code. This is a very good example how to handle unary operators. (or whatever it is, but I think that's right) I trimmed the code a bit: MsgBox, % calc_Percent( "123%" ) MsgBox, % calc_Percent( "((5+15)*4)/20%+30%" ) ;--------------------------------------------------------...
by wolf_II
10 Jun 2019, 08:21
Forum: Ich brauche Hilfe
Topic: Warum beherrscht mein Hotkey nicht das ABC?
Replies: 21
Views: 476

Re: Warum beherrscht mein Hotkey nicht das ABC?

Ich meinte nicht den Zwischencode eines Schnipsels sondern den eines Skriptes, also > 100 Zeilen.
Divide and conquer: ansonsten weiß ich auch nichts besseres, sorry.
by wolf_II
10 Jun 2019, 08:14
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 276

Re: ini reads

First Look: I like your GUI. Especially the Keyboard layout. Is it meant to include X ? there is a Label for it, so that might be a Label too many, or a Key missing or something else. I was surprised to see no errors popping up for your lines containing only ---- . I don't know if that is a correct ...
by wolf_II
10 Jun 2019, 07:18
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 276

Re: ini reads

would it be more benificial for you to see the whole script?
Yes, that would be great.

Go to advanced search