Just checked one of the earlier builds and, tadaa, that's how I did it before I changed it for whatever reason.I'm pretty sure it used to work at some point during development but it seems like it broke.
Search found 37 matches
- 20 Feb 2019, 02:53
- Forum: Ask for Help (v1)
- Topic: Outlook attachment Topic is solved
- Replies: 7
- Views: 1757
Re: Outlook attachment Topic is solved
- 20 Feb 2019, 02:02
- Forum: Ask for Help (v1)
- Topic: Outlook attachment Topic is solved
- Replies: 7
- Views: 1757
Re: Outlook attachment Topic is solved
You, dear Sir, are my hero!
- 19 Feb 2019, 08:16
- Forum: Ask for Help (v1)
- Topic: Outlook attachment Topic is solved
- Replies: 7
- Views: 1757
Re: Outlook attachment Topic is solved
COM??
Script seems good, I checked the variable via a MsgBox and it checks out.
I maybe should have mentioned it's Outlook that's throwing an error and not AHK itself. Whoops.
The command line argument is not valid. Verify the switch you are using
Script seems good, I checked the variable via a MsgBox and it checks out.
I maybe should have mentioned it's Outlook that's throwing an error and not AHK itself. Whoops.
The command line argument is not valid. Verify the switch you are using
- 19 Feb 2019, 06:55
- Forum: Ask for Help (v1)
- Topic: Help me guys! Topic is solved
- Replies: 3
- Views: 778
Re: Help me guys! Topic is solved
That exact code won't work because there's a typo in your variable SleepA0mount != SleepAmount
- 19 Feb 2019, 03:18
- Forum: Ask for Help (v1)
- Topic: Is it possible to have multiple subroutines running at the same time? Topic is solved
- Replies: 3
- Views: 794
Re: Is it possible to have multiple subroutines running at the same time? Topic is solved
IIrc you can only have one subroutine running per script (anyone please correct me if I'm wrong). A solution would be running a second/separate script.
- 19 Feb 2019, 02:12
- Forum: Ask for Help (v1)
- Topic: Help me guys! Topic is solved
- Replies: 3
- Views: 778
Re: Help me guys! Topic is solved
Random, vsleep, 100, 500 Sleep, %vsleep% Maybe next time try solving it yourself first and asking for help because it doesn't work instead of asking people to write code for you. And I'm going to give you the benefit of the doubt and not assume you're using this to circumvent any kind of cheat dete...
- 19 Feb 2019, 01:53
- Forum: Ask for Help (v1)
- Topic: Outlook attachment Topic is solved
- Replies: 7
- Views: 1757
Re: Outlook attachment Topic is solved
%currentfile% returns the complete path of the file, as it should. It works fine when used as a single-line script (see initial post), just not in the complete script.
- 18 Feb 2019, 03:29
- Forum: Ask for Help (v1)
- Topic: Outlook attachment Topic is solved
- Replies: 7
- Views: 1757
Outlook attachment Topic is solved
I'm trying to open a new email via Outlook and attach a file the user has selected beforehand. I'm pretty sure it used to work at some point during development but it seems like it broke. #SingleInstance, force FileSelectFile, currentfile,,%A_Desktop%, Datei auswählen..., *.ps5 if (currentfile = "")...
- 13 Nov 2018, 04:10
- Forum: Ask for Help (v1)
- Topic: Offer a text based on what I'm typing
- Replies: 14
- Views: 2986
Re: Offer a text based on what I'm typing
I wasn't trying to be funny or sarcastic even, but unless you post some examples of what you're trying to do or your code I seriously am at a loss.
- 12 Nov 2018, 09:19
- Forum: Ask for Help (v1)
- Topic: Offer a text based on what I'm typing
- Replies: 14
- Views: 2986
Re: Offer a text based on what I'm typing
I'm not using anything to remind me of hotkey/-strings, hence my trouble understanding your problem.
- 12 Nov 2018, 09:17
- Forum: Forum Issues
- Topic: Code syntax only shown in text editor
- Replies: 1
- Views: 1020
Code syntax only shown in text editor
Ever since the forum update, code which I copy into the forum post editor looks fine, but as soon as I post whatever I've written all syntax is removed i.e. all line breaks and tabs are gone. Is this a known issue or am I doing something wrong all of a sudden?
- 12 Nov 2018, 09:11
- Forum: Ask for Help (v1)
- Topic: Offer a text based on what I'm typing
- Replies: 14
- Views: 2986
Re: Offer a text based on what I'm typing
Something like this?
Code: Select all
#SingleInstance, force
:*:lol::laughing out loud
:*:laughing out loud::
SplashTextOn, , 25, Title, You have a hotstring for this.
Sleep, 1000
SplashTextOff
- 12 Nov 2018, 08:37
- Forum: Ask for Help (v1)
- Topic: Offer a text based on what I'm typing
- Replies: 14
- Views: 2986
Re: Offer a text based on what I'm typing
Until you elaborate further, I'd say you'll want to use Hotstrings. Not sure how you want to use autocompletion to remind you of hotkeys though.
- 12 Nov 2018, 08:17
- Forum: Ask for Help (v1)
- Topic: Offer a text based on what I'm typing
- Replies: 14
- Views: 2986
Re: Offer a text based on what I'm typing
What do you mean by 'whisper'? What do you use your hotkeys for? You might want to post your code, makes things way easier.
- 06 Nov 2018, 07:39
- Forum: Ask for Help (v1)
- Topic: KeyWait unresponsive / delayed
- Replies: 3
- Views: 1005
Re: KeyWait unresponsive / delayed
You're not using 'D' option ( KeyWait, q, D T0.5 ) in you code, which checks if the key is being pushed down for n seconds. That's why your code either delays the actual key you're pressing or firing the SendInput to quickly. Edit: Hm, you're right, even if I set the delay on the short press to ver...
- 05 Nov 2018, 07:25
- Forum: Ask for Help (v1)
- Topic: KeyWait unresponsive / delayed
- Replies: 3
- Views: 1005
Re: KeyWait unresponsive / delayed
Not sure why your code doesn't work, but this should: $F7:: KeyWait, F7, T1.0 if ErrorLevel { ;long MsgBox, long } else { KeyWait, F7, D T0.01 if ErrorLevel ;short MsgBox, short } return Edit: Hm, not sure where the crappy syntax came from, looks fine in the editor. :think:
- 14 Oct 2018, 04:36
- Forum: Ask for Help (v1)
- Topic: Need help with random sleep time
- Replies: 2
- Views: 828
Re: Need help with random sleep time
Even more random would be:
Code: Select all
#Persistent
#SingleInstance, force
Loop
{
Random, vsleepclick, 60, 120
Random, vsleep, 2000, 4000
Sleep, %vsleep%
}
XButton1::
Toggle := !Toggle
While Toggle{
Click
sleep %vsleepclick%
}
return
- 14 Oct 2018, 04:31
- Forum: Ask for Help (v1)
- Topic: Need help with random sleep time
- Replies: 2
- Views: 828
Re: Need help with random sleep time
This could work, did not want to try it out because of all those clicks.
Code: Select all
#SingleInstance, force
Loop
{
vsleep = 60
Sleep, 3000
vsleep = 120
Sleep, 3000
}
XButton1::
Toggle := !Toggle
While Toggle{
Click
Sleep %vsleep%
}
return
- 14 Oct 2018, 01:19
- Forum: Ask for Help (v1)
- Topic: Toggling hotkeys - Nonexistent hotkey variant Topic is solved
- Replies: 1
- Views: 1372
Re: Toggling hotkeys - Nonexistent hotkey variant Topic is solved
Solved it:
The last Hotkey, IfWinActive, ahk_exe in the auto-execute section carried over to the first Hotkey in the first label. Adding Hotkey, IfWinActive to both the auto-execute section and the label did the trick.
The last Hotkey, IfWinActive, ahk_exe in the auto-execute section carried over to the first Hotkey in the first label. Adding Hotkey, IfWinActive to both the auto-execute section and the label did the trick.
- 12 Oct 2018, 11:51
- Forum: Ask for Help (v1)
- Topic: What do YOU use AHK for?
- Replies: 30
- Views: 8598
Re: What do YOU use AHK for?
- Keyboard remapping. Who the hell needs, capslock, right?
- Hotstringing
- But mostly to make working with some very badly coded software my company uses not as much a P.I.T.A. as it needs to be.
- Hotstringing
- But mostly to make working with some very badly coded software my company uses not as much a P.I.T.A. as it needs to be.