Search found 14 matches

by tecdragon
20 Sep 2021, 14:09
Forum: Ask for Help (v1)
Topic: Manipulate Second Monitor Only
Replies: 7
Views: 975

Re: Manipulate Second Monitor Only

Ok thanks, I will give it a try.
by tecdragon
20 Sep 2021, 12:18
Forum: Ask for Help (v1)
Topic: Parsing a string issue
Replies: 5
Views: 488

Re: Parsing a string issue

Think I figured this out, or at least a workaround using string replace

Code: Select all

hostname = %A_computername%
String = %hostname%
stringreplace, string1,string, e,, all
msgbox,string %String%
msgbox,string1 %string1%
input = % SubStr(String1, -4)
msgbox, input %input%
by tecdragon
20 Sep 2021, 11:56
Forum: Ask for Help (v1)
Topic: Parsing a string issue
Replies: 5
Views: 488

Re: Parsing a string issue

I changed this up a bit to be more reflective of what I am trying to do, still does not parse the letters from the final msgbox. hostname = %A_computername% ;Sets the computer name as variable hostname msgbox,HostName %hostname% ;displayd the hostname in my case Thundera hostname := % SubStr(hostnam...
by tecdragon
20 Sep 2021, 11:35
Forum: Ask for Help (v1)
Topic: Manipulate Second Monitor Only
Replies: 7
Views: 975

Re: Manipulate Second Monitor Only

I did download and try DisplayFusion they have a fully functional trial version. I could not find anyway to disable the primary monitor, and it switched both screens. Trying to figure out a way to due programmatically.
by tecdragon
20 Sep 2021, 08:48
Forum: Ask for Help (v1)
Topic: Manipulate Second Monitor Only
Replies: 7
Views: 975

Re: Manipulate Second Monitor Only

Guess you can't do this? I even tried trials of 4 or 5 commercial products. No luck.
by tecdragon
20 Sep 2021, 08:47
Forum: Ask for Help (v1)
Topic: Parsing a string issue
Replies: 5
Views: 488

Re: Parsing a string issue

In the example I am trying to get the hostname of the computer, save it as a string and then parse out what I want as the variable 'input' I then try to parse the 'input' which is the hostname of the computer and remove the '-' everything works up to removing the '-'
by tecdragon
17 Sep 2021, 16:23
Forum: Ask for Help (v1)
Topic: Parsing a string issue
Replies: 5
Views: 488

Parsing a string issue

I am trying to get the last 5 digits of the hostname that is presented as such 20-91 or 34-87, etc. The following code shows the last for but when I try to parse the "-" out of it, it doesn't work. why? hostname = %A_computername% String = %hostname% msgbox,string %String% input = % SubStr(String, -...
by tecdragon
17 Sep 2021, 08:25
Forum: Ask for Help (v1)
Topic: Manipulate Second Monitor Only
Replies: 7
Views: 975

Manipulate Second Monitor Only

Trying to get the following code to change the wallpaper on only the secondary screen, not the primary screen. I have downloaded multiple commercial apps and they change both, so I am trying to write a script that will change only the secondary monitor while not changing the primary one. This script...
by tecdragon
16 Sep 2021, 08:58
Forum: Ask for Help (v1)
Topic: How do I: Rotate Wallpapers?
Replies: 7
Views: 536

Re: How do I: Rotate Wallpapers?

Anyway to make this only operate on Monitor number 2? I found a autobackground AHK but it is from 2006 it uses WM_DISPLAYCHANGE(0,0) and has the following code. But these monitors wont be changing this is a static secondary monitor that I want the wallpaper to change on at intervals. ;AutoBackground...
by tecdragon
15 Sep 2021, 11:58
Forum: Ask for Help (v1)
Topic: How do I: Rotate Wallpapers?
Replies: 7
Views: 536

Re: How do I: Rotate Wallpapers?

That is awesome!

One more question any way to make it only change the wallpaper on screen 2?
by tecdragon
15 Sep 2021, 11:57
Forum: Ask for Help (v1)
Topic: How do I: Rotate Wallpapers?
Replies: 7
Views: 536

Re: How do I: Rotate Wallpapers?

that is awesome, I didn't see the sound beep at first and was like why is it beeping? Appreciate the help.

One more question - anyway to make it only change the wallpaper on screen number 2?
by tecdragon
15 Sep 2021, 10:10
Forum: Ask for Help (v1)
Topic: How do I: Rotate Wallpapers?
Replies: 7
Views: 536

How do I: Rotate Wallpapers?

I have been searching through the forum to find some code that I can manipulate into what I am looking for but having some trouble. Most of what I am finding has a ton of features. All I need is a simple script to change a wallpaper every 'x' minutes from a local folder. For instance Windows 10 oper...
by tecdragon
31 Aug 2020, 16:46
Forum: Ask for Help (v1)
Topic: How do I: Pass a button label as a variable?
Replies: 3
Views: 278

Re: How do I: Pass a button label as a variable?

Still need some help, that got me closer but it doesn't seem to store the variable as the selected size. I can't call on %Size% in a different function and have it return the selected value. How? Sizes: Gui,2: Destroy Gui,3: Show, w800 h600, Sizes Gui,3: Add, Button, x13 y71 w125 h125 gSize, Small G...
by tecdragon
31 Aug 2020, 10:28
Forum: Ask for Help (v1)
Topic: How do I: Pass a button label as a variable?
Replies: 3
Views: 278

How do I: Pass a button label as a variable?

Trying to pass the button label as the variable to capture in a msgbox at the end. I googled it but not having much luck, help? Sizes: Gui,2: Destroy Gui,3: Show, w800 h600, Sizes Gui,3: Add, Button, x13 y71 w125 h125 gSize, &Small Gui,3: Add, Button, x166 y71 w125 h125 gSize, &Medium Return Size: G...

Go to advanced search