| View previous topic :: View next topic |
| Author |
Message |
ls121 Guest
|
Posted: Tue Aug 17, 2010 4:47 am Post subject: |
|
|
| I'm using the nightly build. Is there some alternative way I could send the Escape key other than "Send {Escape}"? Thanks for your help. |
|
| Back to top |
|
 |
neoarch
Joined: 17 Aug 2010 Posts: 1
|
Posted: Tue Aug 17, 2010 7:26 pm Post subject: |
|
|
Lucid Lynx running IronAhk 0.5.7.23
| Code: | ;GET MOUSE
a::
MouseGetPos, xpos, ypos
Msgbox, The cursor is at X%xpos% Y%ypos%.
return
;SIMPLE CLICK
f::
MouseGetPos, xpos, ypos
Click 344, 468
MouseMove, %xpos%, %ypos%
return |
I'm getting an error for GET MOUSE
| Code: | Unhandled Exception: System.InvalidProgramException: Invalid IL code in Program:a (object[]): IL_0023: stloc.3
at IronAHK.Rusty.Core+KeyboardHook+<KeyReceived>c__AnonStorey14.<>m__12 () [0x00000] in <filename unknown>:0
|
and SIMPLE CLICK doesn't seem to click anywhere.
What am I doing wrong? This all works fine with my windows install. Has the syntax changed?
Is it just me or are these errors more difficult to read than necessary? |
|
| Back to top |
|
 |
IsNull
Joined: 10 May 2007 Posts: 593 Location: .switzerland
|
Posted: Wed Aug 18, 2010 6:04 am Post subject: |
|
|
Hi,
First of all, you should notice that some specific Window-Handling must be implemented for each Window-System seperatly, so it's possible that IronAHK has an Windows Implementation but currently laks the X code.
MouseGetPos isn't implemented for the X-Window System also the Click Command only works on Windows. We're working on a abstract layer to handle every Window-System equal but the code must be written first.
About the ErrorMessage: What you get is the raw .NET Errormessage and not an easy debug Text - Polly plans to implement easy Debuging messages but this is actually low priority. _________________ http://securityvision.ch
AHK 2D GAME ENGINE |
|
| Back to top |
|
 |
ls121 Guest
|
Posted: Wed Aug 18, 2010 6:48 pm Post subject: SPECIAL KEYS |
|
|
| Is there any way to get special keys working with IronAHK? |
|
| Back to top |
|
 |
cyberstorm
Joined: 15 Dec 2009 Posts: 12
|
Posted: Sun Aug 29, 2010 9:22 am Post subject: |
|
|
| again, nightly build -- 403 Forbidden... |
|
| Back to top |
|
 |
meandi
Joined: 20 Oct 2009 Posts: 14
|
Posted: Sun Aug 29, 2010 9:52 am Post subject: |
|
|
ye this is true just as i'm about to download it
btw: gosub is not supported?
PS: lol ye it is ofcourse... |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Sun Aug 29, 2010 12:35 pm Post subject: |
|
|
| ls121 wrote: | | It literally sends the keystring "Escape". How do I get it to press the escape key? |
It has been reported in issue 14 and will be fixed soon.
| cyberstorm wrote: | | again, nightly build -- 403 Forbidden... |
The nightly builds now happen on my Windows 2008 R2 server so the installers are included in the updates which takes place at least once everyday at 0000 GMT, the version.txt file indicates the build number. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
cyberstorm
Joined: 15 Dec 2009 Posts: 12
|
Posted: Mon Aug 30, 2010 9:49 pm Post subject: |
|
|
http://www.ironahk.net/docs/commands/
function URLDownload() not exist, but if we look in source codes - we see function UriDownload()
fix it
p.s.
what about creating analog of function httpQuery? |
|
| Back to top |
|
 |
meandi
Joined: 20 Oct 2009 Posts: 14
|
Posted: Mon Aug 30, 2010 10:49 pm Post subject: |
|
|
I'm lost:
Can't seem to find where to download these nightly builds.
(I know it has just been said )
http://code.google.com/p/ironahk/? |
|
| Back to top |
|
 |
ls121 Guest
|
Posted: Tue Aug 31, 2010 3:02 am Post subject: donation |
|
|
If I can get my script with special keys working I'm promising at least a $25 donation if you take them. This is a ridiculous "it's about time" program for linux distros.
Very nice work indeed! |
|
| Back to top |
|
 |
nowhereman Guest
|
Posted: Tue Aug 31, 2010 1:14 pm Post subject: |
|
|
Hi, I'm loving the effort! nice to see native utf support;
I'm still having problems with sending keys to GTK applications in Windows.
hotstrings doesn't seem to work, the just delete the old characters:
e.g.:
writes 'b' when you type 'a', except in GTK apps (I repeat, GTK apps on Windows).
[/code] |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Fri Sep 03, 2010 12:53 pm Post subject: |
|
|
Just to highlight error from here: http://www.autohotkey.com/forum/viewtopic.php?t=62107
| CovenStine wrote: | Hello,
I am disabled, and thus forced to type with one hand.
The third revision of the script discussed in this thread has been exceptionally helpful, but obviously, AHK is windows-exclusive.
I've tried IronAHK, and working on the assumption that 'if the script doesn't work in windows, it won't work in Ubuntu' I have been trying to make the script work with IronAHK.
Unfortunately, every time, I get a predictable error message, and can't seem to debug it. the message is:
"The following errors occured:
OneHander.ahk:0 - Object reference not set to an instance of an object.
OneHander.ahk:0 - Specified argument was out of range of valid values."
I don't know if anybody has any suggestions, or a better forum for this topic (I couldn't find an IronAHK forum), but any suggestions would be highly appreciated.
Thanks. |
_________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
22bells Guest
|
Posted: Fri Sep 03, 2010 4:09 pm Post subject: WinActivate |
|
|
I'm curious how to get a WinActivate script to work on Ubuntu. Here is the line of code in particular I'd love to port over from windows:
| Code: | CapsLock & k::
IfWinActive ahk_class MozillaUIWindowClass
WinActivateBottom ahk_class MozillaUIWindowClass
else
IfWinExist ahk_class MozillaUIWindowClass
WinActivate
else
Run firefox
return |
Does anybody have any ideas on why this isn't working or how I could get it to work? |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Fri Sep 03, 2010 4:45 pm Post subject: |
|
|
| ls121 wrote: | | It literally sends the keystring "Escape". How do I get it to press the escape key? |
Issue 14 fixed.
| cyberstorm wrote: | | function URLDownload() not exist, but if we look in source codes - we see function UriDownload() |
Thanks, fixed in e3f98580.
| cyberstorm wrote: | | what about creating analog of function httpQuery? |
I expect to have something similar to the curl functions in PHP.
| meandi wrote: | | Can't seem to find where to download these nightly builds. |
The first post only contains links to the nightly builds now. They are all the most up-to-date development versions.
The status page has been updated to provide more information but does not yet indicate the current progress.
| nowhereman wrote: | I'm still having problems with sending keys to GTK applications in Windows.
hotstrings doesn't seem to work, the just delete the old characters: |
From what I remember AutoHotkey uses PostMessage and keybd_event, IronAHK only uses SendInput with no delays between key presses. I don't know if this is the reason replacements aren't working correctly on Gtk windows (on Windows) but I will check.
| 22bells wrote: | | I'm curious how to get a WinActivate script to work on Ubuntu. |
We decided not to mix X11 and Win32 specific API in the Win* methods and instead use an interface similar to the keyboard hook provider. In other words, WinActivate doesn't work on Linux yet  _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
22bells Guest
|
Posted: Fri Sep 03, 2010 6:04 pm Post subject: |
|
|
Since WinActivate doesn't work, is there anyway currently to emulate the functionality of the aforementioned script so that pressing capslock & K does the following:
1. Launch firefox if it's not open
2. Activate it if it is
3. Scroll through the active firefox windows if more than one is open
Thanks for all of your contribution! |
|
| Back to top |
|
 |
|