Search found 30 matches

by mshall
24 minutes ago
Forum: Scripts and Functions
Topic: [AHK2] FileAssociate() - Works with Win10
Replies: 1
Views: 221

Re: [AHK2] FileAssociate() - Works with Win10

I tried compiling this script. Used this as the function: FileAssociate(Label:="AutohotkeyScript",Ext:=".ahk",Cmd:="%A_WorkingDir%\AutoHotkeyU64.exe",Icon:="") Receiving an error. I'd like to do a 1 time install for a program that will automatically associate autohotkeys with AutoHotkeyU64.exe, but ...
by mshall
11 Oct 2018, 16:35
Forum: Ask For Help
Topic: Will GUI crash if i add too many elements?
Replies: 4
Views: 82

Re: Will GUI crash if i add too many elements?

Yes, it will eventually crash. I have a bingo game that you click a picture and it adds a token. After some testing, stacking about 1000 pictures caused it to crash. Not sure if there is a hard cap or some other way to avoid it. It luckily isn't a problem in my application.
by mshall
08 Oct 2018, 13:01
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 93

Re: get the value of a certain html variable?

#Enter:: SetTitleMatchMode, 2 IfWinExist, BHD_Help_Desk ;the name of the google chrome tab WinActivate MouseClick, left, 507, 547 sleep 250 ClipBoard = MouseClick, left, 502, 168 ;email Send ^a Send ^c ClipWait , 0.1 Clip1 := ClipBoard ClipBoard = MouseClick, left, 502, 190 ;first name Send ^a Send...
by mshall
05 Oct 2018, 17:51
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 93

Re: get the value of a certain html variable?

Wish I saw this earlier. If this isn't solved Monday, I'll paste my code. It's a Activate window mouseclick at x,y Send Ctrl a Send Ctrl c Add to clipboard #1 Do this 4 times then Click where I need to store this send name: %clip1% Send, phone: %clip2% Return Check the clipboard functions again in t...
by mshall
04 Oct 2018, 19:51
Forum: Ask For Help
Topic: Remapping the Print Screen Key
Replies: 7
Views: 88

Re: Remapping the Print Screen Key

I use this
PrintScreen::
run, SnippingTool.exe
return
by mshall
04 Oct 2018, 19:46
Forum: Ask For Help
Topic: get the value of a certain html variable?
Replies: 5
Views: 93

Re: get the value of a certain html variable?

at my office we have an autofill script that will take this (usually a ticket number) and put it into a template with a copied name, phone number, employee id. Just use MouseMove and send a ctrl+a/ctrl+c to hold the mouse button down and highlight, there is a MouseMoveDrag. This is a sloppy solution...
by mshall
04 Oct 2018, 19:43
Forum: Ask For Help
Topic: String Parse question Topic is solved
Replies: 1
Views: 74

String Parse question Topic is solved

Hello, I have a GUI that requires you to click some randomly generated pictures. The random generator produces a string of numbers (I'm calling it a seed) so that you can reuse those pictures if needed in the exact order. So for example there is 5 pictures. 3 pictures display on screen. A current se...
by mshall
03 Sep 2018, 14:48
Forum: Scripts and Functions
Topic: I made a Rock, Paper, Scissors, Lizard, Spock [GAME]
Replies: 1
Views: 160

I made a Rock, Paper, Scissors, Lizard, Spock [GAME]

I know that there are some better ways to do this, but this is mine. I hope you enjoy. It keeps score, and there is both a rock, paper, scissors mode and a rock, paper, scissors, lizard, spock. Pack with dependencies attached. Source below: ; Rock Paper Scissors game SetWorkingDir %A_ScriptDir% Gui,...
by mshall
27 Aug 2018, 11:44
Forum: Scripts and Functions
Topic: Weather gadget (Gdip). Accuweather
Replies: 4
Views: 362

Re: Weather gadget (Gdip). Accuweather

sevenwenty wrote:How do I set the refresh rate to 15 minutes instead of the default 30 minutes?
I haven't look at the code too long, but the Accuweather API only allows you to refresh every 30 minutes (unless that has changed).
by mshall
09 Aug 2018, 18:02
Forum: Ask For Help
Topic: Copy two or more items then message box Topic is solved
Replies: 2
Views: 55

Re: Copy two or more items then message box Topic is solved

yep figured it out at about the same time.
Thanks!
by mshall
09 Aug 2018, 11:39
Forum: Ask For Help
Topic: Copy two or more items then message box Topic is solved
Replies: 2
Views: 55

Copy two or more items then message box Topic is solved

Hello, I am attempting to copy some information and store them in clipboards. After I would like it to display this clipped information. Unfortunately it displays blank. Some other variations will save the first box at 1,1 but then display it as Clip2. ^Enter:: IfWinExist, Google Chrome WinActivate ...
by mshall
01 Aug 2018, 08:31
Forum: Ask For Help
Topic: How can i protect my script Topic is solved
Replies: 10
Views: 301

Re: How can i protect my script Topic is solved

He could make a program that requires a key to be fed to it in order for the other one to process. Not sure on ideas for it. AHK can read info from websites though if he has one set up. edit: I've thought of something simple. Save a copy of the username to some text file. Check for username to match...
by mshall
31 Jul 2018, 08:32
Forum: Ask For Help
Topic: How can i protect my script Topic is solved
Replies: 10
Views: 301

Re: How can i protect my script Topic is solved

Easiest thing to do is compile it. There is a user who has an encryptor, but I don't have a link to that post.
Easiest security is just compile it.
by mshall
27 Jul 2018, 10:43
Forum: Ask For Help
Topic: Keyboard macro
Replies: 2
Views: 68

Re: Keyboard macro

You could use key repeat (I believe that's it) and set a specific number. Or just have it loop until it sees keyup
by mshall
27 Jul 2018, 09:15
Forum: Ask For Help
Topic: Paste a password while remote'd into a PC?
Replies: 5
Views: 89

Re: Paste a password while remote'd into a PC?

I'm honestly not sure why it doesn't work. I use this all the time.

See my code (note that it is a hotstring though):

Code: Select all

::pw1::
SendInput, Password-1
return
Hotkeys should work fine as long as your setting in RDP are correct
by mshall
27 Jul 2018, 08:33
Forum: Ask For Help
Topic: Set position new GUI relative to other GUI window
Replies: 4
Views: 129

Re: Set position new GUI relative to other GUI window

Hello,

Position can be set via the x and y controls at the end of your GUI

Code: Select all

Gui, Show, x467 y200 h399 w499, AutoHotkey Setup
Return
So my Gui will show itself at coordinate 467, 200 (this is from the top left corner of the window I believe) with height 399 pixels and width 499 pixels.

hth
by mshall
23 Jul 2018, 13:07
Forum: Ask For Help
Topic: Anyway to set default file open?
Replies: 0
Views: 69

Anyway to set default file open?

I use ahk mostly portable mode and pass it around to a few people. Is there anyway to edit my exe to run something like calculator.ahk and associate it with the interpreter at the same time? Edit: I tried a batch file that would also just run the hotkey file but the users don't always have admin rig...
by mshall
23 Jul 2018, 08:46
Forum: Ask For Help
Topic: Script in Windows 7 having trouble in Windows 10 (#ifWinActive)
Replies: 10
Views: 199

Re: Script in Windows 7 having trouble in Windows 10 (#ifWinActive)

We use winactive in win10 and win7 without issue. The usual solution is to try to include it as part of your function.
by mshall
20 Jul 2018, 08:27
Forum: Ask For Help
Topic: if box is checked move a file to startup Topic is solved
Replies: 3
Views: 103

Re: if box is checked move a file to startup Topic is solved

I noticed that and resolved it. Good to point out for future forum searches. If anyone does have questions, I am happy to take PMs. Here was the final code used: SetWorkingDir %A_ScriptDir% ;sets current directory as working directory Gui, Add, CheckBox, x94 y179 w310 h30 vCheckOne , your text here ...

Go to advanced search