AutoHotkey Community

It is currently May 27th, 2012, 3:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 552 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 37  Next
Author Message
 Post subject:
PostPosted: August 17th, 2010, 5:47 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2010, 8:26 pm 
Offline

Joined: August 17th, 2010, 8:05 pm
Posts: 1
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 18th, 2010, 7:04 am 
Offline
User avatar

Joined: May 10th, 2007, 10:54 am
Posts: 649
Location: .switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: SPECIAL KEYS
PostPosted: August 18th, 2010, 7:48 pm 
Is there any way to get special keys working with IronAHK?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2010, 10:22 am 
Offline

Joined: December 15th, 2009, 1:48 pm
Posts: 12
again, nightly build -- 403 Forbidden...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2010, 10:52 am 
Offline

Joined: October 20th, 2009, 2:32 pm
Posts: 14
ye this is true just as i'm about to download it
btw: gosub is not supported?

PS: lol ye it is ofcourse...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2010, 1:35 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2010, 10:49 pm 
Offline

Joined: December 15th, 2009, 1:48 pm
Posts: 12
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2010, 11:49 pm 
Offline

Joined: October 20th, 2009, 2:32 pm
Posts: 14
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/?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: donation
PostPosted: August 31st, 2010, 4:02 am 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 31st, 2010, 2:14 pm 
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.:

Code:
::a::b


writes 'b' when you type 'a', except in GTK apps (I repeat, GTK apps on Windows).

[/code]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 1:53 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject: WinActivate
PostPosted: September 3rd, 2010, 5:09 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 5:45 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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 :?

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 7:04 pm 
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!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 552 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 37  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group