Search found 2738 matches
- 28 Apr 2016, 23:27
- Forum: Ask for Help (v1)
- Topic: Problem with GuiControlGet
- Replies: 2
- Views: 776
Re: Problem with GuiControlGet
If you want to get the position of a control you will need to specify which control.If not specified it will use the output variable as the control name. (MyEdit) vMyEdit would need to be specified on a control you add to the gui. Example: Gui, XPT100:font, s12 cwhite Arial Gui, XPT100:Add, Picture,...
- 28 Apr 2016, 23:02
- Forum: Ask for Help (v1)
- Topic: Why does this not work??
- Replies: 6
- Views: 1411
Re: Why does this not work??
The %'s on the variable will still need to be removed in your dll call unless you want the contents of the variable to be passed as the variable name. The dll call is working when used without the %'s around the variable. Your script works like this when the LButton is down: it loops moving the mous...
- 28 Apr 2016, 18:13
- Forum: Ask for Help (v1)
- Topic: MouseClickDrag, MButton, Resolution Relative,
- Replies: 2
- Views: 695
Re: MouseClickDrag, MButton, Resolution Relative,
A_ScreenHeaight is misspelled?
- 28 Apr 2016, 17:53
- Forum: Ask for Help (v1)
- Topic: Why does this not work??
- Replies: 6
- Views: 1411
Re: Why does this not work??
The :
works to make it backwards compatable with old scripts.
You can remove its %'s and it will work because the sleep command accepts expressions.
You can also remove the $ on your LButton hotkey because mouse hotkeys are always hooked.
HTH
Code: Select all
sleep, %delay%
You can remove its %'s and it will work because the sleep command accepts expressions.
Code: Select all
sleep, delay ; works!
HTH
- 28 Apr 2016, 17:41
- Forum: Ask for Help (v1)
- Topic: Photoshop save as script
- Replies: 17
- Views: 3335
Re: Photoshop save as script
If a WinTitle is not specified it will use the last found window.
Sure just change photoshop to what you posted or use any string you see in the dropdown.
Sure just change photoshop to what you posted or use any string you see in the dropdown.
- 28 Apr 2016, 17:19
- Forum: Ask for Help (v1)
- Topic: Help concatenating each line of edit text box and placing in variable
- Replies: 7
- Views: 1509
Re: Help concatenating each line of edit text box and placing in variable
Change:
to
Code: Select all
Gui, 2: Add, Edit, x5 w390 r20
Code: Select all
Gui, 2: Add, Edit, x5 w390 r20 vEdit
- 28 Apr 2016, 15:43
- Forum: Ask for Help (v1)
- Topic: Help concatenating each line of edit text box and placing in variable
- Replies: 7
- Views: 1509
Re: Help concatenating each line of edit text box and placing in variable
Example: Text = ( jdoe1 jsmith2 sthomas3 ) Gui, Add, Edit, x6 y7 w130 h150 vEdit, % Text Gui, Add, Button, x16 y167 w100 h30 gConc, Button Gui, Show, w137 h204, Example GUI return Conc: var := "" Gui, Submit, NoHide Loop, Parse, Edit, `n, `r var .= "'" . A_LoopField . "'," var := SubStr(Var,1,-1) Ms...
- 28 Apr 2016, 15:24
- Forum: Ask for Help (v1)
- Topic: Photoshop save as script
- Replies: 17
- Views: 3335
Re: Photoshop save as script
In the photoshop version i'm running the WinTitle for that window is: Save As and the control name is ComboBox2 . I shortened the code to this which is working for my version: +WheelUp::Control, ChooseString, % N<= 0 ? ("Photoshop",N:=1) : N=1 ? ("jpeg",N:=2) : ("png",N:=0), ComboBox2, Save As Once ...
- 27 Apr 2016, 16:40
- Forum: Ask for Help (v1)
- Topic: Trouble incrementing a global variable
- Replies: 9
- Views: 3477
Re: Trouble incrementing a global variable
Where did you read that?omar wrote: i read up that global variables can't be changed.
Code: Select all
Global cnt := 1
Loop
{
ToolTip % counting()
}
counting()
{
return cnt++
}
- 27 Apr 2016, 13:54
- Forum: Gaming Help (v1)
- Topic: Autowalking help Topic is solved
- Replies: 2
- Views: 1141
Re: Autowalking help Topic is solved
Using 1 hotkey: #MaxThreadsPerHotkey, 2 1:: ; Press 1 to turn on/off. walking := !walking ; Toggle while, walking ; Loop { send {left} Sleep 1000 send {right} Sleep 1000 } return Using 2 hotkeys: 1:: ; Press 1 to turn on. walking := 1 while, walking ; Loop { send {left} Sleep 1000 send {right} Sleep...
- 27 Apr 2016, 13:40
- Forum: Ask for Help (v1)
- Topic: Need help on sending a combo of keys
- Replies: 2
- Views: 1018
Re: Need help on sending a combo of keys
Code: Select all
Send {Ctrl Down}{Shift Down}{F15}{Shift Up}{Ctrl Up}
- 27 Apr 2016, 12:30
- Forum: Ask for Help (v1)
- Topic: Trouble incrementing a global variable
- Replies: 9
- Views: 3477
Re: Trouble incrementing a global variable
use:
Code: Select all
global myCounter := 2
- 27 Apr 2016, 12:25
- Forum: Ask for Help (v1)
- Topic: How to get everything before the first full stop
- Replies: 16
- Views: 2563
Re: How to get everything before the first full stop
Something different:
There are many ways to do things but regex is horrible for something this simple. (imo)
Code: Select all
string := "12.hello world.xyz pqr.a b c.csv"
Loop, Parse, string, "."
MsgBox % A_LoopField
until A_Index
- 27 Apr 2016, 04:41
- Forum: Ask for Help (v1)
- Topic: Timestamp deletes first character
- Replies: 2
- Views: 726
Re: Timestamp deletes first character
If you have another hotkey in your script that is not hooked then it will activate that hotkey instead of sending ie: hotkey 2:: would get activated instead of sending it as part of the year in your posted code. To fix that you would need to use $ on that hotkey or put #usehook at the top of the scr...
- 27 Apr 2016, 04:25
- Forum: Gaming Help (v1)
- Topic: Possible to switch out a key and make it a toggle?
- Replies: 3
- Views: 2664
Re: Possible to switch out a key and make it a toggle?
Code: Select all
*tab::
if (toggle := !toggle)
Send, {Ctrl Down}
else
Send, {Ctrl Up}
ToolTip % "Ctrl key is " (GetKeyState("Ctrl")=1 ? "Down" : "Up") ; Testing only.
return
Code: Select all
*tab::Send % (toggle := !toggle) ? "{Ctrl Down}" : "{Ctrl Up}"
- 25 Apr 2016, 05:04
- Forum: Ask for Help (v1)
- Topic: (SOLVED) Simple Encrypter _ StringReplace - Prevent replacing strings already replaced!
- Replies: 24
- Views: 7082
Re: StringReplace - Don't replace strings already replaced?
pos := 1 Text = ABCD if (InStr(Text, "A", 1, pos, 1)) Text := RegExReplace(Text, "A", "B", 0, 1, pos++) ; BBCD if (InStr(Text, "B", 1, pos, 1)) Text := RegExReplace(Text, "B", "A", 0, 1, pos++) ; BACD if (InStr(Text, "C", 1, pos, 1)) Text := RegExReplace(Text, "C", "D", 0, 1, pos++) ; BADD if (InSt...
- 24 Apr 2016, 01:33
- Forum: Ask for Help (v1)
- Topic: Playing a sound Topic is solved
- Replies: 1
- Views: 580
Re: Playing a sound Topic is solved
Example using hotkeys to test:
Code: Select all
1::Suspend
2::
Suspend, Permit
if (A_IsSuspended)
SoundPlay, %A_WinDir%\Media\tada.wav
return
- 23 Apr 2016, 16:30
- Forum: Forum Issues
- Topic: >>> ASK FOR HELP - RESTRUCTURE <<<
- Replies: 16
- Views: 6055
Re: >>> ASK FOR HELP - RESTRUCTURE <<<
If you want to only search this forum aka boards try this:
https://cse.google.com/cse/publicurl?cx ... ved6rfvrlq
https://cse.google.com/cse/publicurl?cx ... ved6rfvrlq
- 23 Apr 2016, 02:55
- Forum: Ask for Help (v1)
- Topic: Text screen presentation questions
- Replies: 7
- Views: 1253
Re: Text screen presentation questions
If you had tried Tidbits example you would see that it works. Here is another example: Paragraphs := 3 , Cnt := 0 ; Number of paragraphs , Counter starts at 0 p1 = ; Paragraph 1 ( This is my first paragraph using my hotkey. `n ) p2 = ; Paragraph 2 ( This is my second paragraph using my hotkey. `n ) ...
- 23 Apr 2016, 01:44
- Forum: Ask for Help (v1)
- Topic: Halt the loop every 35min for a task, and go back to loop
- Replies: 2
- Views: 716
Re: Halt the loop every 35min for a task, and go back to loop
#Persistent tasktime := 60000*35 ; UnreadNotification interval time := A_TickCount ; set time Loop { ; do stuff here! if ((A_TickCount-Time) >= tasktime) gosub, UnreadNotification } UnreadNotification: ; do what you need here and it will return to loop when its finished. time := A_TickCount ; reset...