Search found 572 matches

by Hellbent
04 Jul 2019, 04:30
Forum: Ask For Help
Topic: Using a objects Key value as part of the name of another objects key name Topic is solved
Replies: 5
Views: 157

Re: Using a objects Key value as part of the name of another objects key name Topic is solved

nnnik Thank you. This is exactly what I was looking for. SaveHK: Loop 10 if(SaveHK%A_Index%=A_ThisHotkey) index:=A_Index,break if(!HotkeyLocks[Index,"Tab" Tab.Tab "_Value"]&&Save_Hotkeys_Locks[Index].State){ ToolTip, % A_ThisHotkey "`n" }else if(EnableSounds.State) { Loop 3 SoundBeep,777 } SetTimer...
by Hellbent
04 Jul 2019, 03:44
Forum: Ask For Help
Topic: Using a objects Key value as part of the name of another objects key name Topic is solved
Replies: 5
Views: 157

Re: Using a objects Key value as part of the name of another objects key name Topic is solved

Here is the subroutine SaveHK: ;Need to move this later Loop 10 { if(SaveHK%A_Index%=A_ThisHotkey){ index:=A_Index break } } if(Tab.Tab=1&&HotkeyLocks[Index].Tab1_Value=0&&Save_Hotkeys_Locks[Index].State=1){ ToolTip, % A_ThisHotkey "`n" }else if(Tab.Tab=2&&HotkeyLocks[Index].Tab2_Value=0&&Save_Hotke...
by Hellbent
04 Jul 2019, 03:16
Forum: Ask For Help
Topic: Using a objects Key value as part of the name of another objects key name Topic is solved
Replies: 5
Views: 157

Using a objects Key value as part of the name of another objects key name Topic is solved

I have some code that I would like to reduce a bit more and a simple way to do that would to be able to use the value of one objects keys as part of the name of another objects key/s here is some pseudo code of how it currently is. if(object1.Value=1){ if(Object2[Index].Type1_Value=0) Do this else D...
by Hellbent
29 Jun 2019, 21:14
Forum: Ask For Help
Topic: Getting All Values ​​in ComboBox Topic is solved
Replies: 8
Views: 518

Re: Getting All Values ​​in ComboBox Topic is solved

Using a predefined variable is not an option. Why? Here is how you can use ControlGet to get the list. Still don't get why you think you can't use a variable for your list. #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 Gui Add, ComboBox, x28 y15 w191 vAllValues ,1a|2B|3c...
by Hellbent
29 Jun 2019, 20:26
Forum: Ask For Help
Topic: Getting All Values ​​in ComboBox Topic is solved
Replies: 8
Views: 518

Re: Getting All Values ​​in ComboBox Topic is solved

#SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 MyList:="1a|2B|3c|5e|7g|9i" Gui Add, ComboBox, x28 y15 w191 vAllValues ,% MyList Gui Add, Button, x78 y49 w80 h38 gAvals, All Values Gui Show, w244 h91, Window Return Avals: MsgBox,% MyList return GuiEscape: GuiClose: ExitApp
by Hellbent
29 Jun 2019, 03:40
Forum: Ask For Help
Topic: Draw Circle Like "Magic Formation"
Replies: 4
Views: 280

Re: Draw Circle Like "Magic Formation"

Here is with a time factor added in. #SingleInstance Force CoordMode, Mouse, Screen SetTimer,watch_mouse,100 Return ;~ GuiClose: *ESC:: ExitApp watch_mouse(){ static LX,LY,step:=0,StartTime MouseGetPos,cx,cy if(Step=0){ Lx:=cx Step:=1 StartTime:=A_TickCount }else if(lx-cx>100&&step=1){ step:=2 ly:=c...
by Hellbent
29 Jun 2019, 03:16
Forum: Ask For Help
Topic: Draw Circle Like "Magic Formation"
Replies: 4
Views: 280

Re: Draw Circle Like "Magic Formation"

working proof of concept. #SingleInstance Force SetTimer,watch_mouse,100 Return ;~ GuiClose: *ESC:: ExitApp watch_mouse(){ static LX,LY,step:=0 MouseGetPos,cx,cy if(Step=0){ Lx:=cx Step:=1 }else if(lx-cx>100&&step=1){ step:=2 ly:=cy }else if(cx-lx>1&&Step=1){ step:=0 }else if(ly-cy>100&&Step=2){ Ste...
by Hellbent
29 Jun 2019, 02:38
Forum: Ask For Help
Topic: Deleting a Value from the ComboBox Topic is solved
Replies: 2
Views: 242

Re: Deleting a Value from the ComboBox Topic is solved

Try this. #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 List:="1a|2B|3c|5e|7g|9i|" Gui Add, ComboBox, x28 y15 w191 vDeleteitem ,% List Gui Add, Button, x78 y49 w80 h38 gDelete, DELETE SELECTION Gui Show, w244 h91, Window Return DELETE: GuiControlGet,Deleteitem List:=strRe...
by Hellbent
29 Jun 2019, 02:15
Forum: Ask For Help
Topic: playing with array
Replies: 4
Views: 259

Re: playing with array

Or this as a more practical example.

Code: Select all

Arr:=["a","b","c"]
for k,v in ["l","k","r","n","y","o"]
    Arr.InsertAt(k,v)
msgbox,% Arr[1] " " Arr[2] " " Arr[3] " " Arr[4] " " Arr[5] " " Arr[6] " " Arr[7] " " Arr[8] " " Arr[9]
ExitApp
by Hellbent
29 Jun 2019, 02:05
Forum: Ask For Help
Topic: playing with array
Replies: 4
Views: 259

Re: playing with array

Use InsertAt()

Code: Select all

Arr:=["a","b","c"]
Arr.InsertAt(1,"l","k","r","n","y","o")
msgbox,% Arr[1] " " Arr[2] " " Arr[3] " " Arr[4] " " Arr[5] " " Arr[6] " " Arr[7] " " Arr[8] " " Arr[9]
ExitApp
by Hellbent
27 Jun 2019, 19:51
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 289
Views: 97714

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Gdip Gui.

Tips enabled and disabled
SnapShot_30.png
SnapShot_30.png (153.21 KiB) Viewed 532 times

A few different color variations
SnapShot_29.png
SnapShot_29.png (217.33 KiB) Viewed 532 times
by Hellbent
27 Jun 2019, 13:50
Forum: Ask For Help
Topic: Countdown Timer - Using GUI Topic is solved
Replies: 6
Views: 241

Re: Countdown Timer - Using GUI Topic is solved

I have added a Play, Pause and Stop Button, but I haven't figured out how to pause mid loop. You'll have to save script as "Unicode" If possible I want to keep the timer where it's at when I pause and re-submit GUI to make it resume. Also have the Stop button, cause to reset. I still haven't looked...
by Hellbent
27 Jun 2019, 10:38
Forum: Ask For Help
Topic: Countdown Timer - Using GUI Topic is solved
Replies: 6
Views: 241

Re: Countdown Timer - Using GUI Topic is solved

Sleep isn't a very reliable measure of time. Might want to look into other ways of doing it. A_TickCount for example.

You can also put your code into a timer, that way you can start, stop, reset, ect, if the need / want comes up.
by Hellbent
26 Jun 2019, 17:22
Forum: Ask For Help
Topic: Send Alt+Tab behaves differently on W7 and W10
Replies: 6
Views: 208

Re: Send Alt+Tab behaves differently on W7 and W10

Both don't work for me.
Win 8.1 64bit

I have to do something like this to Alt-Tab

Code: Select all


*Numpad1::
	run C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Window Switcher.lnk
	sleep,100
	send,{enter}
	Return
by Hellbent
26 Jun 2019, 14:06
Forum: Ask For Help
Topic: Single line color shift expression Topic is solved
Replies: 3
Views: 199

Re: Single line color shift expression Topic is solved

Thank you.

jeeswg & wolf_II
by Hellbent
26 Jun 2019, 13:15
Forum: Ask For Help
Topic: Single line color shift expression Topic is solved
Replies: 3
Views: 199

Single line color shift expression Topic is solved

Anyone know how to write a single line expression that can shift a RGB color by x amount. For example. Color:= "0xFF343537" ;shift each (RGB) by -0x22 ShiftedColor:= "0xFF121315" I can write a function to do it in a few lines, but a single line that can be placed in a createBrush call would be great...
by Hellbent
26 Jun 2019, 08:57
Forum: Ask For Help
Topic: Making Gui and hiding - problem with code.
Replies: 2
Views: 111

Re: Making Gui and hiding - problem with code.

Try this. #SingleInstance,Force ;-----Gui 1--------------------------------------------- Gui,1: Add, Text,, First search term: Gui,1: Add, Text,, Second search term: Gui,1: Add, Edit, vFirstSearch ym Gui,1: Add, Edit, vSecondSearch Gui,1: Add, Button, default, OK Gui,1: Show,Hide x400, Gui 1 ;-----G...
by Hellbent
25 Jun 2019, 20:25
Forum: Ask For Help
Topic: Stable, smooth, linear mouse clickdrag
Replies: 2
Views: 115

Re: Stable, smooth, linear mouse clickdrag

#SingleInstance,Force #NoEnv SetBatchLines, -1 Coordmode,Mouse,Screen return *ESC::ExitApp Numpad5:: ;10.9ms (for 10 loops) StartTime:=A_TickCount Loop 10 MouseMove,333,333,0 TotalTime:=A_TickCount-StartTime msgbox,% TotalTime/10 return Numpad1:: DesiredTime:=5000 SingleMoveTime:=10.9 LoopCount:=De...
by Hellbent
25 Jun 2019, 20:03
Forum: Ask For Help
Topic: Stable, smooth, linear mouse clickdrag
Replies: 2
Views: 115

Re: Stable, smooth, linear mouse clickdrag

Try this. 1. Don't use MouseClickDrag, use Click Down, MouseMove, and Click Up 2. Use A_TickCount to get the estimated time it takes to run one instance of the MouseMove Command 3. Divide Desired time by time to run one instance. 4. Divide the change in x and y coords by the result above (x/y result...
by Hellbent
24 Jun 2019, 23:27
Forum: Ask For Help
Topic: Can you move the mouse in a random curved path?
Replies: 23
Views: 859

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

You could also just record yourself moving your cursor to a button and pressing it. #SingleInstance,Force SetBatchLines,-1 #NoEnv CoordMode,Mouse,Screen global Stop,positions:=[] Gui,1:+AlwaysOnTop Gui,1:Add,Edit,xm ym w200 r1 vMove_Count Gui,1:Add,Button,xm y+20 w200 h30 gStop_Recording,Stop Record...

Go to advanced search